/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
D | KeyCodeDescriptionMapper.java | 152 final int resId; in getDescriptionForSwitchAlphaSymbol() local 160 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol() 164 resId = R.string.spoken_description_to_alpha; in getDescriptionForSwitchAlphaSymbol() 167 resId = R.string.spoken_description_to_symbol; in getDescriptionForSwitchAlphaSymbol() 170 resId = R.string.spoken_description_to_numeric; in getDescriptionForSwitchAlphaSymbol() 176 return context.getString(resId); in getDescriptionForSwitchAlphaSymbol() 190 final int resId; in getDescriptionForShiftKey() local 195 resId = R.string.spoken_description_caps_lock; in getDescriptionForShiftKey() 199 resId = R.string.spoken_description_shift_shifted; in getDescriptionForShiftKey() 202 resId = R.string.spoken_description_symbols_shift; in getDescriptionForShiftKey() [all …]
|
D | MainKeyboardAccessibilityDelegate.java | 155 final int resId; in announceKeyboardType() local 165 resId = R.string.spoken_description_mode_alpha; in announceKeyboardType() 173 resId = R.string.spoken_description_shiftmode_on; in announceKeyboardType() 181 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType() 184 resId = R.string.spoken_description_shiftmode_locked; in announceKeyboardType() 187 resId = R.string.spoken_description_mode_symbol; in announceKeyboardType() 190 resId = R.string.spoken_description_mode_symbol_shift; in announceKeyboardType() 193 resId = R.string.spoken_description_mode_phone; in announceKeyboardType() 196 resId = R.string.spoken_description_mode_phone_shift; in announceKeyboardType() 201 sendWindowStateChanged(resId); in announceKeyboardType()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsMockResources.java | 30 public void addResource(int resId, String packageName, String typeName, String entryName) { in addResource() argument 31 mPackages.put(resId, packageName); in addResource() 32 mTypes.put(resId, typeName); in addResource() 33 mEntries.put(resId, entryName); in addResource() 37 public String getResourceName(int resId) throws NotFoundException { in getResourceName() argument 38 if (!mPackages.containsKey(resId)) { in getResourceName() 39 throw new NotFoundException("Resource " + resId + " not found"); in getResourceName() 41 return mPackages.get(resId) + ":" + mTypes.get(resId) + "/" + mEntries.get(resId); in getResourceName() 45 public String getResourcePackageName(int resId) throws NotFoundException { in getResourcePackageName() argument 46 if (!mPackages.containsKey(resId)) { in getResourcePackageName() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Partner.java | 100 int resId = getResources().getIdentifier(RES_DEFAULT_WALLPAPER_HIDDEN, "bool", in hideDefaultWallpaper() local 102 return resId != 0 && getResources().getBoolean(resId); in hideDefaultWallpaper() 106 int resId = getResources().getIdentifier(RES_SYSTEM_WALLPAPER_DIR, "string", in getWallpaperDirectory() local 108 return (resId != 0) ? new File(getResources().getString(resId)) : null; in getWallpaperDirectory() 112 int resId = getResources().getIdentifier(RES_REQUIRE_FIRST_RUN_FLOW, "bool", in requiresFirstRunFlow() local 114 return resId != 0 && getResources().getBoolean(resId); in requiresFirstRunFlow() 123 int resId = getResources().getIdentifier(RES_GRID_NUM_ROWS, in applyInvariantDeviceProfileOverrides() local 125 if (resId > 0) { in applyInvariantDeviceProfileOverrides() 126 numRows = getResources().getInteger(resId); in applyInvariantDeviceProfileOverrides() 129 resId = getResources().getIdentifier(RES_GRID_NUM_COLUMNS, in applyInvariantDeviceProfileOverrides() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ToastBarOperation.java | 124 final int resId; in getDescription() local 126 resId = R.plurals.conversation_deleted; in getDescription() 130 resId = R.plurals.conversation_folder_changed; in getDescription() 134 resId = R.plurals.conversation_archived; in getDescription() 136 resId = R.plurals.conversation_spammed; in getDescription() 138 resId = R.plurals.conversation_not_spam; in getDescription() 140 resId = R.plurals.conversation_not_important; in getDescription() 142 resId = R.plurals.conversation_muted; in getDescription() 144 resId = R.plurals.conversation_unstarred; in getDescription() 146 resId = R.plurals.conversation_phished; in getDescription() [all …]
|
/packages/apps/TV/src/com/android/tv/util/ |
D | ViewCache.java | 47 public void putView(int resId, View view) { in putView() argument 48 ArrayList<View> views = mViews.get(resId); in putView() 51 mViews.put(resId, views); in putView() 57 public void putView(Context context, int resId, ViewGroup fakeParent, int num) { in putView() argument 60 ArrayList<View> views = mViews.get(resId); in putView() 63 mViews.put(resId, views); in putView() 66 View view = inflater.inflate(resId, fakeParent, false); in putView() 72 public View getView(int resId) { in getView() argument 73 ArrayList<View> views = mViews.get(resId); in getView() 77 mViews.remove(resId); in getView() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | StatusBarNotifier.java | 158 private static int getWorkStringFromPersonalString(int resId) { in getWorkStringFromPersonalString() argument 159 if (resId == R.string.notification_ongoing_call) { in getWorkStringFromPersonalString() 161 } else if (resId == R.string.notification_incoming_call) { in getWorkStringFromPersonalString() 164 return resId; in getWorkStringFromPersonalString() 690 int resId = R.string.notification_ongoing_call; in getContentString() local 693 resId = R.string.notification_ongoing_call_wifi_template; in getContentString() 698 resId = R.string.notification_incoming_spam_call; in getContentString() 700 resId = getECIncomingCallText(call.getEnrichedCallSession()); in getContentString() 702 resId = R.string.notification_incoming_call_wifi_template; in getContentString() 706 resId = R.string.notification_incoming_video_call; in getContentString() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | RegulatoryInfoDisplayActivity.java | 82 int resId = 0; in onCreate() local 84 resId = getResourceId(); in onCreate() 86 if (resId != 0) { in onCreate() 88 Drawable d = getDrawable(resId); in onCreate() 106 image.setImageResource(resId); in onCreate() 125 int resId = getResources().getIdentifier( in getResourceId() local 135 resId = id; in getResourceId() 147 resId = id; in getResourceId() 150 return resId; in getResourceId()
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableDialogHelper.java | 81 public WearableDialogHelper setPositiveIcon(@DrawableRes int resId) { in setPositiveIcon() argument 82 mPositiveIconId = resId; in setPositiveIcon() 95 public WearableDialogHelper setNegativeIcon(@DrawableRes int resId) { in setNegativeIcon() argument 96 mNegativeIconId = resId; in setNegativeIcon() 109 public WearableDialogHelper setNeutralIcon(@DrawableRes int resId) { in setNeutralIcon() argument 110 mNeutralIconId = resId; in setNeutralIcon() 150 /* package */ Drawable resolveDrawable(@Nullable Drawable drawable, @DrawableRes int resId) { in resolveDrawable() argument 151 return drawable == null && resId != 0 ? mResources.getDrawable(resId, mTheme) : drawable; in resolveDrawable()
|
/packages/apps/Contacts/src/com/android/contacts/interactions/ |
D | ImportDialogFragment.java | 197 final int resId = adapter.getItem(which).mChoiceResourceId; in onCreateDialog() 198 if (resId == R.string.import_from_sim) { in onCreateDialog() 200 } else if (resId == R.string.import_from_vcf_file) { in onCreateDialog() 201 handleImportRequest(resId, SimCard.NO_SUBSCRIPTION_ID); in onCreateDialog() 204 + getActivity().getResources().getResourceEntryName(resId)); in onCreateDialog() 261 private void handleImportRequest(int resId, int subscriptionId) { in handleImportRequest() argument 276 args.putInt(KEY_RES_ID, resId); in handleImportRequest() 282 AccountSelectionUtil.doImport(getActivity(), resId, in handleImportRequest() local 302 public AdapterEntry(CharSequence label, int resId, SimCard sim) { in AdapterEntry() argument 304 mChoiceResourceId = resId; in AdapterEntry() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | RegulatoryInfoDisplayActivity.java | 87 int resId = 0; in onCreate() local 89 resId = getImageResourceId(); in onCreate() 91 if (resId != 0) { in onCreate() 93 Drawable d = getDrawable(resId); in onCreate() 111 image.setImageResource(resId); in onCreate() 129 int resId = getResources().getIdentifier( in getImageResourceId() local 139 resId = id; in getImageResourceId() 142 return resId; in getImageResourceId()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | ProgressDialogFragment.java | 66 public void setIcon(@DrawableRes int resId) { in setIcon() argument 67 mIconView.setImageResource(resId); in setIcon() 76 public void setTitle(@StringRes int resId) { in setTitle() argument 77 mTitleView.setText(resId); in setTitle() 84 public void setExtraText(@StringRes int resId) { in setExtraText() argument 85 mExtraTextView.setText(resId); in setExtraText() 93 public void setSummary(@StringRes int resId) { in setSummary() argument 94 mSummaryView.setText(resId); in setSummary()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | RegulatoryInfoDisplayActivity.java | 82 int resId = 0; in onCreate() local 84 resId = getResourceId(); in onCreate() 86 if (resId != 0) { in onCreate() 88 Drawable d = getDrawable(resId); in onCreate() 106 image.setImageResource(resId); in onCreate() 124 int resId = getResources().getIdentifier( in getResourceId() local 134 resId = id; in getResourceId() 137 return resId; in getResourceId()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPartnerProvider.java | 81 int resId = 0; in getLegacyWallpaperDirectory() local 86 resId = res.getIdentifier(PartnerProvider.RES_LEGACY_SYSTEM_WALLPAPER_DIR, in getLegacyWallpaperDirectory() 89 return (resId != 0) ? new File(res.getString(resId)) : null; in getLegacyWallpaperDirectory() 103 final int resId = res.getIdentifier( in shouldHideDefaultWallpaper() local 105 return resId != 0 && res.getBoolean(resId); in shouldHideDefaultWallpaper()
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountSelectionUtil.java | 64 int resId, int subscriptionId) { in AccountSelectedListener() argument 70 mResId = resId; in AccountSelectedListener() 75 int resId) { in AccountSelectedListener() argument 78 this(activity, accountList, resId, /* subscriptionId = */ -1); in AccountSelectedListener() 91 public static Dialog getSelectAccountDialog(Activity activity, int resId, in getSelectAccountDialog() argument 137 new AccountSelectedListener(activity, writableAccountList, resId); in getSelectAccountDialog() 157 public static void doImport(Activity activity, int resId, AccountWithDataSet account, in doImport() argument 159 if (resId == R.string.import_from_sim) { in doImport() 161 } else if (resId == R.string.import_from_vcf_file) { in doImport()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageWizardBase.java | 155 protected void setHeaderText(int resId, CharSequence... args) { in setHeaderText() argument 156 final CharSequence headerText = TextUtils.expandTemplate(getText(resId), args); in setHeaderText() 161 protected void setBodyText(int resId, CharSequence... args) { in setBodyText() argument 163 body.setText(TextUtils.expandTemplate(getText(resId), args)); in setBodyText() 180 protected void setBackButtonText(int resId, CharSequence... args) { in setBackButtonText() argument 181 mBack.setText(TextUtils.expandTemplate(getText(resId), args)); in setBackButtonText() 185 protected void setNextButtonText(int resId, CharSequence... args) { in setNextButtonText() argument 186 mNext.setText(TextUtils.expandTemplate(getText(resId), args)); in setNextButtonText() 190 protected void setIcon(int resId) { in setIcon() argument 192 final Drawable icon = getDrawable(resId).mutate(); in setIcon()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | ResourceAsset.java | 46 public ResourceAsset(Resources res, int resId, RequestOptions requestOptions) { in ResourceAsset() argument 48 mResId = resId; in ResourceAsset() 56 public ResourceAsset(Resources res, int resId) { in ResourceAsset() argument 57 this(res, resId, RequestOptions.centerCropTransform()); in ResourceAsset() 122 public PackageResourceKey(Resources res, int resId) { in PackageResourceKey() argument 123 mPackageName = res.getResourcePackageName(resId); in PackageResourceKey() 124 mResId = resId; in PackageResourceKey()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | SelectAccountActivity.java | 59 final int resId = R.string.import_from_vcf_file; in onCreate() local 82 this, accountList, resId) { in onCreate() 95 showDialog(resId); in onCreate() 100 protected Dialog onCreateDialog(int resId, Bundle bundle) { in onCreateDialog() argument 101 if (resId == R.string.import_from_vcf_file) { in onCreateDialog() 106 return AccountSelectionUtil.getSelectAccountDialog(this, resId, in onCreateDialog() 110 return super.onCreateDialog(resId, bundle); in onCreateDialog()
|
/packages/apps/TV/common/src/com/android/tv/common/customization/ |
D | CustomizationManager.java | 112 int resId = in hasLinuxDvbBuiltInTuner() local 117 sHasLinuxDvbBuiltInTuner = resId != 0 && res.getBoolean(resId); in hasLinuxDvbBuiltInTuner() 136 int resId = in getTrickplayMode() local 139 customization = resId == 0 ? null : res.getString(resId); in getTrickplayMode() 261 int resId = in buildPartnerRow() local 263 if (resId != 0) { in buildPartnerRow() 264 mPartnerRowTitle = res.getString(resId); in buildPartnerRow()
|
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
D | LauncherInstrumentation.java | 555 void waitUntilGone(String resId) { in waitUntilGone() argument 556 assertTrue("Unexpected launcher object visible: " + resId, in waitUntilGone() 557 mDevice.wait(Until.gone(getLauncherObjectSelector(resId)), in waitUntilGone() 561 private boolean hasSystemUiObject(String resId) { in hasSystemUiObject() argument 562 return mDevice.hasObject(By.res(SYSTEMUI_PACKAGE, resId)); in hasSystemUiObject() 566 UiObject2 waitForSystemUiObject(String resId) { in waitForSystemUiObject() argument 568 Until.findObject(By.res(SYSTEMUI_PACKAGE, resId)), WAIT_TIME_MS); in waitForSystemUiObject() 569 assertNotNull("Can't find a systemui object with id: " + resId, object); in waitForSystemUiObject() 606 private boolean hasLauncherObject(String resId) { in hasLauncherObject() argument 607 return mDevice.hasObject(getLauncherObjectSelector(resId)); in hasLauncherObject() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethodcommon/ |
D | InputMethodSettingsActivity.java | 42 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument 43 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 58 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument 59 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 74 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument 75 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
|
D | InputMethodSettingsFragment.java | 43 public void setInputMethodSettingsCategoryTitle(int resId) { in setInputMethodSettingsCategoryTitle() argument 44 mSettings.setInputMethodSettingsCategoryTitle(resId); in setInputMethodSettingsCategoryTitle() 59 public void setSubtypeEnablerTitle(int resId) { in setSubtypeEnablerTitle() argument 60 mSettings.setSubtypeEnablerTitle(resId); in setSubtypeEnablerTitle() 75 public void setSubtypeEnablerIcon(int resId) { in setSubtypeEnablerIcon() argument 76 mSettings.setSubtypeEnablerIcon(resId); in setSubtypeEnablerIcon()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | LocationScanningPreferenceController.java | 43 int resId; in getSummary() local 45 resId = R.string.scanning_status_text_wifi_on_ble_on; in getSummary() 47 resId = R.string.scanning_status_text_wifi_on_ble_off; in getSummary() 49 resId = R.string.scanning_status_text_wifi_off_ble_on; in getSummary() 51 resId = R.string.scanning_status_text_wifi_off_ble_off; in getSummary() 53 return mContext.getString(resId); in getSummary()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageWizardBase.java | 155 protected void setHeaderText(int resId, CharSequence... args) { in setHeaderText() argument 156 final CharSequence headerText = TextUtils.expandTemplate(getText(resId), args); in setHeaderText() 161 protected void setBodyText(int resId, CharSequence... args) { in setBodyText() argument 163 body.setText(TextUtils.expandTemplate(getText(resId), args)); in setBodyText() 180 protected void setBackButtonText(int resId, CharSequence... args) { in setBackButtonText() argument 181 mBack.setText(TextUtils.expandTemplate(getText(resId), args)); in setBackButtonText() 185 protected void setNextButtonText(int resId, CharSequence... args) { in setNextButtonText() argument 186 mNext.setText(TextUtils.expandTemplate(getText(resId), args)); in setNextButtonText() 198 protected void setIcon(int resId) { in setIcon() argument 200 final Drawable icon = getDrawable(resId).mutate(); in setIcon()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | AdvancedConnectedDeviceController.java | 70 final int resId; in getConnectedDevicesSummaryResourceId() local 75 resId = R.string.connected_devices_dashboard_summary; in getConnectedDevicesSummaryResourceId() 78 resId = R.string.connected_devices_dashboard_no_driving_mode_summary; in getConnectedDevicesSummaryResourceId() 83 resId = R.string.connected_devices_dashboard_no_nfc_summary; in getConnectedDevicesSummaryResourceId() 86 resId = R.string.connected_devices_dashboard_no_driving_mode_no_nfc_summary; in getConnectedDevicesSummaryResourceId() 90 return resId; in getConnectedDevicesSummaryResourceId()
|