Home
last modified time | relevance | path

Searched refs:desc (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java365 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemNoDisplayName_toMediaItem() local
371 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemNoDisplayName_toMediaItem()
372 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemNoDisplayName_toMediaItem()
373 Assert.assertEquals(title, desc.getTitle().toString()); in avrcpItemNoDisplayName_toMediaItem()
374 Assert.assertEquals(null, desc.getSubtitle()); in avrcpItemNoDisplayName_toMediaItem()
375 Assert.assertEquals(uri, desc.getIconUri()); in avrcpItemNoDisplayName_toMediaItem()
376 Assert.assertEquals(null, desc.getIconBitmap()); in avrcpItemNoDisplayName_toMediaItem()
394 MediaDescriptionCompat desc = mediaItem.getDescription(); in avrcpItemWithDisplayName_toMediaItem() local
400 Assert.assertEquals(UUID, desc.getMediaId()); in avrcpItemWithDisplayName_toMediaItem()
401 Assert.assertEquals(null, desc.getMediaUri()); in avrcpItemWithDisplayName_toMediaItem()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DUtil.java67 public static Bundle descriptionToBundle(MediaDescription desc) { in descriptionToBundle() argument
69 if (desc == null) return ret; in descriptionToBundle()
71 if (desc.getTitle() != null) { in descriptionToBundle()
72 ret.putString(MediaMetadata.METADATA_KEY_TITLE, desc.getTitle().toString()); in descriptionToBundle()
75 if (desc.getSubtitle() != null) { in descriptionToBundle()
76 ret.putString(MediaMetadata.METADATA_KEY_ARTIST, desc.getSubtitle().toString()); in descriptionToBundle()
79 if (desc.getDescription() != null) { in descriptionToBundle()
80 ret.putString(MediaMetadata.METADATA_KEY_ALBUM, desc.getDescription().toString()); in descriptionToBundle()
84 if (desc.getExtras() != null) ret.putAll(desc.getExtras()); in descriptionToBundle()
164 MediaDescription desc = data.getDescription(); in toMetadata() local
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DColorModePreference.java88 ColorModeDescription desc = new ColorModeDescription(); in updateCurrentAndSupported() local
89 desc.colorMode = colorModes[i]; in updateCurrentAndSupported()
90 desc.title = titles[i]; in updateCurrentAndSupported()
91 desc.summary = descriptions[i]; in updateCurrentAndSupported()
92 mDescriptions.add(desc); in updateCurrentAndSupported()
111 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
113 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
114 mCurrentIndex = mDescriptions.indexOf(desc); in persistBoolean()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DColorModePreference.java52 ColorModeDescription desc = new ColorModeDescription(); in getColorModeDescriptions() local
53 desc.colorMode = colorModes[i]; in getColorModeDescriptions()
54 desc.title = titles[i]; in getColorModeDescriptions()
55 desc.summary = descriptions[i]; in getColorModeDescriptions()
56 colorModeDescriptions.add(desc); in getColorModeDescriptions()
118 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
120 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
121 mCurrentIndex = mDescriptions.indexOf(desc); in persistBoolean()
/packages/apps/Settings/src/com/android/settings/development/
DColorModePreference.java52 ColorModeDescription desc = new ColorModeDescription(); in getColorModeDescriptions() local
53 desc.colorMode = colorModes[i]; in getColorModeDescriptions()
54 desc.title = titles[i]; in getColorModeDescriptions()
55 desc.summary = descriptions[i]; in getColorModeDescriptions()
56 colorModeDescriptions.add(desc); in getColorModeDescriptions()
118 ColorModeDescription desc = mDescriptions.get(value ? 1 : 0); in persistBoolean() local
120 mDisplay.requestColorMode(desc.colorMode); in persistBoolean()
121 mCurrentIndex = mDescriptions.indexOf(desc); in persistBoolean()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountTypePreferenceLoader.java82 AuthenticatorDescription desc = null; in addPreferencesForType() local
84 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType()
85 if (desc != null && desc.accountPreferencesId != 0) { in addPreferencesForType()
93 desc.packageName, 0, mUserHandle); in addPreferencesForType()
100 desc.accountPreferencesId, parent); in addPreferencesForType()
103 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
105 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
DChooseAccountPreferenceController.java239 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() local
241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
243 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
268 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() local
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
271 label = authContext.getResources().getText(desc.labelId); in getLabelForType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountTypePreferenceLoader.java82 AuthenticatorDescription desc = null; in addPreferencesForType() local
84 desc = mAuthenticatorHelper.getAccountTypeDescription(accountType); in addPreferencesForType()
85 if (desc != null && desc.accountPreferencesId != 0) { in addPreferencesForType()
93 desc.packageName, 0, mUserHandle); in addPreferencesForType()
100 desc.accountPreferencesId, parent); in addPreferencesForType()
103 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
105 Log.w(TAG, "Couldn't load preferences.xml file from " + desc.packageName); in addPreferencesForType()
DChooseAccountPreferenceController.java239 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getDrawableForType() local
241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
243 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
268 final AuthenticatorDescription desc = mTypeToAuthDescription.get(accountType); in getLabelForType() local
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
271 label = authContext.getResources().getText(desc.labelId); in getLabelForType()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DMasterClear.java494 AuthenticatorDescription desc = null; in loadAccountList() local
497 desc = descs[j]; in loadAccountList()
501 if (desc == null) { in loadAccountList()
508 if (desc.iconId != 0) { in loadAccountList()
509 Context authContext = context.createPackageContextAsUser(desc.packageName, in loadAccountList()
512 authContext.getDrawable(desc.iconId), userHandle); in loadAccountList()
515 Log.w(TAG, "Bad package name for account type " + desc.type); in loadAccountList()
517 Log.w(TAG, "Invalid icon id for account type " + desc.type, e); in loadAccountList()
/packages/apps/Settings/src/com/android/settings/
DMasterClear.java493 AuthenticatorDescription desc = null; in loadAccountList() local
496 desc = descs[j]; in loadAccountList()
500 if (desc == null) { in loadAccountList()
507 if (desc.iconId != 0) { in loadAccountList()
508 Context authContext = context.createPackageContextAsUser(desc.packageName, in loadAccountList()
511 authContext.getDrawable(desc.iconId), userHandle); in loadAccountList()
514 Log.w(TAG, "Bad package name for account type " + desc.type); in loadAccountList()
516 Log.w(TAG, "Invalid icon id for account type " + desc.type, e); in loadAccountList()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DNormalizedIconLoader.java70 protected Drawable createBadgedDrawable(Drawable drawable, int userId, TaskDescription desc) { in createBadgedDrawable() argument
71 return new FastBitmapDrawable(getBitmapInfo(drawable, userId, desc.getPrimaryColor(), in createBadgedDrawable()
91 TaskDescription desc) { in getBadgedActivityIcon() argument
95 desc.getPrimaryColor(), in getBadgedActivityIcon()
/packages/services/Car/evs/sampleDriver/
DEvsEnumerator.h56 CameraDesc desc; member
59 CameraRecord(const char *cameraId) : desc() { desc.cameraId = cameraId; } in CameraRecord()
DEvsEnumerator.cpp198 hidlCameras[i++] = cam.desc; in getCameraList()
247 pCamera->getCameraInfo([&cameraId](CameraDesc desc) { in closeCamera() argument
248 cameraId = desc.cameraId; in closeCamera()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DBaseItemDragListener.java114 ClipDescription desc = event.getClipDescription(); in onDragStart() local
115 if (desc == null || !desc.hasMimeType(getMimeType())) { in onDragStart()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DMasterClearAccountsPreferenceController.java90 for (AuthenticatorDescription desc : descriptions) { in updateState()
91 if (account.type.equals(desc.type)) { in updateState()
92 description = desc; in updateState()
/packages/services/Car/tools/emulator/
Dvhal_prop_simulator.py41 def handle(self, prop, area_id, value, desc=None): argument
45 print "Generated property %s with value: %s" % (desc, value)
/packages/apps/Car/libs/car-broadcastradio-support/src/com/android/car/broadcastradio/support/media/
DBrowseTree.java170 MediaDescription desc = descBuilder in createChild() local
176 return new MediaItem(desc, MediaItem.FLAG_PLAYABLE); in createChild()
185 MediaDescription desc = descBuilder in createFolder() local
191 return new MediaItem(desc, flags); in createFolder()
/packages/services/Car/evs/manager/
DEnumerator.cpp74 cam->getHwCamera()->getCameraInfo([cameraId, &match](CameraDesc desc) { in openCamera() argument
75 if (desc.cameraId == cameraId) { in openCamera()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/
DAccessoriesFragment.java99 final String desc = device.isConnected() ? getString(R.string.accessory_connected) : in updateAccessories() local
110 preference.setSummary(desc); in updateAccessories()
/packages/apps/Dialer/java/com/android/dialer/simulator/service/
DSimulatorService.java224 public NotOnlyOneSignatureException(String desc) { in NotOnlyOneSignatureException() argument
225 super(desc); in NotOnlyOneSignatureException()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaController.java248 MediaDescription desc = (data == null) ? null : data.getDescription(); in toString() local
250 mDelegate.hashCode()) + ") " + desc; in toString()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DLocationSettingsTests.java139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements()
170 mDevice.wait(Until.findObject(By.desc("Navigate up")), TIMEOUT).click(); in verifyLocationSettingsMode()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/
DLiveWallpaperInfo.java282 String desc = descCharSeq.toString(); in getAttributions() local
283 attributions.add(desc); in getAttributions()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DUiBot.java176 return find(By.desc("Grid view")); in menuGridMode()
181 return find(By.desc("List view")); in menuListMode()

12