summaryrefslogtreecommitdiff
path: root/InCallUI/tests
AgeCommit message (Collapse)Author
2017-03-01Update dialer sources.Eric Erfanian
Test: Built package and system image. This change clobbers the old source, and is an export from an internal Google repository. The internal repository was forked form Android in March, and this change includes modifications since then, to near the v8 release. Since the fork, we've moved code from monolithic to independent modules. In addition, we've switched to Blaze/Bazel as the build sysetm. This export, however, still uses make. New dependencies have been added: - Dagger - Auto-Value - Glide - Libshortcutbadger Going forward, development will still be in Google3, and the Gerrit release will become an automated export, with the next drop happening in ~ two weeks. Android.mk includes local modifications from ToT. Abridged changelog: Bug fixes ● Not able to mute, add a call when using Phone app in multiwindow mode ● Double tap on keypad triggering multiple key and tones ● Reported spam numbers not showing as spam in the call log ● Crash when user tries to block number while Phone app is not set as default ● Crash when user picks a number from search auto-complete list Visual Voicemail (VVM) improvements ● Share Voicemail audio via standard exporting mechanisms that support file attachment (email, MMS, etc.) ● Make phone number, email and web sites in VVM transcript clickable ● Set PIN before declining VVM Terms of Service {Carrier} ● Set client type for outbound visual voicemail SMS {Carrier} New incoming call and incall UI on older devices (Android M) ● Updated Phone app icon ● New incall UI (large buttons, button labels) ● New and animated Answer/Reject gestures Accessibility ● Add custom answer/decline call buttons on answer screen for touch exploration accessibility services ● Increase size of touch target ● Add verbal feedback when a Voicemail fails to load ● Fix pressing of Phone buttons while in a phone call using Switch Access ● Fix selecting and opening contacts in talkback mode ● Split focus for ‘Learn More’ link in caller id & spam to help distinguish similar text Other ● Backup & Restore for App Preferences ● Prompt user to enable Wi-Fi calling if the call ends due to out of service and Wi-Fi is connected ● Rename “Dialpad” to “Keypad” ● Show "Private number" for restricted calls ● Delete unused items (vcard, add contact, call history) from Phone menu Change-Id: I2a7e53532a24c21bf308bf0a6d178d7ddbca4958
2016-04-29Add LatencyReport for every callSailesh Nepal
[This is a manual cherry pick from ub-contactsdialer-b-dev.] This CL tracks latency for all incoming and outgoing calls. We now measure the following latency values: - time for a connection service to add a call to telecom. - time for telecom to process a call - time for the dialer app to launch and have a call added to it by telecom. - time for dialer to check if a call should be blocked. - time to show a notification about the call (incoming only) - time it took to show the InCallUI (only if HUN wasn't displayed) Change-Id: I08685d312cbaefc564feb4119350da71df9b9e6c
2016-04-20Replace Call with CallSdkCompatUsman Abdullah
Change-Id: Ida1dcd52029b36bf7455846ea190bd75d50bce9f
2016-04-12Add after call notification code in InCallUI.Sarmad Hashmi
+Add asynchronous call to update inCallHistory boolean variable which specifies whether the number is in the call history (has previously called before) +Add CallHistoryStatus enum and variable to Call object to determine if the number is present in the call history +Added SpamCallListListener object which listens for changes in the CallList +Update the CallHistoryStatus for the call whenever an incoming call comes in +Added 11 tests for new listener BUG=27323295 Change-Id: I242cd4a53b3aeca69fbce972221a2c941d9d37ce
2016-04-07Adding unit tests for ExternalCallList.Tyler Gunn
- Also adding TestTelecomCall class, which is a reflection wrapper that can create instances of android.telecom.Call. These calls are particularly problematic as they are final, so Mockito cannot mock them. Bug: 27458894 Change-Id: Ibd3786dc27eb4280eb32b8fb0baa18d42738a98c
2016-04-01Add support for multi-endpoint.Tyler Gunn
- Add new "ExternalCallNotifier" which tracks external calls that Telecom informs Incall about. - Refactored some common code from StatusBarNotifier that is used in ExternalCallNotifier into NotificationUtil so it can be used in both places. - Modified CallList to track and store external calls seperately from regular ones. - Added support for triggering a call pull in the NotificationBroadcastReceiver. Bug: 27458894 Change-Id: I505c8b5f7aad273ebdaaeae2431564d10b23770b
2016-03-10Removing unneed bluetooth codeBrandon Maxwell
+ By playing through AudioManager.STREAM_VOICE_CALL, routing audio to bluetooth is handled properly for us. + This change removes the code that was preparing to manually play the call waiting tone through bluetooth. + Small fix ups for javadoc Bug: 26932998 Change-Id: Ib5f872c72cdfa44ab0bc2ff5d7e41645aba813ff
2016-02-12Added ackAllMilestones api to PausableExecutorBrandon Maxwell
+ This API simplifies tests, specifically their tearDown methods. Rather than needing to call ackMilestone numerous times to clean up at the end of the test, this method can be called to ensure that the thread running the production code isn't blocked on the tests. Change-Id: I60730c52491b315aee571f4ae158f62d34b0dbc2
2016-02-12Integrating DialerRingtoneManager and InCallTonePlayerBrandon Maxwell
This change makes the Call Waiting tone actually play during the Call Waiting use case. + Plugging InCallTonePlayer into the DialerRingtoneManager in the StatusBarNotifier + Test fixes + Added tests for when Dialer ringing is disabled + Added tests for DialerRingtoneManager#playCallWaitingTone - Removed unneeded @NeededForTesting annotations from InCallTonePlayer since they won't be stipped out by proguard. Change-Id: I49a83d2a7fe6edf5f9ec88db973a5f37e307f23a
2016-02-12Renaming DialerRingtoneManager Test fileBrandon Maxwell
+ Renamed the DialerRingtoneManager, but forgot to rename the test file. Change-Id: I3de6223e023787657d2573ba3f620fc9bc013181
2016-02-12Implementing class to play tonesBrandon Maxwell
+ This class will be used by the DialerRingtoneManager to play the call waiting tone. It exists to encapsulate the logic to play a tone in a background thread. + The TonePlayer includes some thread safety measures, but is not meant to be shared between multiple threads Bug=26936401 Change-Id: I630959177fcd8a4fc8ba7d3153f036746ad8a4cf
2016-02-12Added executor framework to sync prod and testsBrandon Maxwell
+ Use a TestableExecutor in the production code to allow tests to sync up and block so the state of the system can be tested. In the tests the executor can wait until the production code hits a milestone to ensure that the system is in a proper state for testing. + The current implementation only attempts to synchronize between one production thread and one test thread. Extend the TestableExecutor interface to perform additional synchronization. Change-Id: Ie6fc64392e402330ab66c6f2cd0ec22200ebbdea
2016-02-04Fixes for FBE behavior changesBrandon Maxwell
+ This change ensures that the Dialer doesn't try to use the ContactsPreferences object (which uses information in unavailable storage) while in File based encryption locked mode. Without these checks, the Dialer crashes on receiving an incoming call while FBE locked. + Added Factory method to create ContactsPreferences for tests/while FBE locked/while FBE unlocked + Added tests for CallCardPresenter and StatusBarNotifier FBE related code Bug=26822105 Change-Id: I5df93526e70b7350885c7261982945c32b7e86a0
2016-01-29Adding method to check if call waiting tone should be playedBrandon Maxwell
+ This method will be used in StatusBarNotifier to determine when call waiting tones should be played instead of the standard ringtone Change-Id: I4ad55f3870de5e63d03f4a5e8534680fa24556bd
2016-01-29Refactored dialer Ringtone code in prep for call waitingBrandon Maxwell
+ Created class that is responsible for determining if a ringtone should be played. + This class will also have the code to play call waiting tones Change-Id: Ie8fb633c8a233cc6b54beeb09b3fd6b62c9cb76c
2016-01-08Workaround for java.lang.IllegalArgumentException in android.util.ArrayMapTa-wei Yen
b/25613098 sometimes corrupt the bundle, resulting in a IllegalArgumentException while validating. Workaround with abandoning all the information in it. The bypassed code only tries to extract data from the bundle, which can already be null. These are not critical for the dialer to function. Bug:26343012 Bug:25613098 Change-Id: I16b05ecb0e5317f7170d80eb8426b5cdce20f6c2 # Conflicts: # src/com/android/incallui/Call.java
2016-01-08Revert "Workaround for java.lang.IllegalArgumentException in ↵Ta-wei Yen
android.util.ArrayMap" This reverts commit b1d3cff91f5fc15c7f75c9bef8928101d7bb33d5. Change-Id: Ie3b063f24ff27d3b79b40dd3f1d069d2023f5ef2
2016-01-08Workaround for java.lang.IllegalArgumentException in android.util.ArrayMapTa-wei Yen
b/25613098 sometimes corrupt the bundle, resulting in a IllegalArgumentException while validating. Workaround with abandoning all the information in it. The bypassed code only tries to extract data from the bundle, which can already be null. These are not critical for the dialer to function. Bug:25613098 Change-Id: I16b05ecb0e5317f7170d80eb8426b5cdce20f6c2
2015-11-23Fix crash when business is closed today but open tomorrow.Nancy Chen
Attempted to index into -1 position of opening hours array when business is not open today but open tomorrow. That is because entries exist in the array for tomorrow, but not today. Bug: 25830349 Change-Id: Ib3def69e3d2813bf9cb4739a954b7b9f3724b56a
2015-11-12Modify the hours of operation display text for multiple intervals.Nancy Chen
In order to not overflow the business hours display, we only want to display two intervals at most. Other logic will be used for determining what to display if there are more than 2 intervals, it is currently closed between intervals, and it is closed after all open hours. Bug: 25488385 Change-Id: I9a3ee2967dfd0acc9a9cdc653b27e45c358255e8
2015-11-10Account for multiple open times for business contacts.Nancy Chen
Sometimes businesses will close in the middle of the day and reopen. We want to correctly represent the "open now"/"closed now" text for these breaks. Update tests accordingly. Bug: 25488385 Change-Id: I7ea96b1c037770261389297cb405a5e93d8171e4
2015-11-03Fix Open Now in Contact Context to account for after midnight times.Nancy Chen
Originally the close time was set to the same date as the open time, but sometimes a place is open past midnight, which means that it's open until the next day. Update this so that Open Now correctly represents the state even when the place is open past midnight. Bug: 25345785 Change-Id: I417ecb046bb2d5f708279f2b3808af0afd7662c7
2015-10-23Add the city/locality to the displayed business information.Nancy Chen
To disambiguate, include the city/locality with the address in the form "[street address], [city/locality]" in the contact interactions. Also add tests to ensure the construction of the location info is correct. Bug: 23351559 Change-Id: Ib0b2ce8a80a8494d5b006a6a74ad94447befc0ef
2015-10-21Add hours of operation info to incall business context.Nancy Chen
Display hours of operation information if it is available. If hours of operation are available, also determine whether it is currently open or closed. Display in the InCallUI when making a business call. Also add tests to make sure that the business context object is constructed correctly. Bug: 23351559 Change-Id: Ic2846e54e15ade37ccf0b916651cc3388da3cc23
2015-10-20Update InCallUI testsYorke Lee
* Update all tests with @SmallTest, @MediumTest or @LargeTest annotation to ensure coverage by continuous test infrastructure Change-Id: If362edd2afbef0b3484ad74f53e7d6339156742e
2015-10-02Return Mock TelephonyManager for test.Andrew Lee
Bug: 24341350 Change-Id: Ie47faafcb834083b4a6877e713d871d8283886f7
2015-09-09DO NOT MERGE Disable AccelerometerListener when display is offYorke Lee
Unregister the accelerometer listener when the screen is off to reduce power consumption. Slight refactor of component constructors to facilitate testing. Add test. Bug: 23498050 Change-Id: If1971a39e8a418253f6611116c855e3c6cf81b93
2015-04-23Rename PRE_DIAL_WAIT to SELECT_PHONE_ACCOUNTSantos Cordon
Bug: 20532435 Change-Id: Iae50b2ce15232a6010eb04895193b04c423ecc00
2015-04-02Refactor mock CallList functionalityYorke Lee
MockCallListWrapper provides an instance of a mock call list and provides functionality to easily add/remove calls from the mock call list. Change-Id: I4f7651284d35bdac61574fd804afa33dbf43d6b0
2015-03-06Flesh out more InCall testsYorke Lee
Change-Id: If77e0767e9dbc65a9235dc1841f4d7298e4d39d5
2015-03-05Add tests for InCallPresenterYorke Lee
Add a bunch of end-to-end tests for InCallPresenter Refactor InCallPresenter to be more dependency injection friendly. Add some test-only methods to make testing easier Change-Id: I86b6eeff91d35bc3b5cb3de9262d8850673919b7
2015-02-27Add InCallUI tests folder and basic testYorke Lee
Change-Id: I3a8f03dfca5db1b7012e48e2b5dd7bd6b9dc4f3d