summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * Refactor ActionBarController and testsYorke Lee2014-10-281-38/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original CL to fix ActionBarControllerTest by using an ActivityInstrumentationTestCase was too heavyweight and caused flaky test. It was also indicative of a flaw in the original design that ActionBar couldn't be mocked out easily. Refactor the code so that: 1) getActionBar() is no longer needed 2) Respect the invariant that all access to the actionBar goes through the ActionBarController (see the changes in ListsFragment) so that any change to the ActionBar's hide offset can be tracked appropriately. Bug: 17487016 Change-Id: I935b683ddb301ca5d3952889af1381bdbdcc97d3
* | More test-related changesYorke Lee2014-10-282-2/+9
| | | | | | | | | | | | | | | | | | Fix failure in CallLogListItemHelper#testGetCallDescription_Video Add some documentation to CallDetailActivityTest Bug: 17487016 Change-Id: I31594feccb936500b20e13f3db5c68cbe5435c6e
* | Merge "Fix some broken Dialer tests" into lmp-mr1-devYorke Lee2014-10-273-4/+13
|\ \
| * | Fix some broken Dialer testsYorke Lee2014-10-253-4/+13
| | | | | | | | | | | | | | | Bug: 17487016 Change-Id: I4c13c3e826a4eb1de84708dfa27ad093b2134087
* | | Merge "Fix NPEs in ActionBarControllerTest" into lmp-mr1-devYorke Lee2014-10-271-3/+36
|\ \ \ | | |/ | |/|
| * | Fix NPEs in ActionBarControllerTestYorke Lee2014-10-251-3/+36
| |/ | | | | | | | | | | | | | | Create a MockActionBar that to prevent NPEs. For this an ActivityInstrumentationTestCase is needed. Bug: 17487016 Change-Id: Ieca95bec22c075ad64a1167e57f6b85f913bcf7e
* / Remove CallLogListItemViewYorke Lee2014-10-241-1/+2
|/ | | | | | | | | CallLogListItemView is a custom view that might have done something once, but doesn't anymore. It makes the code more complicated to read and requires a lot of casting that does nothing at all. Change-Id: I53efb35367d748aa3d164d0fb56686175967c90e
* Enable use of phone accounts for voicemail info display.Nancy Chen2014-10-153-25/+25
| | | | | | | | | | | Call the "isVoicemailNumber(subId, number)" method instead of the one with just the number. This is because we need to check whether a number is the voicemail number for a specific phone account, otherwise the UI would never correctly display "voicemail" for the non-default SIM. Bug:17925501 Change-Id: If1d6cb1acfcb570aca5e639858af8804bac202c0
* Remove ability to enable/disable phoneaccounts (4/6)Nancy Chen2014-09-161-1/+1
| | | | | | | | | Enabling/disabling of phone accounts was only used for SIP accounts and is no longer necessary for the purpose it was put in. Bug: 17510811 Change-Id: I41a2d11cfa85343fdf3f8681f1152d94abd79d2f
* Renaming Telecomm to Telecom.Tyler Gunn2014-09-121-4/+4
| | | | | | | | | | - Changing package from android.telecomm to android.telecom - Changing package from com.android.telecomm to com.android.server.telecomm. - Renaming TelecommManager to TelecomManager. Bug: 17364651 Change-Id: I44d6d6546cac53232e4e2be0ebe0391d02411309
* Replace Calls.FEATURES_NONE with 0 (2/4)Yorke Lee2014-09-083-11/+10
| | | | | Bug: 17253963 Change-Id: I9e9e56cdf4c9a60ac1e047bef0eba2ba0c8f10fb
* Pass application context into isVideoEnabled usages.Andrew Lee2014-08-201-10/+10
| | | | | Bug: 16211386 Change-Id: I0bda040bd6cd5c55ee7c708044befaad8977d460
* Fix video description CallLogListItemHelper unit test.Tyler Gunn2014-08-071-1/+3
| | | | | | | | Method signatures have changed for PhoneCallDetails and at some point the wrong method call was made. Bug: 16540503 Change-Id: Ie17facaa26aa6ebbb12a43b04d5ea4994b865a1f
* Fix some action bar logicYorke Lee2014-08-061-10/+6
| | | | | | | | | | * Restore action bar slid state only after onCreateOptionsMenu, when it has an effect * ActionBarController is now the only way to make changes to the offset of the action bar so that it can appropriately restore its state Bug: 16710397 Change-Id: Id9e0ebe210c89df0be56b32aa3bbd959cce88621
* Add account label to call details if appropriateNancy Chen2014-07-251-5/+5
| | | | | | | | | | We will be adding the account label field to call details if there is more than one account to disambiguate. Otherwise this field will be hidden. Bug: 16488229 Change-Id: Idb03d09d63372655504a5f9178e6f2e408aefb88
* Add voicemail transcriptions to DialerYorke Lee2014-07-243-43/+27
| | | | | | | | | | | | | | * Display voicemail transcriptions in the call log and call details activity in the Dialer * Fix a bug in CallDetailActivity that would result in multiple instances of VoicemailPlaybackFragment being added on rotation. Now, reuse the same fragment if it is already present in the FragmentManager, to avoid creating new ones * Simplify some test and ctor logic in PhoneCallDetails to reduce the pain of adding new fields into PhoneCallDetails * Simplified playback_layout.xml to remove unnecessary parent LinearLayouts Bug: 16320164 Change-Id: Ie68acc9058aace49d8e64f44a0128de0b6a3f842
* Merge "Remove hardcoded class name from test" into lmp-devJay Shrauner2014-07-191-2/+3
|\
| * Remove hardcoded class name from testJay Shrauner2014-07-181-2/+3
| | | | | | | | | | Bug:16347739 Change-Id: I810af831b782f0a7a6f3aa9df154c93c03c4080e
* | Rename PhoneAccountMetadata to PhoneAccountEvan Charlton2014-07-201-3/+3
| | | | | | | | Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
* | Rename PhoneAccount to PhoneAccountHandleEvan Charlton2014-07-201-3/+3
|/ | | | Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
* Added a dialog to confirm caller id reporting (1/2).Sai Cheemalapati2014-07-161-1/+1
| | | | | | Database and call log are now updated when user confirms. Bug: 11150383 Change-Id: Ic716e92bcb2280c1d352bd2232bda516e83349b2
* Merge "Revert "Added a dialog to confirm caller id reporting."" into lmp-devSai Cheemalapati2014-07-151-1/+1
|\
| * Revert "Added a dialog to confirm caller id reporting."Sai Cheemalapati2014-07-161-1/+1
| | | | | | | | | | | | This reverts commit cee1e65f0c411e35c4521922c3e9def13e01fe64. Change-Id: Ic50fd443856ea7e22714423939ac782cd4e89276
* | Merge "Added a dialog to confirm caller id reporting." into lmp-devSai Cheemalapati2014-07-161-1/+1
|\|
| * Added a dialog to confirm caller id reporting.Sai Cheemalapati2014-07-151-1/+1
| | | | | | | | | | | | | | Database and call log are now updated when user confirms. Bug: 11150383 Change-Id: Iafaca2172f2d44a6edf8514f7d900888dab9cf0e
* | Various call log / call details video call changes.Tyler Gunn2014-07-153-1/+49
|/ | | | | | | | | | | | | | | | | | Requires cl/501841. Call log: 1. Add video call affordance. 2. Add accessibility text for calls, video call afforance. 3. Fixed unit test Call details: 1. Showing video icon when a call had video. 2. Changing call headings to indicate they were video calls. Bug: 16013879 Bug: 16013344 Bug: 16013684 Change-Id: I53b5bf9b0b1a63f9d119318d59f690d310cca7c8
* Implement multi-SIM capabilities (3/6) [DO NOT MERGE]Ihab Awad2014-07-141-3/+3
| | | | | Bug:16292368 Change-Id: I367f838a08bd478aca86e2d75b221250ebd8a82e (cherry picked from commit 0e8a870afc9de3063a652256e81f9bf2043914e0)
* Adding support for video call icon and data usage in call log.Tyler Gunn2014-07-106-43/+163
| | | | | | Bug: 16013684 Bug: 16015261 Change-Id: Ie75443d641c1e09a5772bb618aba55de8583716b
* Rename Telecomm "Subscription" to "Account" (3/7)Ihab Awad2014-07-023-23/+23
| | | | Change-Id: I866e9d4f629a2b23acb3d3d3f2baeb0a674522f7
* Adds back commented out test in DialerPaul Soulos2014-06-301-10/+6
| | | | Change-Id: I032ca1c60cc7c5dbf9a6a832434fef5174ce90e8
* Comments out faulty testPaul Soulos2014-06-301-3/+3
| | | | Change-Id: I72755b548ae95e106fda012cd971d9c966a25cff
* Add icon indicating subscription in call log/call historyNancy Chen2014-06-265-24/+79
| | | | | | | | | Display an icon in the call details showing which connection provider (subscription) is responsible for the call. Bug: 15473965 Change-Id: I0c6755864083799b8bafe20c3692b0d943beeee3
* Add auto-offset for manual call log entry test screen.Tyler Gunn2014-06-133-0/+34
| | | | | | | | Added ability to auto-offset the next call date/time to be manually added to the call log. This helps when you want to add a number of repeated calls but offset them by a short time (eg 1 minute). Change-Id: I66a59df47e17b99a008ca289c641301eda460b5e
* Merge "Applying call details red-lines."Tyler Gunn2014-06-101-1/+0
|\
| * Applying call details red-lines.Tyler Gunn2014-06-091-1/+0
| | | | | | | | | | | | | | | | | | - Contact photo is now quick-contact which invokes quick-contact view. - Removed send MS and call affordances, along with scrolling effect. - Added missing accessibility strings to voicemail controls. Bug: 15328410 Change-Id: I6d78d582af8c3a5cea8e051911cf3be763df2a36
* | Adding ability to manually enter a call log entry to dialer test app.Tyler Gunn2014-06-103-2/+308
|/ | | | | | | | Modified the FillCallLogTestActivity to include the ability to add calls to the call log manually (ie by specifying call date/time, type, etc). This is useful for call log debugging and testing. Change-Id: I4984b78fd38ceef4f18c89635fe61e4cd2c3ce3f
* Fix broken Dialer testsYorke Lee2014-05-294-22/+12
| | | | | | | | Remove unneeded use of resources Instantiate CallLogListItemViews correctly Add dummy number to SmartDialPrefixTests Change-Id: I417f54329f43d53e24c4ab6cc65d08d05b5dd6a1
* Fix build breakage: Revert "Fix broken Dialer tests"Ed Heyl2014-05-294-12/+22
| | | | | | This reverts commit fabd82363920a24be32d68adb5966412c626dea0. Change-Id: If65df0d4badc3381f60923a04412f4bec5c36c62
* Fix broken Dialer testsYorke Lee2014-05-284-22/+12
| | | | | | | | Remove unneeded use of resources Instantiate CallLogListItemViews correctly Add dummy number to SmartDialPrefixTests Change-Id: I3d61c3a6892f3fe84a353cc7617c011aa5124e9a
* Fix build breakYorke Lee2014-05-271-2/+2
| | | | Change-Id: I84dd2667227f40962b8d034c35c5e56f854221e3
* Add ActionBarControllerYorke Lee2014-05-231-0/+181
| | | | | | | | | | | | | | | * Collect all actionBar interactions within DialtactsActivity into a single controller to ensure that it behaves more deterministically, and fix some bugs with regards to actionBar interactions. * Make sure that action bar correctly handles activity recreation and destruction by saving its state * Add unit tests and mock classes for ActionBarController Bug: 14900155 Change-Id: I370831db425e1970b118f5d4fed3ce9297e3610d
* Fixing build error caused by missing implementation in test class.Tyler Gunn2014-05-151-0/+10
| | | | | Bug: 13962594 Change-Id: I92b3da51069f4299ef056fdfa6abdcf63c5549c1
* Animate call log expand/collapseYorke Lee2014-05-131-1/+1
|
* Removing highlighting of missed calls and voicemails in the call log.Tyler Gunn2014-05-123-28/+27
| | | | | | | Also fixing some broken unit tests. Bug: 13962594 Change-Id: I3ca2d72b3013b6324da19717dbc984f3e7e576e2
* Adding support for expandable call log entries.Tyler Gunn2014-05-054-115/+34
| | | | | Bug: 13962594 Change-Id: I19a4a65dce922619df0a709293ca291c345c8be7
* Use PhoneFavoritesTileAdapter directly in GridViewYorke Lee2014-04-211-69/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL moves the adapter that contains the speed dial contacts into its own GridView that lives in PhoneFavoritesFragment. This is the first step to splitting up PhoneFavoritesMergedAdapter into a list of shortcuts and a grid of contacts, and also get rid of the convoluted ContactTileRow logic within PhoneFavoritesTileAdapter, to facilitate a future transition to RecyclerView. * PhoneFavoritesTileAdapter now directly returns PhoneFavoriteTileViews rather than ContactTileRows. * Deleted a lot of unnecessary complicated logic within PhoneFavoritesTileAdapter that had to do with ContactTileRows. * Simplified and rewrote animation logic so that animations now perform as expected within the GridView. In the future this may not be necessary if RecyclerView is used. * Rewrote layout/measurement logic for PhoneFavoriteTileView. It now determines its height directly based on what its measured width is. * Replaced PhoneFavoritesListView in PhoneFavoriteFragment with a standard GridView * Delete stale PhoneFavoriteTileAdapter tests Notes: Call shortcut cards are now temporarily missing due to this change Bug: 13963734 Bug: 13933092 Bug: 13419223 Change-Id: I71e8970667589e4024d00e9af2c8b45c843c5db1
* Use new ContactPhotoManager APIs for letter tile avatarsYorke Lee2014-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | *Modify the following uses of ContactPhotoManager.loadPhoto in the following classes to include a DefaultImageRequest, populated with the contact's display name, lookupkey, and contact type as necessary CallDetailActivity CallLogAdapter PhoneFavoriteTileView *Add utility methods to ContactInfoHelper, to parse a lookupUri for a lookup key, as well as determine whether or not a contact is a business contact, from its sourceType field. *Add a sourceType field to PhoneCallDetails which can be used to track whether or not PhoneCallDetails belongs to a business contact *Add a lookupKey field to ContactInfo Bug: 13101785 Change-Id: If339a9c038f92a0212f8f8b45b5e3cc5f6442562
* Switch favorites screen to grid layoutYorke Lee2014-02-181-5/+135
| | | | | | | | | | | | | | | | | | | | * Add logic to PhoneFavoritesTileAdapter so that it now supports an unlimited number of tiled rows. * Tiles now have a configurable height to width ratio. * Fix animations so that tiles moving up and down rows appear to animate in from the correct direction. Tiles moving to the row above should animate in from right to left. Tiles moving to the row below should animate in from left to right. * Update the number of columns in the grid to 2. * Update layout of individual tiles to match redlines from UX. * Tweak font sizes for tiles * No longer truncate names in tiles * Tiles have a 2-3 height to width ratio * Update assets and layout for favorite and more info icons * Add content description for the favorite button * Add tests for PhoneFavoritesTileAdapter Change-Id: I50b298f0941698985d281f13e6a87c5a9b613efa
* Call History Affordances SwapTyler Gunn2014-02-033-31/+243
| | | | | | | | | 1. Swapped the intents for the primary view 2. Changed the icon for the secondary action button 3. Added a vertical divider line to separate the secondary action button from the primary view 4. Cleaned up the accessibility text Change-Id: Ifd4ceff0d67b1587c4378e29be7344de50057a7d
* Merge "Remove use of hidden TelephonyManager methods"Yorke Lee2013-11-251-1/+4
|\