Home
last modified time | relevance | path

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

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSliceDataTest.java37 private final Uri URI = Uri.parse("content://com.android.settings.slices/test"); field in SliceDataTest
52 .setUri(URI) in testBuilder_buildsMatchingObject()
67 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_buildsMatchingObject()
82 .setUri(URI) in testBuilder_noKey_throwsIllegalStateException()
95 .setUri(URI) in testBuilder_noTitle_throwsIllegalStateException()
108 .setUri(URI) in testBuilder_noFragment_throwsIllegalStateException()
121 .setUri(URI) in testBuilder_noPrefController_throwsIllegalStateException()
134 .setUri(URI) in testBuilder_noSubtitle_buildsMatchingObject()
145 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_noSubtitle_buildsMatchingObject()
157 .setUri(URI) in testBuilder_noScreenTitle_buildsMatchingObject()
[all …]
DSpecialCaseSliceManagerTest.java49 CustomSliceRegistry.sUriToSlice.put(FakeSliceable.URI, FakeSliceable.class); in setUp()
55 mContext, CustomSliceRegistry.getSliceClassByUri(FakeSliceable.URI)); in getSliceableFromUri_returnsCorrectObject()
62 final Uri parameterUri = FakeSliceable.URI in getSliceableFromUriWithParameter_returnsCorrectObject()
76 final boolean isValidUri = CustomSliceRegistry.isValidUri(FakeSliceable.URI); in isValidUri_validUri_returnsTrue()
91 CustomSliceRegistry.isValidAction(FakeSliceable.URI.toString()); in isValidAction_validActions_returnsTrue()
107 static final Uri URI = new Uri.Builder() field in SpecialCaseSliceManagerTest.FakeSliceable
114 static final Slice SLICE = new Slice.Builder(URI).build();
131 return URI; in getUri()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothUpdateWorkerTest.java42 private static final Uri URI = Uri.parse("content://com.android.settings.slices/test"); field in BluetoothUpdateWorkerTest
51 mBluetoothUpdateWorker = new BluetoothUpdateWorker(mContext, URI); in setUp()
60 verify(mResolver).notifyChange(URI, null); in onAclConnectionStateChanged_shouldNotifyChange()
67 verify(mResolver).notifyChange(URI, null); in onActiveDeviceChanged_shouldNotifyChange()
74 verify(mResolver).notifyChange(URI, null); in onBluetoothStateChanged_shouldNotifyChange()
81 verify(mResolver).notifyChange(URI, null); in onConnectionStateChanged_shouldNotifyChange()
88 verify(mResolver).notifyChange(URI, null); in onProfileConnectionStateChanged_shouldNotifyChange()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaDeviceUpdateWorkerTest.java64 private static final Uri URI = Uri.parse("content://com.android.settings.slices/test"); field in MediaDeviceUpdateWorkerTest
94 mMediaDeviceUpdateWorker = new MediaDeviceUpdateWorker(mContext, URI); in setUp()
113 verify(mResolver).notifyChange(URI, null); in onDeviceListUpdate_shouldNotifyChange()
121 verify(mResolver).notifyChange(URI, null); in onSelectedDeviceStateChanged_shouldNotifyChange()
128 verify(mResolver).notifyChange(URI, null); in onDeviceAttributesChanged_shouldNotifyChange()
183 verify(mResolver).notifyChange(URI, null /* observer */); in onRequestFailed_shouldNotifyChange()
197 verify(mResolver).notifyChange(URI, null); in onReceive_inCallState_shouldNotifyChange()
211 verify(mResolver, never()).notifyChange(URI, null); in onReceive_notInCallState_doNothing()
DMediaOutputIndicatorWorkerTest.java66 private static final Uri URI = Uri.parse("content://com.android.settings.slices/test"); field in MediaOutputIndicatorWorkerTest
96 mMediaOutputIndicatorWorker = new MediaOutputIndicatorWorker(mContext, URI); in setUp()
193 verify(mResolver, times(1)).notifyChange(URI, null); in onReceive_shouldNotifyChange()
200 verify(mResolver, times(2)).notifyChange(URI, null /* observer */); in onReceive_shouldNotifyChange()
/packages/providers/ContactsProvider/test_common/src/com/android/providers/contacts/testutil/
DDeletedContactUtil.java33 private static final Uri URI = DeletedContacts.CONTENT_URI; field in DeletedContactUtil
39 Uri uri = ContentUris.withAppendedId(URI, contactId); in queryDeletedTimestampForContactId()
51 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount()
65 Cursor cursor = resolver.query(URI, projection, null, null, null); in query()
78 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
DContactUtil.java31 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; field in ContactUtil
35 Uri uri = ContentUris.withAppendedId(URI, contactId); in update()
40 Uri uri = ContentUris.withAppendedId(URI, contactId); in delete()
48 Uri uri = ContentUris.withAppendedId(URI, contactId); in recordExistsForContactId()
DDataUtil.java32 private static final Uri URI = ContactsContract.Data.CONTENT_URI; field in DataUtil
35 Uri uri = ContentUris.withAppendedId(URI, dataId); in delete()
40 Uri uri = ContentUris.withAppendedId(URI, dataId); in update()
DRawContactUtil.java34 private static final Uri URI = ContactsContract.RawContacts.CONTENT_URI; field in RawContactUtil
38 Uri uri = ContentUris.withAppendedId(URI, rawContactId); in update()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DConversationImagePartsView.java42 + " as " + Columns.URI + ", "
78 static final String URI = PhotoViewColumns.URI; field in ConversationImagePartsView.Columns
91 PhotoViewColumns.URI,
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dpointer.md186 # URI Fragment Representation {#URIFragment}
188 … also defines the URI fragment representation of JSON pointer. URI fragment is specified in [RFC39…
190 The main differences are that a the URI fragment always has a `#` (pound sign) in the beginning, an…
192 String Representation | URI Fragment Representation | Pointer Tokens (UTF-8)
201 RapidJSON fully support URI fragment representation. It automatically detects the pound sign during…
214 It can also stringify to URI fragment reprsentation by `StringifyUriFragment()`.
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DNoNullCursorAsyncQueryHandlerTest.java38 private static final Uri URI = Uri.parse("content://" + AUTHORITY); field in NoNullCursorAsyncQueryHandlerTest
78 handler.startQuery(1, null, URI, PROJECTION, null, null, null); in testCursorIsNotNull()
105 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectCookies()
132 handler.startQuery(1, cookie, URI, PROJECTION, null, null, null); in testCursorContainsCorrectColumns()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DHotwordSwitchController.java41 private static final Uri URI = Uri.parse("content://com.google.android.katniss.search." field in HotwordSwitchController
90 try (Cursor cursor = context.getContentResolver().query(URI, null, null, null, in doInBackground()
160 mContext.getContentResolver().registerContentObserver(URI, true, in init()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java243 mHandler.startUpdate(mToken, null, CalendarCache.URI, values, "key=?", in setTimeZone()
250 mHandler.startUpdate(mToken, null, CalendarCache.URI, values2, in setTimeZone()
289 mHandler.startQuery(0, context, CalendarCache.URI, CALENDAR_CACHE_POJECTION, in getTimeZone()
/packages/apps/Dialer/java/com/android/dialer/database/
DDialerDatabaseHelper.java424 DeleteContactQuery.URI, in getDeletedContactCursor()
726 UpdatedContactQuery.URI, in updateSmartDialDatabase()
755 PhoneQuery.URI, in updateSmartDialDatabase()
1070 Uri URI = field
1133 Uri URI = ContactsContract.Contacts.CONTENT_URI; field
1149 Uri URI = ContactsContract.DeletedContacts.CONTENT_URI; field
/packages/apps/Dialer/java/com/android/dialer/glidephotomanager/
Dphoto_info.proto20 // The URI of the photo.
26 // The Contacts Provider lookup URI for the contact associated with the
/packages/apps/Settings/src/com/android/settings/applications/assist/
DAssistContextPreferenceController.java126 private final Uri URI = field in AssistContextPreferenceController.SettingObserver
131 return Arrays.asList(URI); in getSettingUris()
DAssistScreenshotPreferenceController.java123 private final Uri URI = field in AssistScreenshotPreferenceController.SettingObserver
130 return Arrays.asList(URI, CONTEXT_URI); in getSettingUris()
DAssistFlashScreenPreferenceController.java144 private final Uri URI = field in AssistFlashScreenPreferenceController.SettingObserver
151 return Arrays.asList(URI, CONTEXT_URI); in getSettingUris()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/assist/
DAssistContextPreferenceController.java126 private final Uri URI = field in AssistContextPreferenceController.SettingObserver
131 return Arrays.asList(URI); in getSettingUris()
DAssistScreenshotPreferenceController.java123 private final Uri URI = field in AssistScreenshotPreferenceController.SettingObserver
130 return Arrays.asList(URI, CONTEXT_URI); in getSettingUris()
DAssistFlashScreenPreferenceController.java144 private final Uri URI = field in AssistFlashScreenPreferenceController.SettingObserver
151 return Arrays.asList(URI, CONTEXT_URI); in getSettingUris()
/packages/services/Mms/src/com/android/mms/service/
DApnSettings.java29 import java.net.URI;
137 new URI(mmscUrl); in getApnSettingsFromCursor()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/contract/
Dnumber_attributes.proto34 // A photo URI for the contact to display in the call log list view.
44 // The contacts provider lookup URI for the contact associated with the call.
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java38 import java.net.URI;
115 URL url = new URI(mUri.toString()).toURL(); in openOrDownloadInner()

123