Home
last modified time | relevance | path

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

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkActivity.java70 private Resources mRes; field in NetworkActivity
93 mRes = getResources(); in onCreate()
108 mEnableWifi = new SelectionGroup(mRes, new int[][] { in onCreate()
174 return mRes.getString(resId);
191 return mRes.getString(resId);
236 .add(new Action.Builder(mRes, ACTION_ETHERNET_PROXY_SETTINGS)
239 .add(new Action.Builder(mRes, ACTION_ETHERNET_IP_SETTINGS)
244 .add(new Status.Builder(mRes)
258 .add(new Status.Builder(mRes).title(R.string.title_internet_connection)
260 .add(new Status.Builder(mRes)
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
DLayout.java337 private final Resources mRes; field in Layout.ResourceStringGetter
339 return mRes.getString(mStringResourceId); in get()
342 mRes = res; in ResourceStringGetter()
628 private final Resources mRes; field in Layout.Header.Builder
632 mRes = res; in Builder()
636 mHeader.mAppearance.mIcon = mRes.getDrawable(resId); in icon()
651 mHeader.mAppearance.mTitle = mRes.getString(resId); in title()
656 mHeader.mAppearance.mDescriptionGetter = new ResourceStringGetter(mRes, resId); in description()
683 mHeader.mDetailedDescription = mRes.getString(resId); in detailedDescription()
765 private final Resources mRes; field in Layout.Action.Builder
[all …]
/packages/apps/Settings/src/com/android/settings/
DIccLockSettings.java109 private Resources mRes; field in IccLockSettings
230 mRes = getResources(); in onCreate()
319 message = mRes.getString(R.string.sim_enter_pin); in setDialogValues()
321 ? mRes.getString(R.string.sim_enable_sim_lock) in setDialogValues()
322 : mRes.getString(R.string.sim_disable_sim_lock)); in setDialogValues()
325 message = mRes.getString(R.string.sim_enter_old); in setDialogValues()
326 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues()
329 message = mRes.getString(R.string.sim_enter_new); in setDialogValues()
330 mPinDialog.setDialogTitle(mRes.getString(R.string.sim_change_pin)); in setDialogValues()
333 message = mRes.getString(R.string.sim_reenter_new); in setDialogValues()
[all …]
DApnEditor.java98 private Resources mRes; field in ApnEditor
196 mRes = getResources(); in onCreate()
358 String []values = mRes.getStringArray(R.array.apn_auth_entries); in fillUi()
392 String[] values = mRes.getStringArray(R.array.apn_protocol_entries); in protocolDescription()
406 String[] values = mRes.getStringArray(R.array.bearer_entries); in bearerDescription()
416 String[] values = mRes.getStringArray(R.array.bearer_entries); in bearerMultiDescription()
446 String[] values = mRes.getStringArray(R.array.mvno_type_entries); in mvnoDescription()
478 String []values = mRes.getStringArray(R.array.apn_auth_entries); in onPreferenceChange()
682 errorMsg = mRes.getString(R.string.error_name_empty); in getErrorMsg()
684 errorMsg = mRes.getString(R.string.error_apn_empty); in getErrorMsg()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DInputsActivity.java90 private Resources mRes; field in InputsActivity
97 mRes = getResources(); in onCreate()
119 .add(new Header.Builder(mRes)
130 .add(new Header.Builder(mRes)
141 .add(new Header.Builder(mRes)
160 .add(new Header.Builder(mRes) in createLayout()
165 .add(new Static.Builder(mRes) in createLayout()
168 .add(new Header.Builder(mRes) in createLayout()
202 .add(new Action.Builder(mRes, action) in getOnOffLayout()
207 .add(new Action.Builder(mRes, action) in getOnOffLayout()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DSimStatus.java99 private Resources mRes; field in SimStatus
142 mRes = getResources(); in onCreate()
143 mDefaultText = mRes.getString(R.string.device_info_default); in onCreate()
270 String display = mRes.getString(R.string.radioInfo_unknown); in updateDataState()
274 display = mRes.getString(R.string.radioInfo_data_connected); in updateDataState()
277 display = mRes.getString(R.string.radioInfo_data_suspended); in updateDataState()
280 display = mRes.getString(R.string.radioInfo_data_connecting); in updateDataState()
283 display = mRes.getString(R.string.radioInfo_data_disconnected); in updateDataState()
292 String display = mRes.getString(R.string.radioInfo_unknown); in updateServiceState()
296 display = mRes.getString(R.string.radioInfo_service_in); in updateServiceState()
[all …]
DStatus.java87 private Resources mRes; field in Status
177 mRes = getResources(); in onCreate()
178 mUnknown = mRes.getString(R.string.device_info_default); in onCreate()
179 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/wallpapers/Galaxy4/src/com/android/galaxy4/
DGalaxyRS.java28 private Resources mRes; field in GalaxyRS
58 mRes = res; in init()
84 mScript = new ScriptC_galaxy(mRS, mRes, R.raw.galaxy); in init()
109 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id, in loadTexture()
175 builder.setShader(mRes, R.raw.spacecloud_vs); in createProgramVertex()
186 builder.setShader(mRes, R.raw.bgstar_vs); in createProgramVertex()
196 builder.setShader(mRes, R.raw.staticstar_vs); in createProgramVertex()
225 builder.setShader(mRes, R.raw.spacecloud_fs); in createProgramFragment()
234 builder.setShader(mRes, R.raw.bgstar_fs); in createProgramFragment()
240 builder.setShader(mRes, R.raw.staticstar_fs); in createProgramFragment()
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/
DPhaseBeamRS.java35 private Resources mRes; field in PhaseBeamRS
62 mRes = res; in init()
79 mScript = new ScriptC_phasebeam(mRS, mRes, R.raw.phasebeam); in init()
139 InputStream inputStream = mRes.openRawResource(R.raw.bgmesh); in createBackgroundMesh()
179 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id, in loadTexture()
194 backgroundBuilder.setShader(mRes, R.raw.bg_vs); in createProgramVertex()
202 builder.setShader(mRes, R.raw.dot_vs); in createProgramVertex()
214 backgroundBuilder.setShader(mRes, R.raw.bg_fs); in createProgramFragment()
219 builder.setShader(mRes, R.raw.dot_fs); in createProgramFragment()
/packages/wallpapers/NoiseField/src/com/android/noisefield/
DNoiseFieldRS.java36 private Resources mRes; field in NoiseFieldRS
55 mRes = res; in init()
69 mScript = new ScriptC_noisefield(mRS, mRes, R.raw.noisefield); in init()
124 InputStream inputStream = mRes.openRawResource(R.raw.bgmesh); in createBackgroundMesh()
164 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id, in loadTexture()
177 backgroundBuilder.setShader(mRes, R.raw.bg_vs); in createProgramVertex()
186 builder.setShader(mRes, R.raw.noisefield_vs); in createProgramVertex()
198 backgroundBuilder.setShader(mRes, R.raw.bg_fs); in createProgramFragment()
203 builder.setShader(mRes, R.raw.noisefield_fs); in createProgramFragment()
/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/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/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java342 private Resources mRes; field in BitmapRegionTileSource.ResourceBitmapSource
345 mRes = res; in ResourceBitmapSource()
349 InputStream is = mRes.openRawResource(mResId); in regenerateInputStream()
367 return BitmapFactory.decodeResource(mRes, mResId, options); in loadPreviewBitmap()
/packages/apps/Launcher3/src/com/android/launcher3/
DBaseRecyclerViewFastScrollPopup.java34 private Resources mRes; field in BaseRecyclerViewFastScrollPopup
53 mRes = res; in BaseRecyclerViewFastScrollPopup()
89 if (Utilities.isRtl(mRes)) { in updateFastScrollerBounds()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/
DEmojiCategory.java151 private final Resources mRes; field in EmojiCategory
166 mRes = res; in EmojiCategory()
236 return mRes.getString(sAccessibilityDescriptionResourceIdsForCategories[categoryId]); in getAccessibilityDescription()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java394 private final Resources mRes; field in ContactsActor.RestrictionMockContext
420 mRes = resources; in RestrictionMockContext()
435 return mRes; in getResources()