Home
last modified time | relevance | path

Searched refs:URI (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/content/src/android/content/cts/
DContentResolverWrapTest.java60 private static final Uri URI = Uri.parse("content://" + AUTHORITY); field in ContentResolverWrapTest
112 doReturn(42).when(mProvider).bulkInsert(URI, VALUES_ARRAY); in testBulkInsert()
113 assertEquals(42, mResolver.bulkInsert(URI, VALUES_ARRAY)); in testBulkInsert()
120 assertEquals(EXTRAS, mResolver.call(URI, METHOD, ARG, EXTRAS)); in testCall()
125 doReturn(URI).when(mProvider).canonicalize(URI); in testCanonicalize()
126 assertEquals(URI, mResolver.canonicalize(URI)); in testCanonicalize()
131 doReturn(URI).when(mProvider).uncanonicalize(URI); in testUncanonicalize()
132 assertEquals(URI, mResolver.uncanonicalize(URI)); in testUncanonicalize()
137 doReturn(TYPE).when(mProvider).getType(URI); in testType()
138 assertEquals(TYPE, mResolver.getType(URI)); in testType()
[all …]
DContentProviderClientTest.java74 private static final Uri URI = Uri.parse("com.example.app://path"); field in ContentProviderClientTest
123 mContentProviderClient.query(URI, null, ARGS, mCancellationSignal); in testQuery()
124 verify(mIContentProvider).query(mAttributionSource, URI, null, ARGS, in testQuery()
129 doAnswer(ANSWER_SLEEP).when(mIContentProvider).query(mAttributionSource, URI, null, in testQueryTimeout()
132 testTimeout(() -> mContentProviderClient.query(URI, null, ARGS, mCancellationSignal)); in testQueryTimeout()
134 verify(mIContentProvider, after(150)).query(mAttributionSource, URI, null, ARGS, in testQueryTimeout()
140 () -> mContentProviderClient.query(URI, null, ARGS, mCancellationSignal)); in testQueryAlreadyCancelled()
141 verify(mIContentProvider, never()).query(mAttributionSource, URI, null, ARGS, in testQueryAlreadyCancelled()
146 mContentProviderClient.getType(URI); in testGetType()
147 verify(mIContentProvider).getType(mAttributionSource, URI); in testGetType()
[all …]
DIntentFilterTest.java118 private static final Uri URI = Uri.parse("content://com.example/people"); field in IntentFilterTest
803 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.matchData(null, DATA_SCHEME, URI)); in testMatchData()
805 DATA_SCHEME, URI)); in testMatchData()
809 "mDataSchemestest", URI)); in testMatchData()
811 URI)); in testMatchData()
814 assertEquals(expected, mIntentFilter.matchData(null, DATA_SCHEME, URI)); in testMatchData()
816 DATA_SCHEME, URI)); in testMatchData()
820 mIntentFilter.matchData(DATA_STATIC_TYPE, DATA_SCHEME, URI)); in testMatchData()
823 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.matchData(null, DATA_SCHEME, URI)); in testMatchData()
1545 assertEquals(IntentFilter.NO_MATCH_DATA, mIntentFilter.matchData(null, DATA_SCHEME, URI)); in testMatchWithIntentData()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/
DDeviceAdminChoosePrivateKeyAliasEventTest.java51 private static final Uri URI = Uri.parse("http://uri.com"); field in DeviceAdminChoosePrivateKeyAliasEventTest
68 DEVICE_ADMIN_RECEIVER, sContext, intent, UID, URI, ALIAS).log(); in whereIntent_works()
83 DEVICE_ADMIN_RECEIVER, sContext, differentIntent, UID, URI, ALIAS).log(); in whereIntent_skipsNonMatching()
85 DEVICE_ADMIN_RECEIVER, sContext, intent, UID, URI, ALIAS).log(); in whereIntent_skipsNonMatching()
97 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_works()
113 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
117 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching()
133 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS).log(); in whereDeviceAdminReceiver_defaultValue_works()
147 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
151 DEVICE_ADMIN_RECEIVER, sContext, INTENT, UID, URI, ALIAS) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DAppUriAuthenticationPolicyTest.java41 private final static Uri URI = Uri.parse("test.com"); field in AppUriAuthenticationPolicyTest
46 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS)
53 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAndUrisMappings_returnsMapping()
60 assertThat(urisToAlias.containsKey(URI)).isTrue(); in getAppAndUrisMappings_returnsMapping()
61 assertThat(urisToAlias.get(URI)).isEqualTo(ALIAS); in getAppAndUrisMappings_returnsMapping()
68 .addAppAndUriMapping(PACKAGE_NAME, URI, ALIAS) in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris()
75 assertThat(urisToAlias.containsKey(URI)).isTrue(); in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris()
76 assertThat(urisToAlias.get(URI)).isEqualTo(ALIAS); in getAppAnyUrisMappings_multipleUrisSameAlias_containsBothUris()
96 /* packageName= */ null, URI, ALIAS); in addAppAndUriMapping_nullPackageName_throwException()
107 URI, /* alias= */null); in addAppAndUriMapping_nullAlias_throwException()
[all …]
DCredentialManagementAppTest.java88 private final static Uri URI = Uri.parse("https://test.com"); field in CredentialManagementAppTest
91 .addAppAndUriMapping(sContext.getPackageName(), URI, ALIAS)
289 /* keyTypes= */ null, /* issuers= */ null, URI, /* alias = */ null) in choosePrivateKeyAlias_isCredentialManagementApp_aliasSelected()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/proxy/
DPacProxyTest.java25 import java.net.URI;
204 URI uri = new URI("http://localhost/test/my/url"); in testDirect()
220 URI uri = new URI("http://localhost/test/my/url"); in testLocalPlusDirect()
240 URI uri = new URI("http://" + host + "/test/my/url"); in testHostPassthrough()
259 URI uri = new URI("http://localhost/my/url/"); in testUrlPassthrough()
267 uri = new URI("http://localhost/not/my/url/"); in testUrlPassthrough()
282 URI uri = new URI("http://testhost/"); in testStringCase()
DStaticProxyTest.java23 import java.net.URI;
79 URI uri = new URI("http://somedomain.com/test/my/url"); in testProxySelector()
97 URI uri = new URI("http://example.com/test/my/url"); in testProxySelectorExclude()
109 URI uri = new URI("http://somedomain.com/test/my/url"); in testClearProxySelector()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DDeletedContactUtil.java33 private static final Uri URI = DeletedContacts.CONTENT_URI; field in DeletedContactUtil
39 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryDeletedTimestampForContactId()
56 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount()
70 Cursor cursor = resolver.query(URI, projection, null, null, null); in query()
83 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
DRawContactUtil.java34 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; field in RawContactUtil
38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); in update()
62 Uri uri = resolver.insert(URI, values); in insertRawContact()
68 Uri uri = ContentUris.withAppendedId(URI, rawContactId); in queryByRawContactId()
80 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryByContactId()
87 Uri uri = ContentUris.withAppendedId(URI, rawContactId) in delete()
DDataUtil.java33 private static final Uri URI = ContactsContract.Data.CONTENT_URI; field in DataUtil
37 Uri uri = ContentUris.withAppendedId(URI, dataId); in queryById()
79 Uri uri = resolver.insert(URI, newValues); in insertData()
84 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete()
89 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()
DContactUtil.java34 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; field in ContactUtil
38 Uri uri = ContentUris.withAppendedId(URI, contactId); in update()
43 Uri uri = ContentUris.withAppendedId(URI, contactId); in delete()
51 Uri uri = ContentUris.withAppendedId(URI, contactId); in recordExistsForContactId()
DContactsContract_DeletedContacts.java38 private static final Uri URI = ContactsContract.DeletedContacts.CONTENT_URI; field in ContactsContract_DeletedContacts
49 DatabaseAsserts.assertDeleteIsUnsupported(mResolver, URI); in testDelete_isUnsupported()
51 Uri uri = ContentUris.withAppendedId(URI, 1L); in testDelete_isUnsupported()
56 DatabaseAsserts.assertInsertIsUnsupported(mResolver, URI); in testInsert_isUnsupported()
/cts/tests/framework/base/grammaticalinflection/src/android/grammaticalinflection/cts/
DGrammaticalInflectionBaseActivity.java26 private static final Uri URI = Uri.parse( field in GrammaticalInflectionBaseActivity
33 .acquireContentProviderClient(URI); in createTestJournalClient()
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DNetworkTimeUpdateServiceShellHelper.java22 import java.net.URI;
74 public void setServerConfigForTests(URI uri, long timeoutMillis) throws Exception { in setServerConfigForTests()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/
DEditTextAppConstants.java29 public static final String URI = field in EditTextAppConstants
/cts/tests/tests/apache-http/src/android/net/http/cts/
DHttpResponseCacheTest.java34 import java.net.URI;
91 @Override public CacheResponse get(URI uri, String requestMethod, in testGetInstalledWithWrongTypeInstalled()
95 @Override public CacheRequest put(URI uri, URLConnection connection) { in testGetInstalledWithWrongTypeInstalled()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DInputMethodServiceDeviceTest.java91 EditTextAppConstants.URI); in testCreateIme1()
111 EditTextAppConstants.URI); in testSwitchToNextInputMethod()
137 EditTextAppConstants.URI); in switchToPreviousInputMethod()
165 EditTextAppConstants.URI); in testSwitchToHandwritingInputMethod()
239 EditTextAppConstants.URI); in testInputUnbindsOnImeStopped()
276 EditTextAppConstants.URI); in testInputUnbindsOnAppStopped()
306 EditTextAppConstants.URI); in testImeSwitchingWithoutWindowFocusAfterDisplayOffOn()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibDelegatedAdminReceiverTest.java48 private static final Uri URI = Uri.parse("http://uri"); field in EventLibDelegatedAdminReceiverTest
62 receiver.onChoosePrivateKeyAlias(sContext, sIntent, UID, URI, ALIAS); in choosePrivateKeyAlias_logsChoosePrivateKeyAliasEvent()
/cts/tests/tests/time/src/android/app/time/cts/
DNetworkTimeUpdateServiceSntpTest.java52 import java.net.URI;
173 URI uri = new URI("ntp", null, server.getAddress().getHostAddress(), server.getPort(), in testNetworkTimeUpdate()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java68 private static final Uri URI = Uri.parse("content://android.server.wm.testjournalprovider"); field in TestJournalProvider
264 .acquireContentProviderClient(URI); in create()
266 throw new RuntimeException("Unable to acquire " + URI); in create()
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DModifyInstallerPackageTest.java165 context.getContentResolver().call(UtilsProvider.URI, "", "", extras); in call()
DUtils.java52 getContext().getContentResolver().call(UtilsProvider.URI, "", "", extras); in call()
/cts/tests/tests/media/audio/jni/
Dappendix-b-1-2-recording.cpp148 uri.URI = (SLchar *) "file:///recordsample.wav"; in TestAudioRecording()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java33 public static final Uri URI = Uri.parse("content://com.android.cts.permissiondeclareapp/"); field in UtilsProvider

12