/cts/tests/tests/content/src/android/content/cts/ |
D | ContentResolverSyncTestCase.java | 42 private static final String AUTHORITY = "android.content.cts.authority"; field in ContentResolverSyncTestCase 68 cancelSync(null, AUTHORITY, LATCH_TIMEOUT_MS); in tearDown() 146 if (!ContentResolver.isSyncActive(ACCOUNT, AUTHORITY) in cancelSync() 147 && !ContentResolver.isSyncPending(ACCOUNT, AUTHORITY)) { in cancelSync() 190 AUTHORITY, in testRequestSync() 195 setIsSyncable(ACCOUNT, AUTHORITY, true); in testRequestSync() 196 cancelSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync() 200 requestSync(ACCOUNT, AUTHORITY, LATCH_TIMEOUT_MS); in testRequestSync() 206 assertEquals(AUTHORITY, getMockSyncAdapter().getAuthority()); in testRequestSync() 221 AUTHORITY, in testCancelSync() [all …]
|
D | ContentUrisTest.java | 25 private static final String AUTHORITY = "ctstest"; field in ContentUrisTest 32 private Uri uri1 = Uri.parse("content://" + AUTHORITY + "/" + PATH1); 33 private Uri uri2 = Uri.parse("content://" + AUTHORITY + "/" + PATH2); 70 String expected = "content://" + AUTHORITY + "/" + PATH1 + "/" + CODE1; in testWithAppendedId() 76 expected = "content://" + AUTHORITY + "/" + PATH2 + "/" + CODE2; in testWithAppendedId() 91 String expected = "content://" + AUTHORITY + "/" + PATH1 + "/" + CODE1; in testAppendId() 98 expected = "content://" + AUTHORITY + "/" + PATH2 + "/" + CODE2; in testAppendId()
|
D | ContentProviderClientTest.java | 66 private static final String AUTHORITY = "authority"; field in ContentProviderClientTest 341 mContentProviderClient.applyBatch(AUTHORITY, OPS); in testApplyBatch() 343 verify(mIContentProvider).applyBatch(PACKAGE_NAME, AUTHORITY, OPS); in testApplyBatch() 348 doAnswer(ANSWER_SLEEP).when(mIContentProvider).applyBatch(PACKAGE_NAME, AUTHORITY, OPS); in testApplyBatchTimeout() 350 testTimeout(() -> mContentProviderClient.applyBatch(AUTHORITY, OPS)); in testApplyBatchTimeout() 352 verify(mIContentProvider).applyBatch(PACKAGE_NAME, AUTHORITY, OPS); in testApplyBatchTimeout() 356 mContentProviderClient.call(AUTHORITY, METHOD, ARG, ARGS); in testCall() 358 verify(mIContentProvider).call(PACKAGE_NAME, AUTHORITY, METHOD, ARG, ARGS); in testCall() 362 doAnswer(ANSWER_SLEEP).when(mIContentProvider).call(PACKAGE_NAME, AUTHORITY, METHOD, ARG, in testCallTimeout() 365 testTimeout(() -> mContentProviderClient.call(AUTHORITY, METHOD, ARG, ARGS)); in testCallTimeout() [all …]
|
D | ContentResolverWrapTest.java | 57 private static final String AUTHORITY = "com.example"; field in ContentResolverWrapTest 58 private static final Uri URI = Uri.parse("content://" + AUTHORITY); 95 pi.authority = AUTHORITY; in setUp() 104 doReturn(RESULTS).when(mProvider).applyBatch(AUTHORITY, OPERATIONS); in testApplyBatch() 105 assertEquals(RESULTS, mResolver.applyBatch(AUTHORITY, OPERATIONS)); in testApplyBatch() 116 doReturn(EXTRAS).when(mProvider).call(AUTHORITY, METHOD, ARG, EXTRAS); in testCall() 117 assertEquals(EXTRAS, mResolver.call(AUTHORITY, METHOD, ARG, EXTRAS)); in testCall()
|
D | DummyProvider.java | 48 public static final String AUTHORITY = "android.content.cts.dummyprovider"; field in DummyProvider 49 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 58 sMatcher.addURI(AUTHORITY, null, MATCH_NAME_VALUE); in sMatcher.addURI() argument 59 sMatcher.addURI(AUTHORITY, MOCK_OPERATION, MATCH_MOCK_OPERATION); in sMatcher.addURI() argument
|
D | MockSRSProvider.java | 21 final static String AUTHORITY = "android.content.cts.MockSRSProvider"; field in MockSRSProvider 29 setupSuggestions(AUTHORITY, MODE); in MockSRSProvider()
|
D | TestPagingContentProvider.java | 38 static final String AUTHORITY = "android.content.cts.testpagingprovider"; field in TestPagingContentProvider 40 static final Uri PAGED_DATA_URI = Uri.parse("content://" + AUTHORITY + "/paged/"); 41 static final Uri UNPAGED_DATA_URI = Uri.parse("content://" + AUTHORITY + "/un-paged/");
|
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/ |
D | DirectoryProvider.java | 49 private static final String AUTHORITY = "com.android.cts.contact.directory.provider"; field in DirectoryProvider 55 private static final Uri AUTHORITY_URI = Uri.parse("content://" + AUTHORITY); 90 mURIMatcher.addURI(AUTHORITY, "directories", GAL_DIRECTORIES); in onCreate() 91 mURIMatcher.addURI(AUTHORITY, "contacts/filter/*", GAL_FILTER); in onCreate() 92 mURIMatcher.addURI(AUTHORITY, "contacts/lookup/*/entities", GAL_CONTACT); in onCreate() 93 mURIMatcher.addURI(AUTHORITY, "contacts/lookup/*/#/entities", GAL_CONTACT_WITH_ID); in onCreate() 94 mURIMatcher.addURI(AUTHORITY, "data/emails/filter/*", GAL_EMAIL_FILTER); in onCreate() 95 mURIMatcher.addURI(AUTHORITY, "data/phones/filter/*", GAL_PHONE_FILTER); in onCreate() 96 mURIMatcher.addURI(AUTHORITY, "phone_lookup/*", GAL_PHONE_LOOKUP); in onCreate() 97 mURIMatcher.addURI(AUTHORITY, "data/callables/filter/*", GAL_CALLABLES_FILTER); in onCreate() [all …]
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/ |
D | EventProviderConstants.java | 38 public static final String AUTHORITY = "android.inputmethodservice.cts.provider"; field in EventProviderConstants 41 private static final String BASE_URI = "content://" + AUTHORITY; 78 CURSOR_DIR_BASE_TYPE + "/" + AUTHORITY + ".ime_event"; 82 CURSOR_ITEM_BASE_TYPE + "/" + AUTHORITY + ".ime_event";
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | FontsContractTest.java | 55 private static final String AUTHORITY = "android.provider.fonts.cts.font"; field in FontsContractTest 152 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in requestFont() 167 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in requestFontNegativeErrorCode() 184 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in querySingleFont() 201 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryMultipleFont() 219 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryAttributes() 249 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryNotFound() 265 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryUnavailable() 281 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryMalformed() 297 FontRequest request = new FontRequest(AUTHORITY, PACKAGE, in queryMultipleOneNotFound() [all …]
|
D | DocumentsContractTest.java | 91 private static final String AUTHORITY = "com.example"; field in DocumentsContractTest 98 private static final Uri URI_RED = buildDocumentUri(AUTHORITY, DOC_RED); 99 private static final Uri URI_GREEN = buildDocumentUri(AUTHORITY, DOC_GREEN); 100 private static final Uri URI_BLUE = buildDocumentUri(AUTHORITY, DOC_BLUE); 101 private static final Uri URI_RESULT = buildDocumentUri(AUTHORITY, DOC_RESULT); 116 pi.authority = AUTHORITY; in setUp() 300 ejectRoot(mResolver, buildRootUri(AUTHORITY, "r00t")); in testEjectRoot() 306 ejectRoot(mResolver, buildRootUri(AUTHORITY, "r00t")); in testEjectRoot_Failure() 316 buildDocumentUriUsingTree(buildTreeDocumentUri(AUTHORITY, DOC_RED), DOC_BLUE))); in testFindDocumentPath() 399 assertEquals(res, mResolver.query(buildRootsUri(AUTHORITY), null, null, null)); in testQueryRoots() [all …]
|
D | TestSearchRecentSuggestionsProvider.java | 22 final static String AUTHORITY = "android.provider.cts.TestSRSProvider"; field in TestSearchRecentSuggestionsProvider 27 setupSuggestions(AUTHORITY, MODE); in TestSearchRecentSuggestionsProvider()
|
D | SearchRecentSuggestionsTest.java | 32 + TestSearchRecentSuggestionsProvider.AUTHORITY; 48 TestSearchRecentSuggestionsProvider.AUTHORITY); in SearchRecentSuggestionsTest() 52 new SearchRecentSuggestions(mProviderContext, TestSearchRecentSuggestionsProvider.AUTHORITY, in testConstructor() 58 TestSearchRecentSuggestionsProvider.AUTHORITY, in testSearchRecentSuggestions()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TriggerContentTest.java | 48 static final Uri MEDIA_URI = Uri.parse("content://" + MediaStore.AUTHORITY + "/"); 51 static final Uri MEDIA_EXTERNAL_URI = Uri.parse("content://" + MediaStore.AUTHORITY 242 String base = "content://" + DummyJobContentProvider.AUTHORITY + "/root"; in testDescendantsObserver() 270 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testDescendantsObserver() 286 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testDescendantsObserver() 290 String base = "content://" + DummyJobContentProvider.AUTHORITY + "/root"; in testNonDescendantsObserver() 316 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testNonDescendantsObserver() 332 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testNonDescendantsObserver() 359 assertEquals(MediaStore.AUTHORITY, auths[0]); in testPhotoAdded_Reschedule() 378 assertEquals(MediaStore.AUTHORITY, auths[0]); in testPhotoAdded_Reschedule() [all …]
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsSyncAdapter.java | 109 ContentResolver.requestSync(account, BatteryStatsProvider.AUTHORITY, extras); in requestSync() 120 ContentResolver.cancelSync(account, BatteryStatsProvider.AUTHORITY); in cancelPendingSyncs() 123 if (!ContentResolver.isSyncPending(account, BatteryStatsProvider.AUTHORITY) in cancelPendingSyncs() 124 && !ContentResolver.isSyncActive(account, BatteryStatsProvider.AUTHORITY)) { in cancelPendingSyncs()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp2/src/com/android/cts/ephemeralapp2/ |
D | SearchSuggestionProvider.java | 22 public static final String AUTHORITY = "com.android.cts.ephemeralapp2.Search"; field in SearchSuggestionProvider 26 setupSuggestions(AUTHORITY, MODE); in SearchSuggestionProvider()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | SearchSuggestionProvider.java | 22 public static final String AUTHORITY = "com.android.cts.normalapp.Search"; field in SearchSuggestionProvider 26 setupSuggestions(AUTHORITY, MODE); in SearchSuggestionProvider()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | SearchSuggestionProvider.java | 22 public static final String AUTHORITY = "com.android.cts.ephemeralapp1.Search"; field in SearchSuggestionProvider 26 setupSuggestions(AUTHORITY, MODE); in SearchSuggestionProvider()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_StatusUpdatesTest.java | 61 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in setUp() 113 ContentProviderResult[] results = mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in insertStatusUpdate() 124 mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in assertRowCount() 134 mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in assertPresence() 144 mResolver.applyBatch(ContactsContract.AUTHORITY, ops); in assertStatus()
|
D | DummyGalProvider.java | 42 public static final String AUTHORITY = "android.provider.cts.contacts.dgp"; field in DummyGalProvider 66 sURIMatcher.addURI(AUTHORITY, "directories", GAL_DIRECTORIES); in sURIMatcher.addURI() argument 67 sURIMatcher.addURI(AUTHORITY, "contacts/filter/*", GAL_FILTER); in sURIMatcher.addURI() argument
|
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/ |
D | SyncAdapterSettingsTest.java | 210 ContentResolver.setSyncAutomatically(mAccount, SyncAdapterSettingsProvider.AUTHORITY, in setSyncAutomaticallyAndIsSyncable() 213 ContentResolver.setIsSyncable(mAccount, SyncAdapterSettingsProvider.AUTHORITY, isSyncable); in setSyncAutomaticallyAndIsSyncable() 218 SyncAdapterSettingsProvider.AUTHORITY)); in assertSettings() 220 ContentResolver.getIsSyncable(mAccount, SyncAdapterSettingsProvider.AUTHORITY)); in assertSettings()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | DummyJobContentProvider.java | 40 public static final String AUTHORITY = "android.jobscheduler.dummyprovider"; field in DummyJobContentProvider 41 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 48 sMatcher.addURI(AUTHORITY, null, MATCH_NAME_VALUE); in sMatcher.addURI() argument
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/ |
D | DummyJobContentProvider.java | 40 public static final String AUTHORITY = "android.jobscheduler.dummyprovider"; field in DummyJobContentProvider 41 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); 48 sMatcher.addURI(AUTHORITY, null, MATCH_NAME_VALUE); in sMatcher.addURI() argument
|
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSourceContentProvider.java | 27 public static final String AUTHORITY = "android.server.wm.dndsource.contentprovider"; field in DragSourceContentProvider 34 sMatcher.addURI(AUTHORITY, "data/#", URI_DATA); in sMatcher.addURI() argument
|
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/ |
D | EventProvider.java | 19 import static android.inputmethodservice.cts.common.EventProviderConstants.AUTHORITY; 56 .addUri(AUTHORITY, EventTableConstants.NAME, EventTableConstants.TYPE_DIR) in onCreate() 57 .addUri(AUTHORITY, EventTableConstants.NAME + "/#", EventTableConstants.TYPE_ITEM) in onCreate()
|