/packages/apps/Settings/tests/robotests/src/com/android/settings/display/darkmode/ |
D | DarkModeActivationPreferenceControllerTest.java | 64 private Resources mRes; field in DarkModeActivationPreferenceControllerTest 84 when(mContext.getResources()).thenReturn(mRes); in setUp() 85 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in setUp() 126 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onManual() 137 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offManual() 148 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onCustom() 159 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offCustom() 172 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onCustomBedtime() 185 when(mRes.getConfiguration()).thenReturn(mConfigNightNo); in nightMode_toggleButton_offCustomBedtime() 196 when(mRes.getConfiguration()).thenReturn(mConfigNightYes); in nightMode_toggleButton_onAuto() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/ |
D | QuickViewIntentBuilderTest.java | 43 private TestResources mRes; field in QuickViewIntentBuilderTest 52 mRes = TestResources.create(); in setUp() 54 mRes.setQuickViewerPackage(mTargetPackageName); in setUp() 61 mContext, mRes, TestEnv.FILE_IN_ARCHIVE, mEnv.archiveModel, false); in testSetsNoFeatures_InArchiveDocument() 72 new QuickViewIntentBuilder(mContext, mRes, TestEnv.FILE_JPG, mEnv.model, false); in testSetsFullFeatures_RegularDocument() 92 new QuickViewIntentBuilder(mContext, mRes, TestEnv.FILE_JPG, mEnv.model, true); in testPickerFeatures_RegularDocument() 112 new QuickViewIntentBuilder(mContext, mRes, previewDoc, mEnv.model, true); in testBuild() 132 new QuickViewIntentBuilder(mContext, mRes, previewDoc, mEnv.model, true); in testBuild_excludeFolder() 151 new QuickViewIntentBuilder(mContext, mRes, previewDoc, mEnv.model, true); in testBuild_twoProfiles_containsOnlyPreviewDocument()
|
/packages/apps/Settings/src/com/android/settings/ |
D | IccLockSettings.java | 128 private Resources mRes; field in IccLockSettings 213 mRes = getResources(); in onCreate() 449 message = mRes.getString(R.string.sim_enter_pin); in setDialogValues() 451 ? mRes.getString(R.string.sim_enable_sim_lock) in setDialogValues() 452 : mRes.getString(R.string.sim_disable_sim_lock)); in setDialogValues() 455 message = mRes.getString(R.string.sim_enter_old); in setDialogValues() 456 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues() 459 message = mRes.getString(R.string.sim_enter_new); in setDialogValues() 460 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues() 463 message = mRes.getString(R.string.sim_reenter_new); in setDialogValues() [all …]
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/ |
D | SimStatusDialogController.java | 122 private final Resources mRes; field in SimStatusDialogController 190 mRes = mContext.getResources(); in SimStatusDialogController() 310 networkStateValue = mRes.getString(R.string.radioInfo_data_connected); in updateDataState() 313 networkStateValue = mRes.getString(R.string.radioInfo_data_suspended); in updateDataState() 316 networkStateValue = mRes.getString(R.string.radioInfo_data_connecting); in updateDataState() 319 networkStateValue = mRes.getString(R.string.radioInfo_data_disconnected); in updateDataState() 322 networkStateValue = mRes.getString(R.string.radioInfo_unknown); in updateDataState() 422 serviceStateValue = mRes.getString(R.string.radioInfo_service_in); in updateServiceState() 428 serviceStateValue = mRes.getString(R.string.radioInfo_service_out); in updateServiceState() 431 serviceStateValue = mRes.getString(R.string.radioInfo_service_off); in updateServiceState() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | ResourceAsset.java | 35 protected final Resources mRes; field in ResourceAsset 50 mRes = res; in ResourceAsset() 104 mKey = new PackageResourceKey(mRes, mResId); in getKey() 113 return mRes; in getResources() 125 return mRes.openRawResource(mResId); in openInputStream()
|
D | SystemStaticAsset.java | 57 mKey = new PackageResourceKey(mRes, mResId, mResName); in getKey()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/ |
D | TableView.java | 46 private final Resources mRes; field in TableView 61 mRes = context.getResources(); in TableView() 66 putTitle(mRes.getString(title), showDivider); in setTitle() 104 put(mRes.getString(keyId), value); in put() 129 mRows.get(mRes.getString(keyId)).setOnClickListener(callback); in put()
|
D | KeyValueRow.java | 41 private final Resources mRes; field in KeyValueRow 55 mRes = context.getResources(); in KeyValueRow() 71 setKey(mRes.getString(id)); in setKey()
|
D | DebugView.java | 49 private final Resources mRes; field in DebugView 63 mRes = context.getResources(); in DebugView() 144 KeyValueRow row = put(mRes.getString(key), String.valueOf(value)); in put()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | SubtypeLocaleUtilsTests.java | 52 private Resources mRes; field in SubtypeLocaleUtilsTests 83 mRes = context.getResources(); in setUp() 92 mRes.getStringArray(R.array.predefined_subtypes))); in setUp() 278 tests.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesInEnglishSystemLocale() 312 tests.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypesInEnglishSystemLocale() 380 tests.runInLocale(mRes, Locale.FRENCH); in testPredefinedSubtypesInFrenchSystemLocale() 414 tests.runInLocale(mRes, Locale.FRENCH); in testAdditionalSubtypesInFrenchSystemLocale() 442 tests.runInLocale(mRes, new Locale("hi")); in testHinglishSubtypesInHindiSystemLocale() 470 tests.runInLocale(mRes, new Locale("sr")); in testSerbianLatinSubtypesInSerbianSystemLocale()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | RichInputMethodSubtypeTests.java | 55 private Resources mRes; field in RichInputMethodSubtypeTests 86 mRes = context.getResources(); in setUp() 95 mRes.getStringArray(R.array.predefined_subtypes))); in setUp() 311 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesForSpacebarInEnglish() 316 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypeForSpacebarInEnglish() 321 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.FRENCH); in testPredefinedSubtypesForSpacebarInFrench() 326 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.FRENCH); in testAdditionalSubtypeForSpacebarInFrench()
|
/packages/modules/AdServices/adservices/apk/java/com/android/adservices/shell/ |
D | ShellCommandActivity.java | 89 private int mRes = -1; field in ShellCommandActivity 116 mRes = handler.run(args); in runShellCommand() 117 Log.d(TAG, "Shell command completed with status: " + mRes); in runShellCommand() 208 writer.printf("%s: %d\n", COMMAND_RES, mRes); in formatAndPrintResult()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | Features.java | 74 private final Resources mRes; field in Features.RuntimeFeatures 78 mRes = resources; in RuntimeFeatures() 88 return mDebugEnabled.get(feature, mRes.getBoolean(feature)); in isEnabled()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | ProfileGridRecyclerView.java | 262 private final Resources mRes; field in ProfileGridRecyclerView.ProfileAdapter 288 mRes = context.getResources(); in ProfileAdapter() 291 mGuestName = mRes.getString(com.android.internal.R.string.guest_name); in ProfileAdapter() 292 mNewProfileName = mRes.getString(R.string.user_new_user_name); in ProfileAdapter() 293 mOpacityDisabled = mRes.getFloat(R.dimen.opacity_disabled); in ProfileAdapter() 294 mOpacityEnabled = mRes.getFloat(R.dimen.opacity_enabled); in ProfileAdapter() 461 RoundedBitmapDrawableFactory.create(mRes, UserIcons.convertToBitmap( in getCircularAddProfileIcon()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserGridRecyclerView.java | 257 private final Resources mRes; field in UserGridRecyclerView.UserAdapter 267 mRes = context.getResources(); in UserAdapter() 270 mGuestName = mRes.getString(com.android.internal.R.string.guest_name); in UserAdapter() 271 mNewUserName = mRes.getString(R.string.car_new_user); in UserAdapter() 395 String message = mRes.getString(R.string.user_add_user_message_setup) in showConfirmAddUserDialog() 398 .concat(mRes.getString(R.string.user_add_user_message_update)); in showConfirmAddUserDialog() 448 RoundedBitmapDrawableFactory.create(mRes, UserIcons.convertToBitmap( in getCircularAddUserIcon()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
D | VolumeSeekBarPreferenceTest.java | 58 private Resources mRes; field in VolumeSeekBarPreferenceTest 166 when(mContext.getResources()).thenReturn(mRes); in init_changeProgress_stateDescriptionValueUpdated() 167 when(mRes.getConfiguration()).thenReturn(mConfig); in init_changeProgress_stateDescriptionValueUpdated()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 124 private Resources mRes; field in Settings 145 mRes = context.getResources(); in onCreate() 148 upgradeAutocorrectionSettings(mPrefs, mRes); in onCreate() 184 mSettingsValues = job.runInLocale(mRes, locale); in loadSettings()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 603 assertEquals(softApConfig, callback.mRes.getSoftApConfiguration()); in testCreationAndCloseOfLocalOnlyHotspotReservation() 604 WifiConfiguration wifiConfig = callback.mRes.getWifiConfiguration(); in testCreationAndCloseOfLocalOnlyHotspotReservation() 607 callback.mRes.close(); in testCreationAndCloseOfLocalOnlyHotspotReservation() 625 try (WifiManager.LocalOnlyHotspotReservation res = callback.mRes) { in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources() 627 WifiConfiguration wifiConfig = callback.mRes.getWifiConfiguration(); in testLocalOnlyHotspotReservationCallsStopProperlyInTryWithResources() 650 public LocalOnlyHotspotReservation mRes = null; field in WifiManagerTest.TestLocalOnlyHotspotCallback 655 mRes = r; in onStarted() 683 assertEquals(null, callback.mRes); in testLocalOnlyHotspotCallback() 689 assertEquals(res, callback.mRes); in testLocalOnlyHotspotCallback() 696 assertEquals(res, callback.mRes); in testLocalOnlyHotspotCallback() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
D | EmojiCategory.java | 151 private final Resources mRes; field in EmojiCategory 166 mRes = res; in EmojiCategory() 252 return mRes.getString(sAccessibilityDescriptionResourceIdsForCategories[categoryId]); in getAccessibilityDescription()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 542 private final Resources mRes; field in ContactsActor.RestrictionMockContext 568 mRes = resources; in RestrictionMockContext() 583 return mRes; in getResources()
|