/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 | 36 private static final String AUTHORITY = "ctstest"; field in ContentUrisTest 43 private Uri uri1 = Uri.parse("content://" + AUTHORITY + "/" + PATH1); 44 private Uri uri2 = Uri.parse("content://" + AUTHORITY + "/" + PATH2); 85 String expected = "content://" + AUTHORITY + "/" + PATH1 + "/" + CODE1; in testWithAppendedId() 91 expected = "content://" + AUTHORITY + "/" + PATH2 + "/" + CODE2; in testWithAppendedId() 108 String expected = "content://" + AUTHORITY + "/" + PATH1 + "/" + CODE1; in testAppendId() 115 expected = "content://" + AUTHORITY + "/" + PATH2 + "/" + CODE2; in testAppendId()
|
D | MockSRSProvider.java | 21 final static String AUTHORITY = "android.content.cts.MockSRSProvider"; field in MockSRSProvider 29 setupSuggestions(AUTHORITY, MODE); in MockSRSProvider()
|
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 | ContentProviderClientTest.java | 71 private static final String AUTHORITY = "authority"; field in ContentProviderClientTest 360 mContentProviderClient.applyBatch(AUTHORITY, OPS); in testApplyBatch() 362 verify(mIContentProvider).applyBatch(mAttributionSource, AUTHORITY, OPS); in testApplyBatch() 368 AUTHORITY, OPS); in testApplyBatchTimeout() 370 testTimeout(() -> mContentProviderClient.applyBatch(AUTHORITY, OPS)); in testApplyBatchTimeout() 372 verify(mIContentProvider, after(150)).applyBatch(mAttributionSource, AUTHORITY, OPS); in testApplyBatchTimeout() 376 mContentProviderClient.call(AUTHORITY, METHOD, ARG, ARGS); in testCall() 378 verify(mIContentProvider).call(mAttributionSource, AUTHORITY, METHOD, ARG, ARGS); in testCall() 382 doAnswer(ANSWER_SLEEP).when(mIContentProvider).call(mAttributionSource, AUTHORITY, in testCallTimeout() 385 testTimeout(() -> mContentProviderClient.call(AUTHORITY, METHOD, ARG, ARGS)); in testCallTimeout() [all …]
|
D | MockBuggyProvider.java | 32 public static final String AUTHORITY = "android.content.cts.mockbuggyprovider"; field in MockBuggyProvider 33 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY);
|
D | ContentResolverWrapTest.java | 59 private static final String AUTHORITY = "com.example"; field in ContentResolverWrapTest 60 private static final Uri URI = Uri.parse("content://" + AUTHORITY); 97 pi.authority = AUTHORITY; in setUp() 106 doReturn(RESULTS).when(mProvider).applyBatch(AUTHORITY, OPERATIONS); in testApplyBatch() 107 assertEquals(RESULTS, mResolver.applyBatch(AUTHORITY, OPERATIONS)); in testApplyBatch() 118 doReturn(EXTRAS).when(mProvider).call(AUTHORITY, METHOD, ARG, EXTRAS); in testCall() 119 assertEquals(EXTRAS, mResolver.call(AUTHORITY, METHOD, ARG, EXTRAS)); in testCall()
|
/cts/tests/tests/content/ContentUriTestApp/src/android/content/cts/contenturitestapp/ |
D | TestProvider.java | 26 private static final String AUTHORITY = "android.content.cts.contenturitestapp.provider"; field in TestProvider 28 public static final Uri CONTENT_URI_BASE = Uri.parse("content://" + AUTHORITY); 31 Uri.parse("content://" + AUTHORITY + "/none"); 34 Uri.parse("content://" + AUTHORITY + "/only.read"); 37 Uri.parse("content://" + AUTHORITY + "/only.write"); 40 Uri.parse("content://" + AUTHORITY + "/read.write");
|
/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/PhotoPicker/src/android/photopicker/cts/ |
D | CloudPhotoPickerTest.java | 113 mContext, CloudProviderPrimary.AUTHORITY); in setUp() 115 mContext, CloudProviderSecondary.AUTHORITY); in setUp() 233 CloudProviderPrimary.AUTHORITY)).isTrue(); in testSupportedProviders() 235 CloudProviderSecondary.AUTHORITY)).isTrue(); in testSupportedProviders() 238 CloudProviderNoPermission.AUTHORITY)).isFalse(); in testSupportedProviders() 240 CloudProviderNoIntentFilter.AUTHORITY)).isFalse(); in testSupportedProviders() 245 setCloudProvider(CloudProviderPrimary.AUTHORITY); in testProviderSwitchSuccess() 247 CloudProviderPrimary.AUTHORITY)).isTrue(); in testProviderSwitchSuccess() 259 setCloudProvider(CloudProviderSecondary.AUTHORITY); in testProviderSwitchSuccess() 261 CloudProviderPrimary.AUTHORITY)).isFalse(); in testProviderSwitchSuccess() [all …]
|
/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/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | EnforcingAdminAndAuthorityTest.java | 49 private static final Authority AUTHORITY = DpcAuthority.DPC_AUTHORITY; field in EnforcingAdminAndAuthorityTest 60 EnforcingAdmin admin = new EnforcingAdmin(PACKAGE_NAME, AUTHORITY, USER_HANDLE); in enforcingAdmin_getPackageName_returnsCorrectPackage() 69 EnforcingAdmin admin = new EnforcingAdmin(PACKAGE_NAME, AUTHORITY, USER_HANDLE); in enforcingAdmin_getAuthority_returnsCorrectAuthority() 71 assertThat(admin.getAuthority()).isEqualTo(AUTHORITY); in enforcingAdmin_getAuthority_returnsCorrectAuthority() 78 EnforcingAdmin admin = new EnforcingAdmin(PACKAGE_NAME, AUTHORITY, USER_HANDLE); in enforcingAdmin_getUserHandle_returnsCorrectUserHandle()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | TestSearchRecentSuggestionsProvider.java | 22 final static String AUTHORITY = "android.provider.cts.TestSRSProvider"; field in TestSearchRecentSuggestionsProvider 27 setupSuggestions(AUTHORITY, MODE); in TestSearchRecentSuggestionsProvider()
|
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 | 93 private static final String AUTHORITY = "com.example"; field in DocumentsContractTest 100 private static final Uri URI_RED = buildDocumentUri(AUTHORITY, DOC_RED); 101 private static final Uri URI_GREEN = buildDocumentUri(AUTHORITY, DOC_GREEN); 102 private static final Uri URI_BLUE = buildDocumentUri(AUTHORITY, DOC_BLUE); 103 private static final Uri URI_RESULT = buildDocumentUri(AUTHORITY, DOC_RESULT); 119 pi.authority = AUTHORITY; in setUp() 339 ejectRoot(mResolver, buildRootUri(AUTHORITY, "r00t")); in testEjectRoot() 345 ejectRoot(mResolver, buildRootUri(AUTHORITY, "r00t")); in testEjectRoot_Failure() 355 buildDocumentUriUsingTree(buildTreeDocumentUri(AUTHORITY, DOC_RED), DOC_BLUE))); in testFindDocumentPath() 438 assertEquals(res, mResolver.query(buildRootsUri(AUTHORITY), null, null, null)); in testQueryRoots() [all …]
|
/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/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/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/tests/tests/content/MockRestrictedApp/src/android/content/cts/mockrestrictedapp/ |
D | MockRestrictedProvider.java | 30 private static final String AUTHORITY = "restrictedctstest"; field in MockRestrictedProvider 37 mUrlMatcher.addURI(AUTHORITY, "testtable1", TESTTABLE1); in MockRestrictedProvider() 38 mUrlMatcher.addURI(AUTHORITY, "testtable1/#", TESTTABLE1_ID); in MockRestrictedProvider()
|
/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 240 String base = "content://" + DummyJobContentProvider.AUTHORITY + "/root"; in testDescendantsObserver() 268 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testDescendantsObserver() 284 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testDescendantsObserver() 288 String base = "content://" + DummyJobContentProvider.AUTHORITY + "/root"; in testNonDescendantsObserver() 314 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testNonDescendantsObserver() 330 assertEquals(DummyJobContentProvider.AUTHORITY, auths[0]); in testNonDescendantsObserver() 357 assertEquals(MediaStore.AUTHORITY, auths[0]); in testPhotoAdded_Reschedule() 376 assertEquals(MediaStore.AUTHORITY, auths[0]); in testPhotoAdded_Reschedule() [all …]
|
/cts/tests/tests/app/test-apps/TestComponentCallerApp/src/android/app/cts/testcomponentcaller/ |
D | TestProvider.java | 25 private static final String AUTHORITY = "android.app.cts.testcomponentcaller.provider"; field in TestProvider 26 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY);
|
/cts/tests/app/app/src/android/app/stubs/ |
D | Receiver_getBindingUidImportance.java | 46 private static final String AUTHORITY = "android.app.cts.getbindinguidimportance" field in Receiver_getBindingUidImportance 102 try (var client = context.getContentResolver().acquireContentProviderClient(AUTHORITY)) { in doTestProvider() 103 try (var c = client.query(Uri.parse("content://" + AUTHORITY + "/"), in doTestProvider()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | AdditionalSubtypeLifecycleTest.java | 123 callSetAdditionalInputMethodSubtype(Ime1Constants.AUTHORITY, Ime1Constants.IME_ID, in testPerUserAdditionalInputMethodSubtype() 125 callSetAdditionalInputMethodSubtype(Ime2Constants.AUTHORITY, Ime2Constants.IME_ID, in testPerUserAdditionalInputMethodSubtype() 157 callSetAdditionalInputMethodSubtype(Ime1Constants.AUTHORITY, Ime1Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 159 callSetAdditionalInputMethodSubtype(Ime2Constants.AUTHORITY, Ime2Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 197 callSetAdditionalInputMethodSubtype(Ime1Constants.AUTHORITY, Ime1Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 199 callSetAdditionalInputMethodSubtype(Ime2Constants.AUTHORITY, Ime2Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 238 callSetAdditionalInputMethodSubtype(Ime1Constants.AUTHORITY, Ime1Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponClearDataForForegroundUser() 240 callSetAdditionalInputMethodSubtype(Ime2Constants.AUTHORITY, Ime2Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponClearDataForForegroundUser() 284 callSetAdditionalInputMethodSubtype(Ime1Constants.AUTHORITY, Ime1Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponClearDataForBackgroundUser() 286 callSetAdditionalInputMethodSubtype(Ime2Constants.AUTHORITY, Ime2Constants.IME_ID, in testClearAdditionalInputMethodSubtypeUponClearDataForBackgroundUser()
|
/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/tests/tests/contactsprovider/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()
|