/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | Preconditions.java | 286 public static int checkElementIndex(int index, int size, String desc) { in checkElementIndex() argument 289 throw new IndexOutOfBoundsException(badElementIndex(index, size, desc)); in checkElementIndex() 294 private static String badElementIndex(int index, int size, String desc) { in badElementIndex() argument 296 return format("%s (%s) must not be negative", desc, index); in badElementIndex() 300 return format("%s (%s) must be less than size (%s)", desc, index, size); in badElementIndex() 335 public static int checkPositionIndex(int index, int size, String desc) { in checkPositionIndex() argument 338 throw new IndexOutOfBoundsException(badPositionIndex(index, size, desc)); in checkPositionIndex() 343 private static String badPositionIndex(int index, int size, String desc) { in badPositionIndex() argument 345 return format("%s (%s) must not be negative", desc, index); in badPositionIndex() 350 desc, index, size); in badPositionIndex()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/ |
D | Util.java | 67 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/ |
D | ColorModePreference.java | 88 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/apps/Settings/src/com/android/settings/development/ |
D | ColorModePreference.java | 52 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/ |
D | ColorModePreference.java | 52 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/ |
D | AccountTypePreferenceLoader.java | 82 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()
|
D | ChooseAccountPreferenceController.java | 239 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/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Folder.java | 821 final String desc; in getTypeDescription() local 823 desc = "inbox_section:" + persistentId; in getTypeDescription() 825 desc = "inbox:" + persistentId; in getTypeDescription() 827 desc = "draft"; in getTypeDescription() 829 desc = "important"; in getTypeDescription() 831 desc = "outbox"; in getTypeDescription() 833 desc = "sent"; in getTypeDescription() 835 desc = "spam"; in getTypeDescription() 837 desc = "starred"; in getTypeDescription() 839 desc = "trash"; in getTypeDescription() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountTypePreferenceLoader.java | 82 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()
|
D | ChooseAccountPreferenceController.java | 239 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/ |
D | MasterClear.java | 494 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/ |
D | MasterClear.java | 493 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/ |
D | NormalizedIconLoader.java | 70 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/ |
D | EvsEnumerator.h | 56 CameraDesc desc; member 59 CameraRecord(const char *cameraId) : desc() { desc.cameraId = cameraId; } in CameraRecord()
|
D | EvsEnumerator.cpp | 198 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/ |
D | BaseItemDragListener.java | 114 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/ |
D | MasterClearAccountsPreferenceController.java | 89 for (AuthenticatorDescription desc : descriptions) { in updateState() 90 if (account.type.equals(desc.type)) { in updateState() 91 description = desc; in updateState()
|
/packages/services/Car/tools/emulator/ |
D | vhal_prop_simulator.py | 41 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/ |
D | BrowseTree.java | 170 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/ |
D | Enumerator.cpp | 74 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/ |
D | AccessoriesFragment.java | 99 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/ |
D | SimulatorService.java | 224 public NotOnlyOneSignatureException(String desc) { in NotOnlyOneSignatureException() argument 225 super(desc); in NotOnlyOneSignatureException()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ToastBarOperation.java | 150 final String desc = (resId == -1) ? "" : in getDescription() local 152 return desc; in getDescription()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/ |
D | MediaController.java | 248 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/ |
D | LocationSettingsTests.java | 139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); in testLocationSettingsOverflowMenuElements() 170 mDevice.wait(Until.findObject(By.desc("Navigate up")), TIMEOUT).click(); in verifyLocationSettingsMode()
|