/frameworks/base/tests/RenderScriptTests/ShadersTest/src/com/android/shaderstest/ |
ShadersTestRS.java | 45 mRes = res; 53 private Resources mRes; 116 fs.setShader(mRes, R.raw.vignette_fs); 135 mMeshTexture = Allocation.createFromBitmapResource(mRS, mRes, R.drawable.robot, 172 mScript = new ScriptC_shaderstest(mRS, mRes, R.raw.shaderstest); 182 FileA3D model = FileA3D.createFromResource(mRS, mRes, R.raw.robot);
|
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/ |
RSTestCore.java | 38 private Resources mRes; 58 mRes = res; 63 mScript = new ScriptC_rslist(mRS, mRes, R.raw.rslist); 67 unitTests.add(new UT_primitives(this, mRes, mCtx)); 68 unitTests.add(new UT_vector(this, mRes, mCtx)); 69 unitTests.add(new UT_rsdebug(this, mRes, mCtx)); 70 unitTests.add(new UT_rstime(this, mRes, mCtx)); 71 unitTests.add(new UT_rstypes(this, mRes, mCtx)); 72 unitTests.add(new UT_alloc(this, mRes, mCtx)); 73 unitTests.add(new UT_refcount(this, mRes, mCtx)) [all...] |
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
SingleSpellCheckerPreference.java | 45 private final Resources mRes; 62 mRes = fragment.getActivity().getResources(); 138 items[0] = mRes.getString(R.string.use_system_language_to_select_input_method_subtypes);
|
/packages/experimental/AndroidVendorSecurityTool/src/com/android/vending/sectool/v1/ |
GoogleSecurityToolActivity.java | 34 Resources mRes;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
NinePatchTest.java | 45 private Resources mRes; 55 mRes = getContext().getResources(); 57 mOptNoScale.inDensity = mOptNoScale.inTargetDensity = mRes.getDisplayMetrics().densityDpi; 58 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.opaque, mOptNoScale); 115 Bitmap expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled1, mOptNoScale); 124 expected = BitmapFactory.decodeResource(mRes, R.drawable.scaled2, mOptNoScale); 181 BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); 232 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_border, mOptNoScale); 250 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.transparent_right, mOptNoScale);
|
BitmapFactoryTest.java | 49 private Resources mRes; 82 mRes = getInstrumentation().getTargetContext().getResources(); 84 mTargetDensity = mRes.getDisplayMetrics().densityDpi; 110 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start, 117 assertNull(BitmapFactory.decodeResource(mRes, R.drawable.start, mOpt2)); 126 Bitmap b = BitmapFactory.decodeResource(mRes, R.drawable.start); 144 Bitmap b = BitmapFactory.decodeResourceStream(mRes, value, is, r, mOpt1); 328 Bitmap bitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, opt); 334 return mRes.openRawResource(R.drawable.start); 338 return mRes.openRawResource(resId) [all...] |
BitmapTest.java | 47 private Resources mRes; 55 mRes = getContext().getResources(); 58 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 76 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 401 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 433 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 456 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 621 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 675 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions); 776 mBitmap = BitmapFactory.decodeResource(mRes, R.drawable.start, mOptions) [all...] |
BitmapRegionDecoderTest.java | 53 private Resources mRes; 102 mRes = getInstrumentation().getTargetContext().getResources(); 362 return mRes.openRawResource(resId);
|
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/ |
SelectCalendarsSimpleAdapter.java | 56 Resources mRes; 88 mRes = context.getResources(); 89 mColorCalendarVisible = mRes.getColor(R.color.calendar_visible); 90 mColorCalendarHidden = mRes.getColor(R.color.calendar_hidden); 91 mColorCalendarSecondaryVisible = mRes.getColor(R.color.calendar_secondary_visible); 92 mColorCalendarSecondaryHidden = mRes.getColor(R.color.calendar_secondary_hidden); 95 mScale = mRes.getDisplayMetrics().density; 296 return mRes.getDrawable(TabletCalendarItemBackgrounds.getBackgrounds()[bg]);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
Status.java | 111 private Resources mRes; 187 mRes = getResources(); 189 sUnknown = mRes.getString(R.string.device_info_default); 334 String display = mRes.getString(R.string.radioInfo_unknown); 338 display = mRes.getString(R.string.radioInfo_data_connected); 341 display = mRes.getString(R.string.radioInfo_data_suspended); 344 display = mRes.getString(R.string.radioInfo_data_connecting); 347 display = mRes.getString(R.string.radioInfo_data_disconnected); 356 String display = mRes.getString(R.string.radioInfo_unknown); 360 display = mRes.getString(R.string.radioInfo_service_in) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
LatinKeyboard.java | 50 private final Resources mRes; 82 mRes = context.getResources(); 92 mRes.getInteger(R.integer.config_long_press_space_key_timeout); 256 final BitmapDrawable drawable = new BitmapDrawable(mRes, drawSpacebar( 268 final Resources res = mRes;
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 221 private final Resources mRes; 247 mRes = resources; 262 return mRes;
|
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/ |
GalaxyRS.java | 27 private Resources mRes; 52 mRes = res; 72 mScript = new ScriptC_galaxy(mRS, mRes, R.raw.galaxy); 97 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id); 102 Bitmap b = BitmapFactory.decodeResource(mRes, id, mOptionsARGB); 176 builder.setShader(mRes, R.raw.spacecloud_vs); 187 builder.setShader(mRes, R.raw.bgstar_vs); 219 builder.setShader(mRes, R.raw.spacecloud_fs); 230 builder.setShader(mRes, R.raw.bgstar_fs);
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
NoiseFieldRS.java | 27 private Resources mRes; 46 mRes = res; 60 mScript = new ScriptC_noisefield(mRS, mRes, R.raw.noisefield); 237 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id); 248 backgroundBuilder.setShader(mRes, R.raw.bg_vs); 258 builder.setShader(mRes, R.raw.noisefield_vs); 270 backgroundBuilder.setShader(mRes, R.raw.bg_fs); 275 builder.setShader(mRes, R.raw.noisefield_fs);
|
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/ |
PhaseBeamRS.java | 35 private Resources mRes; 62 mRes = res; 79 mScript = new ScriptC_phasebeam(mRS, mRes, R.raw.phasebeam); 139 InputStream inputStream = mRes.openRawResource(R.raw.bgmesh); 179 final Allocation allocation = Allocation.createFromBitmapResource(mRS, mRes, id); 192 backgroundBuilder.setShader(mRes, R.raw.bg_vs); 200 builder.setShader(mRes, R.raw.dot_vs); 212 backgroundBuilder.setShader(mRes, R.raw.bg_fs); 217 builder.setShader(mRes, R.raw.dot_fs);
|
/development/samples/RenderScript/MiscSamples/src/com/example/android/rs/miscsamples/ |
RsRenderStatesRS.java | 44 mRes = res; 61 private Resources mRes; 235 pvbCustom.setShader(mRes, R.raw.shaderv); 246 pfbCustom.setShader(mRes, R.raw.shaderf); 256 pvbCustom.setShader(mRes, R.raw.shaderarrayv); 263 pfbCustom.setShader(mRes, R.raw.shaderarrayf); 271 pvbCustom.setShader(mRes, R.raw.shadercubev); 278 pfbCustom.setShader(mRes, R.raw.shadercubef); 283 pfbCustom.setShader(mRes, R.raw.multitexf); 299 return Allocation.createFromBitmapResource(mRS, mRes, id [all...] |
/frameworks/base/tools/aapt/ |
AaptAssets.h | 520 virtual ~AaptAssets() { delete mRes; } 563 inline KeyedVector<String8, sp<ResourceTypeSet> >* getResources() { return mRes; } 565 setResources(KeyedVector<String8, sp<ResourceTypeSet> >* res) { delete mRes; mRes = res; } 600 KeyedVector<String8, sp<ResourceTypeSet> >* mRes;
|
/packages/apps/Settings/src/com/android/settings/ |
ApnEditor.java | 92 private Resources mRes; 184 mRes = getResources(); 305 String []values = mRes.getStringArray(R.array.apn_auth_entries); 329 String[] values = mRes.getStringArray(R.array.apn_protocol_entries); 343 String[] values = mRes.getStringArray(R.array.bearer_entries); 359 String []values = mRes.getStringArray(R.array.apn_auth_entries); 532 errorMsg = mRes.getString(R.string.error_name_empty); 534 errorMsg = mRes.getString(R.string.error_apn_empty); 536 errorMsg = mRes.getString(R.string.error_mcc_not3); 538 errorMsg = mRes.getString(R.string.error_mnc_not23) [all...] |
/development/samples/JetBoy/src/com/example/android/jetboy/ |
JetBoyView.java | 273 Resources mRes; 291 mRes = context.getResources(); 367 mTitleBG = BitmapFactory.decodeResource(mRes, R.drawable.title_hori); 374 mBackgroundImageFar = BitmapFactory.decodeResource(mRes, R.drawable.background_a); 376 mLaserShot = BitmapFactory.decodeResource(mRes, R.drawable.laser); 378 mBackgroundImageNear = BitmapFactory.decodeResource(mRes, R.drawable.background_b); 380 mShipFlying[0] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_1); 381 mShipFlying[1] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_2); 382 mShipFlying[2] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_3); 383 mShipFlying[3] = BitmapFactory.decodeResource(mRes, R.drawable.ship2_4) [all...] |
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
RsBenchRS.java | 68 mRes = res; 84 private Resources mRes; 455 pvbCustom.setShader(mRes, R.raw.shaderv); 466 pfbCustom.setShader(mRes, R.raw.shaderf); 476 pvbCustom.setShader(mRes, R.raw.shader2v); 483 pvbCustom.setShader(mRes, R.raw.shader2movev); 490 pfbCustom.setShader(mRes, R.raw.shader2f); 497 pfbCustom.setShader(mRes, R.raw.multitexf); 508 return Allocation.createFromBitmapResource(mRS, mRes, id, 514 Bitmap b = BitmapFactory.decodeResource(mRes, id, mOptionsARGB) [all...] |
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
CarouselRS.java | 68 private Resources mRes; 265 mRes = res; 268 mScript = new ScriptC_carousel(mRS, mRes, resId); [all...] |
/frameworks/base/services/java/com/android/server/ |
InputMethodManagerService.java | 147 final Resources mRes; 515 mRes = context.getResources(); 555 mRes, context.getContentResolver(), mMethodMap, mMethodList); 615 mShowOngoingImeSwitcherForPhones = mRes.getBoolean( 663 enabledSubtypes = getImplicitlyApplicableSubtypesLocked(mRes, imi); [all...] |