Home
last modified time | relevance | path

Searched refs:mRes (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java108 private Resources mRes; field in IccLockSettings
199 mRes = getResources(); in onCreate()
343 message = mRes.getString(R.string.sim_enter_pin); in setDialogValues()
345 ? mRes.getString(R.string.sim_enable_sim_lock) in setDialogValues()
346 : mRes.getString(R.string.sim_disable_sim_lock)); in setDialogValues()
349 message = mRes.getString(R.string.sim_enter_old); in setDialogValues()
350 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues()
353 message = mRes.getString(R.string.sim_enter_new); in setDialogValues()
354 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues()
357 message = mRes.getString(R.string.sim_reenter_new); in setDialogValues()
[all …]
DApnEditor.java113 private Resources mRes; field in ApnEditor
207 mRes = getResources(); in onCreate()
580 String []values = mRes.getStringArray(R.array.apn_auth_entries); in fillUi()
613 String[] values = mRes.getStringArray(R.array.apn_protocol_entries); in protocolDescription()
627 String[] values = mRes.getStringArray(R.array.bearer_entries); in bearerDescription()
637 String[] values = mRes.getStringArray(R.array.bearer_entries); in bearerMultiDescription()
667 String[] values = mRes.getStringArray(R.array.mvno_type_entries); in mvnoDescription()
699 String[] values = mRes.getStringArray(R.array.apn_auth_entries); in onPreferenceChange()
1065 errorMsg = mRes.getString(R.string.error_name_empty); in getErrorMsg()
1067 errorMsg = mRes.getString(R.string.error_apn_empty); in getErrorMsg()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DSimStatus.java103 private Resources mRes; field in SimStatus
149 mRes = getResources(); in onCreate()
150 mDefaultText = mRes.getString(R.string.device_info_default); in onCreate()
296 String display = mRes.getString(R.string.radioInfo_unknown); in updateDataState()
300 display = mRes.getString(R.string.radioInfo_data_connected); in updateDataState()
303 display = mRes.getString(R.string.radioInfo_data_suspended); in updateDataState()
306 display = mRes.getString(R.string.radioInfo_data_connecting); in updateDataState()
309 display = mRes.getString(R.string.radioInfo_data_disconnected); in updateDataState()
318 String display = mRes.getString(R.string.radioInfo_unknown); in updateServiceState()
322 display = mRes.getString(R.string.radioInfo_service_in); in updateServiceState()
[all …]
DStatus.java80 private Resources mRes; field in Status
171 mRes = getResources(); in onCreate()
172 mUnavailable = mRes.getString(R.string.status_unavailable); in onCreate()
/packages/apps/UnifiedEmail/src/com/android/mail/text/
DFolderSpan.java38 private final FolderDisplayer.FolderDrawableResources mRes; field in FolderSpan
50 mRes = res; in FolderSpan()
56 p.setTextSize(mRes.folderFontSize); in getWidth()
57 return Math.min((int) p.measureText(mName) + 2 * mRes.folderHorizontalPadding, in getWidth()
62 p.setTextSize(mRes.folderFontSize); in getHeight()
77 mWorkPaint.setTextSize(mRes.folderFontSize); in draw()
82 name = TextUtils.ellipsize(mName, mWorkPaint, width - 2 * mRes.folderHorizontalPadding, in draw()
86 mBgColor, mRes, mFormatter, mWorkPaint); in draw()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DFileTypeMapTest.java38 private Resources mRes; field in FileTypeMapTest
44 mRes = context.getResources(); in setUp()
50 String expected = mRes.getString(R.string.txt_file_type); in testPlainTextType()
56 String expected = mRes.getString(R.string.pdf_file_type); in testPortableDocumentFormatType()
62 String expected = mRes.getString(R.string.word_file_type); in testMsWordType()
68 String expected = mRes.getString(R.string.gdoc_file_type); in testGoogleDocType()
120 final String format = mRes.getString(formatStringId); in getExtensionTypeFromExtension()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFileTypeMap.java40 private final Resources mRes; field in FileTypeMap
49 mRes = context.getResources(); in FileTypeMap()
145 final String format = mRes.getString(R.string.archive_file_type); in buildArchiveTypeString()
150 return mRes.getString(mFileTypeMap.get(mimeType)); in getPredefinedFileTypeString()
158 ? mRes.getString(defaultStringId) in getFileTypeString()
159 : String.format(mRes.getString(formatStringId), extension.toUpperCase()); in getFileTypeString()
163 return mRes.getString(R.string.generic_file_type); in getGenericFileTypeString()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DSubtypeLocaleUtilsTests.java39 private Resources mRes; field in SubtypeLocaleUtilsTests
71 mRes = context.getResources(); in setUp()
80 mRes.getStringArray(R.array.predefined_subtypes))); in setUp()
264 tests.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesInEnglishSystemLocale()
297 tests.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypesInEnglishSystemLocale()
364 tests.runInLocale(mRes, Locale.FRENCH); in testPredefinedSubtypesInFrenchSystemLocale()
397 tests.runInLocale(mRes, Locale.FRENCH); in testAdditionalSubtypesInFrenchSystemLocale()
424 tests.runInLocale(mRes, new Locale("hi")); in testHinglishSubtypesInHindiSystemLocale()
451 tests.runInLocale(mRes, new Locale("sr")); in testSerbianLatinSubtypesInSerbianSystemLocale()
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
DSelectCalendarsSimpleAdapter.java60 Resources mRes; field in SelectCalendarsSimpleAdapter
102 mRes = context.getResources(); in SelectCalendarsSimpleAdapter()
103 mColorCalendarVisible = mRes.getColor(R.color.calendar_visible); in SelectCalendarsSimpleAdapter()
104 mColorCalendarHidden = mRes.getColor(R.color.calendar_hidden); in SelectCalendarsSimpleAdapter()
105 mColorCalendarSecondaryVisible = mRes.getColor(R.color.calendar_secondary_visible); in SelectCalendarsSimpleAdapter()
106 mColorCalendarSecondaryHidden = mRes.getColor(R.color.calendar_secondary_hidden); in SelectCalendarsSimpleAdapter()
109 mScale = mRes.getDisplayMetrics().density; in SelectCalendarsSimpleAdapter()
345 return mRes.getDrawable(TabletCalendarItemBackgrounds.getBackgrounds()[bg]); in getBackground()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputMethodSubtypeTests.java42 private Resources mRes; field in RichInputMethodSubtypeTests
74 mRes = context.getResources(); in setUp()
83 mRes.getStringArray(R.array.predefined_subtypes))); in setUp()
297 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testPredefinedSubtypesForSpacebarInEnglish()
301 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.ENGLISH); in testAdditionalSubtypeForSpacebarInEnglish()
305 testsPredefinedSubtypesForSpacebar.runInLocale(mRes, Locale.FRENCH); in testPredefinedSubtypesForSpacebarInFrench()
309 testsAdditionalSubtypesForSpacebar.runInLocale(mRes, Locale.FRENCH); in testAdditionalSubtypeForSpacebarInFrench()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/files/
DQuickViewIntentBuilderTest.java30 private TestResources mRes; field in QuickViewIntentBuilderTest
36 mRes = TestResources.create(); in setUp()
38 mRes.setQuickViewerPackage("com.android.documentsui"); in setUp()
44 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_IN_ARCHIVE, mEnv.archiveModel); in testSetsNoFeatures_InArchiveDocument()
55 new QuickViewIntentBuilder(mPm, mRes, TestEnv.FILE_JPG, mEnv.model); in testSetsFullFeatures_RegularDocument()
/packages/apps/Settings/tests/robotests/src/com/android/settings/print/
DPrintSettingsFragmentTest.java56 private Resources mRes; field in PrintSettingsFragmentTest
64 when(mActivity.getResources()).thenReturn(mRes); in setUp()
79 verify(mRes).getQuantityString(R.plurals.print_jobs_summary, 1, 1); in testSummary_hasActiveJob_shouldSetSummaryToNumberOfJobs()
93 verify(mRes).getQuantityString(R.plurals.print_settings_summary, 2, 2); in testSummary_shouldSetSummaryToNumberOfPrintServices()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DKeyValueRow.java34 private final Resources mRes; field in KeyValueRow
47 mRes = context.getResources(); in KeyValueRow()
59 setKey(mRes.getString(id)); in setKey()
DTableView.java43 private final Resources mRes; field in TableView
57 mRes = context.getResources(); in TableView()
78 put(mRes.getString(keyId), value); in put()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DFeatures.java71 private final Resources mRes; field in Features.RuntimeFeatures
75 mRes = resources; in RuntimeFeatures()
85 return mDebugEnabled.get(feature, mRes.getBoolean(feature)); in isEnabled()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java124 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java151 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/
DContactsActor.java445 private final Resources mRes; field in ContactsActor.RestrictionMockContext
471 mRes = resources; in RestrictionMockContext()
486 return mRes; in getResources()