• Home
  • History
  • Annotate
  • only in /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/
History log of /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
110aef099f8d35c8c6393ea84be9e154a06f601a 12-Mar-2016 Sarmad Hashmi <mhashmi@google.com> Add Update class to MockContentProvider.

+Added update method for mocking update queries
+Added expectUpdate method which accepts all update parameters

Change-Id: I002502d385da12f4c65e9037457d532f88efddad
est/mocks/MockContentProvider.java
b584d42c08295db54c7d238e6f15bb66244fd553 27-Feb-2016 Brandon Maxwell <maxwelb@google.com> Implemented expectations for delete method

+ This CL is needed so the delete method can be mocked with
whatever expectation is desired.
+ Insert#toString, Insert#equals, and Insert#hashcode were all
regenerated since the old methods didn't use all the variables.

Bug=26664600
Change-Id: I7cdd3ed49c6ad7e32fb2343419f83ef8c2bf5eac
est/mocks/MockContentProvider.java
ada2bd2926ea8fa462d9cd74dd5a2893220e8768 23-Feb-2016 Brandon Maxwell <maxwelb@google.com> Implemented mocking on MockContentProvider

+ Previously the MockContentProvider didn't support mocking calls to
insert. This change adds that needed support.
+ Changed our MockContentProvider to extend the MockContentProvider
from the framework.

Change-Id: I73fe5ad5e18613cc895a2aa129a472505035a7c3
est/mocks/ContactsMockContext.java
est/mocks/MockContentProvider.java
ce07a8811f5c9698eaebad77b6c454c89018ff52 12-Nov-2015 Brandon Maxwell <maxwelb@google.com> Added constructor so MockProviders can register with any authority

Change-Id: I99435ce66ce817c8f613b6215ae322f0927e0550
est/mocks/ContactsMockContext.java
5c59ffa9423c49fe149719510dbc2bb3bed946fb 28-Aug-2015 Jay Shrauner <shrauner@google.com> Unbundled build fixes for tests

Build tests against current SDK. Make local copy of LaunchPerformanceBase.
Use android-support-test instead of android.test.runner. Use public APIs
for querying ContentProviderOperation type.

Bug:23642167
Change-Id: Id9798146801b1676b222bdd4d9240371f70c41d2
(cherry picked from commit b3a146cc554df8c9965c79af32f2b56fbce01ba0)
est/LaunchPerformanceBase.java
16350340d9275327a0318a25ae6fb9e393917918 09-Jun-2015 Andrew Lee <anwlee@google.com> Overload getTextViewWithStrings to take a View.

This allows us to use this functionality for testing where there may
be a View but not an Activity.

Bug: 21471763
Change-Id: I9918ea77a72b52c5b8ff4eadb2b19d9fe91e12b8
est/IntegrationTestUtils.java
cd9993ef634735bb595c14b8d218ffe95df0fc74 30-Aug-2014 Zheng Fu <zhengfu@google.com> Making display name optional for directory contacts.

Bug: 17034954
Change-Id: I0ebec04ddad3cc1c8d979b02f834e5d544e8d6f3
est/mocks/MockAccountTypeManager.java
d7705a1b6595b57e250f21856c01bf734aa4d5fd 27-Aug-2014 Yorke Lee <yorkelee@google.com> API changes for ContactsContract

* Remove usages of NAME_VERIFIED
* Update ContactLoader tests
* Also fix broken unit tests as a result of ProviderInfo not having
an authority.

Bug: 17253963
Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
est/mocks/ContactsMockContext.java
c3f21a33fa554f683ddbe6d9553d1b3bd9a4fd29 22-Jul-2014 Brian Attwell <brianattwell@google.com> Only kill image requests from the one fragment

In ContractEntryListAdapter#changeCursor(), don't kill all image loading
requests app wide. Instead, only kill the image loading requests that
were associated with the adapter's fragment.

Bug: 15522504
Change-Id: Ib4e0448217e8bbb8df55e74649a013e0f1688a22
est/mocks/MockContactPhotoManager.java
3f9c2f426058413055fa54c08c69ad9461717658 29-Apr-2014 Yorke Lee <yorkelee@google.com> Add circular photo support to ContactPhotoManager

* Use RoundedBitmapDrawable to draw circular bitmaps

* Add isCircular to DefaultImageRequest, and add circular
support to LetterTileDrawable

* Temporarily disable fading in contact photos using
TransitionImageDrawable

Bug: 13747208

Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
est/mocks/MockContactPhotoManager.java
353068614111bd79ac92e0ae98af433868ba3fb3 16-Apr-2014 Tyler Gunn <tgunn@google.com> Fixing issue where contact photos are shown in the wrong location due to
a concurrent change to the search results list which occurs after the
the request to load the contact photo is registered, but prior to it
being fulfilled.

Bug: 13967012
Change-Id: I6f14e69ad1841df8b7da5632e4a9551b6641e04b
est/mocks/MockContactPhotoManager.java
6084726fbdda78bdb16e2d4cc1c3b81c84fd5da1 12-Feb-2014 Yorke Lee <yorkelee@google.com> Add support for letter tile avatars to ContactsPhotoManager

* Add LetterTileDrawable, a custom drawable used to display letter tiles
for contacts without a contact photo, instead of static bitmap resource
drawables.

* Add a class DefaultImageRequest to ContactPhotoManager. This is essentially
a data holder object used to store and retrieve various parameters that
clients can use to configure the way they want their requested letter tile
avatars to be drawn.

* Add LetterTileImageProvider to ContactPhotoManager. LetterTileImageProvider
extends DefaultImageProvider, but returns instances of LetterTileDrawable
instead of BitmapDrawables when a default contact image is needed.

* Add two new APIs to ContactPhotoManager:
getDefaultAvatarForContact - This returns an instance of a LetterTileDrawable,
configured with the display parameters stored in the provided
DefaultImageRequest.
getDefaultAvatarUriForContact - This returns an uri which the
ContactPhotoManager can use to recreate a DefaultImageRequest and hence
a LetterTileDrawable.

* Modify ContactPhotoManager.loadPhoto and loadThumbnail to accept a
DefaultImageRequest as a parameter.

* Modify the following classes to use the new ContactPhotoManager APIs. These
affect both the Dialer and People apps.
ContactEntryListADapter
ContactListAdapter
ContactTileView
PhoneNumberListAdapter

Bug: 13101785
Change-Id: Id1a87b459d6e63c42049739059a3b3ee202af837
est/mocks/MockContactPhotoManager.java
5ade0bb1757b216ace2f50d2357409bf9876a07a 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.

Bug: 11294679
Change-Id: If56a60aed2003ac7b8fcedac7ce4f1a7503bce94
est/mocks/MockAccountTypeManager.java
est/mocks/MockContactPhotoManager.java
est/mocks/MockSharedPreferences.java
2fe1a8f66f98c6b1b17681b64dbbafde1ab5e07d 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving common test code to be shared by Dialer and Contacts.

Bug: 6993891
Change-Id: Id45480f4c4c1eb8726f701c5fed481f21ed134a0
est/mocks/ContactsMockContext.java
est/mocks/ContactsMockPackageManager.java
est/mocks/MockContentProvider.java
d6ee8ee8ff25334a6544570d3f0c454bec955908 18-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adding common test classes for dialer and contacts.

Bug: 6993891
Change-Id: I4bd6fc38be1723e8f33c88041d0d459d43cac6a5
est/FragmentTestActivity.java
est/IntegrationTestUtils.java