/development/samples/ApiDemos/src/com/example/android/apis/view/ |
GameControllerInput.java | 339 private final Resources mResources; 354 mResources = resources; 357 mResources.getString(R.string.game_controller_input_heading_device)); 359 mResources.getString(R.string.game_controller_input_label_device_name)); 362 mResources.getString(R.string.game_controller_input_heading_axes)); 364 mResources.getString(R.string.game_controller_input_heading_keys)); 410 column.setContent(mResources.getString(state.isKeyPressed(i)
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
DashboardAdapterTest.java | 78 private Resources mResources; 92 when(mContext.getResources()).thenReturn(mResources); 93 when(mResources.getQuantityString(any(int.class), any(int.class), any())).thenReturn(""); 113 when(data.getResources()).thenReturn(mResources); 115 when(mResources.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class)); 162 when(data.getResources()).thenReturn(mResources); 164 when(mResources.getDisplayMetrics()).thenReturn(mock(DisplayMetrics.class));
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/ |
ApnEditorTest.java | 100 private Resources mResources; 106 mResources = mActivity.getResources(); 110 doReturn(mResources).when(mApnEditorUT).getResources(); 257 assertThat(errMsg).isEqualTo(mResources.getString(R.string.error_name_empty)); 272 assertThat(errMsg).isEqualTo(mResources.getString(R.string.error_apn_empty)); 288 assertThat(errMsg).isEqualTo(mResources.getString(R.string.error_mcc_not3)); 304 assertThat(errMsg).isEqualTo(mResources.getString(R.string.error_mnc_not23));
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
HostapdHalTest.java | 57 private MockResources mResources; 92 mResources = new MockResources(); 93 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, false); 94 mResources.setBoolean(R.bool.config_wifi_softap_ieee80211ac_supported, false); 99 when(mContext.getResources()).thenReturn(mResources); 259 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, true); 296 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, true); 297 mResources.setBoolean(R.bool.config_wifi_softap_ieee80211ac_supported, true); 334 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, true); 372 mResources.setBoolean(R.bool.config_wifi_softap_acs_supported, false) [all...] |
/frameworks/base/libs/androidfw/ |
AssetManager.cpp | 140 mLocale(NULL), mResources(NULL), mConfig(new ResTable_config) { 167 delete mResources; 226 if (mResources != NULL) { 291 if (mResources != NULL) { 319 if (mResources != NULL) { 548 size_t nextEntryIdx = mResources->getTableCount(); 605 ALOGV("Installing resource asset %p in to table %p\n", ass, mResources); 608 mResources->add(sharedRes, ap.isSystemAsset); 611 mResources->add(ass, idmap, nextEntryIdx + 1, !shared, appAsLib, ap.isSystemAsset); 619 ALOGV("Installing empty resources in to table %p\n", mResources); [all...] |
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/ |
AnimatedVectorDrawableTest.java | 83 private Resources mResources; 118 mResources = mContext.getResources(); 127 XmlPullParser parser = mResources.getXml(DRAWABLE_RES_ID); 140 mAnimatedVectorDrawable.inflate(mResources, parser, attrs); 150 saveVectorDrawableIntoPNG(mResources, mBitmap, DRAWABLE_RES_ID, null); 191 saveVectorDrawableIntoPNG(mResources, firstFrame, -1, "firstframe"); 205 saveVectorDrawableIntoPNG(mResources, bitmap, -1, "correctness_" + i); 483 saveVectorDrawableIntoPNG(mResources, bitmap, -1, "start"); 517 saveVectorDrawableIntoPNG(mResources, bitmap, -1, "ended");
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimatedVectorDrawableParameterizedTest.java | 73 private Resources mResources = null; 116 mResources = mActivity.getResources(); 132 mResources.getDrawable(R.drawable.animated_vector_favorite)); 208 (AnimatedVectorDrawable) mResources.getDrawable(resId); 235 (AnimatedVectorDrawable) mResources.getDrawable(resId); 295 imageView[0].setImageDrawable(mResources.getDrawable(R.drawable.infinite_avd));
|
AnimatedStateListDrawableTest.java | 63 private Resources mResources; 68 mResources = mContext.getResources(); 174 final Resources res = mResources; 237 XmlResourceParser parser = mResources.getXml(resId);
|
/frameworks/base/core/java/android/content/res/ |
TypedArray.java | 73 private final Resources mResources; 157 return mResources; 469 final ColorStateList csl = mResources.loadColorStateList( 514 return mResources.loadComplexColor(value, value.resourceId, mTheme); 549 return mResources.loadColorStateList(value, value.resourceId, mTheme); [all...] |
/frameworks/base/graphics/java/android/graphics/ |
ImageDecoder.java | 255 mResources = res; 260 private final Resources mResources; 263 Resources getResources() { return mResources; } 366 mResources = res; 371 final Resources mResources; 376 public Resources getResources() { return mResources; } 404 mResources = res; 416 private final Resources mResources; 420 public Resources getResources() { return mResources; } 442 mResources = res [all...] |
/packages/apps/TV/src/com/android/tv/ui/ |
ChannelBannerView.java | 98 private final Resources mResources; 174 mResources = getResources(); 177 mShowDurationMillis = mResources.getInteger(R.integer.channel_banner_show_duration); 179 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_width); 181 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_height); 183 mResources.getDimensionPixelSize(R.dimen.channel_banner_channel_logo_margin_start); 185 mResources.getDimensionPixelSize(R.dimen.channel_banner_program_description_width); 186 mChannelBannerTextColor = mResources.getColor(R.color.channel_banner_text_color, null); 188 mResources.getColor(R.color.channel_banner_dim_text_color, null); 189 mResizeAnimDuration = mResources.getInteger(R.integer.channel_banner_fast_anim_duration) [all...] |
/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTestBase.java | 58 protected Resources mResources; 86 mResources = mContext.getResources(); 109 AssetFileDescriptor afd = mResources.openRawResourceFd(resid); 133 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
|
MediaRandomTest.java | 57 private Resources mResources; 70 mResources = getInstrumentation().getTargetContext().getResources(); 167 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
|
/hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/ |
ComposerClient.h | 90 auto resources = static_cast<ComposerResources*>(mResources.get()); 108 mResources->addVirtualDisplay(display, outputBufferSlotCount); 190 mHal, static_cast<ComposerResources*>(mResources.get())); 229 using BaseType2_1::mResources;
|
/packages/apps/Calendar/src/com/android/calendar/recurrencepicker/ |
RecurrencePickerDialog.java | 271 private Resources mResources; 660 mResources = getResources(); 699 mEndNeverStr = mResources.getString(R.string.recurrence_end_continously); 700 mEndDateLabel = mResources.getString(R.string.recurrence_end_date_label); 701 mEndCountLabel = mResources.getString(R.string.recurrence_end_count_label); 753 mMonthRepeatByDayOfWeekStrs[0] = mResources.getStringArray(R.array.repeat_by_nth_sun); 754 mMonthRepeatByDayOfWeekStrs[1] = mResources.getStringArray(R.array.repeat_by_nth_mon); 755 mMonthRepeatByDayOfWeekStrs[2] = mResources.getStringArray(R.array.repeat_by_nth_tues); 756 mMonthRepeatByDayOfWeekStrs[3] = mResources.getStringArray(R.array.repeat_by_nth_wed); 757 mMonthRepeatByDayOfWeekStrs[4] = mResources.getStringArray(R.array.repeat_by_nth_thurs) [all...] |
/frameworks/base/core/java/android/webkit/ |
FindActionModeCallback.java | 49 private Resources mResources; 66 mResources = context.getResources(); 183 mMatches.setText(mResources.getQuantityString(
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/ |
EnableZenModeDialogTest.java | 56 private Resources mResources; 72 when(mContext.getResources()).thenReturn(mResources); 188 // return a string if mResources is asked to retrieve a string 189 when(mResources.getString(anyInt(), anyString())).thenReturn("");
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/ |
LayoutLibTestCallback.java | 60 private final Map<ResourceType, Map<String, Integer>> mResources = Maps.newHashMap(); 79 mResources.put(resType, resName2Id); 134 Map<String, Integer> resName2Id = mResources.get(type);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
QuickViewIntentBuilder.java | 75 private final Resources mResources; 89 mResources = resources; 148 String resValue = mResources.getString(R.string.trusted_quick_viewer_package);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
OemUnlockPreferenceControllerTest.java | 67 private Resources mResources; 76 when(mContext.getResources()).thenReturn(mResources); 104 doReturn(false).when(mController).showKeyguardConfirmation(mResources,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerSession.java | 39 private final Resources mResources; 44 mResources = service.getResources(); 167 sentenceLevelAdapter = new SentenceLevelAdapter(mResources,
|
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/html/ |
HtmlActivityTask.java | 289 private final Resources mResources; 294 mResources = mActivity.getResources(); 314 uiFacade.dialogSetPositiveButtonText(mResources.getString(android.R.string.ok)); 337 uiFacade.dialogSetPositiveButtonText(mResources.getString(android.R.string.ok)); 338 uiFacade.dialogSetNegativeButtonText(mResources.getString(android.R.string.cancel));
|
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
AppCompatTextViewTest.java | 79 mResources, R.color.ocean_default, null); 82 mResources, R.color.color_state_list_ocean, null); 106 final String text1 = mResources.getString(R.string.sample_text1); 107 final String text2 = mResources.getString(R.string.sample_text2); 134 final String text = mResources.getString(R.string.sample_text2);
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
PhotoSource.java | 96 protected final Resources mResources; 112 mResources = context.getResources(); 114 mMaxQueueSize = mResources.getInteger(R.integer.image_queue_size); 115 mMaxCropRatio = mResources.getInteger(R.integer.max_crop_ratio) / 1000000f; 116 mBadImageSkipLimit = mResources.getInteger(R.integer.bad_image_skip_limit);
|
/frameworks/base/core/java/com/android/internal/os/ |
ZygoteInit.java | 105 private static Resources mResources; 357 mResources = Resources.getSystem(); 358 mResources.startPreloading(); 363 TypedArray ar = mResources.obtainTypedArray( 371 ar = mResources.obtainTypedArray( 378 if (mResources.getBoolean( 381 ar = mResources.obtainTypedArray( 389 mResources.finishPreloading(); 403 if (mResources.getColorStateList(id, null) == null) { 423 if (mResources.getDrawable(id, null) == null) [all...] |