/external/lzma/CPP/Windows/ |
ResourceString.h | 10 UString MyLoadString(UINT resourceID);
11 void MyLoadString(HINSTANCE hInstance, UINT resourceID, UString &dest);
12 void MyLoadString(UINT resourceID, UString &dest);
|
ResourceString.cpp | 20 static CSysString MyLoadStringA(HINSTANCE hInstance, UINT resourceID)
28 len = ::LoadString(hInstance, resourceID, s.GetBuffer(size - 1), size);
39 static void MyLoadString2(HINSTANCE hInstance, UINT resourceID, UString &s)
46 len = ::LoadStringW(hInstance, resourceID, s.GetBuffer(size - 1), size);
54 UString MyLoadString(UINT resourceID)
58 return GetUnicodeString(MyLoadStringA(g_hInstance, resourceID));
65 int len = ::LoadStringW(g_hInstance, resourceID, s, kStartSize);
70 MyLoadString2(g_hInstance, resourceID, dest);
75 void MyLoadString(HINSTANCE hInstance, UINT resourceID, UString &dest)
80 MultiByteToUnicodeString2(dest, MyLoadStringA(hInstance, resourceID));
[all...] |
/frameworks/base/tools/aapt2/ |
SdkConstants_test.cpp | 24 EXPECT_EQ(1u, findAttributeSdkLevel(ResourceId(0x01010000))); 28 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010103f7))); 29 EXPECT_EQ(SDK_LOLLIPOP, findAttributeSdkLevel(ResourceId(0x010104ce))); 31 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104cf))); 32 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d8))); 34 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x010104d9))); 35 EXPECT_EQ(SDK_LOLLIPOP_MR1, findAttributeSdkLevel(ResourceId(0x0101ffff)));
|
Resource.h | 122 struct ResourceId { 125 ResourceId(); 126 ResourceId(const ResourceId& rhs); 127 ResourceId(uint32_t resId); 128 ResourceId(uint8_t p, uint8_t t, uint16_t e); 186 // ResourceId implementation. 189 inline ResourceId::ResourceId() : id(0) { 192 inline ResourceId::ResourceId(const ResourceId& rhs) : id(rhs.id) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/ |
IntegerResourceLoader.java | 13 public int getValue( int resourceId ) { 14 final String resourceIdDebugString = String.valueOf(resourceId) + " (" + "0x" + Integer.toHexString(resourceId) + ")"; 15 String resourceName = resourceExtractor.getResourceName(resourceId); 17 throw new IllegalArgumentException("No such resource: " + resourceId); 28 Integer resourceId = resourceExtractor.getResourceId(resourceName, isSystem); 32 return getValue(resourceId);
|
StringResourceLoader.java | 12 public String getValue(int resourceId) { 13 return stringResolver.getValue(resourceExtractor.getResourceName(resourceId));
|
DimenResourceLoader.java | 15 public float getValue(int resourceId) { 16 return dimenResolver.getValue(resourceExtractor.getResourceName(resourceId));
|
RawResourceLoader.java | 18 public InputStream getValue(int resourceId) { 19 String resourceFileName = resourceExtractor.getResourceName(resourceId);
|
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/ |
DynamicUtilWriter.kt | 11 tab("public static int getColorFromResource(final android.view.View root, final int resourceId) {") { 14 tab("return root.getContext().getColor(resourceId);") 18 tab("return root.getResources().getColor(resourceId);")
|
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/ |
PictureData.java | 22 int resourceId; 26 public PictureData(int resourceId, String description, Bitmap thumbnail) { 27 this.resourceId = resourceId;
|
/external/lzma/CPP/7zip/UI/FileManager/ |
FormatUtils.cpp | 25 UString MyFormatNew(UINT resourceID, const UString &argument)
27 return MyFormatNew(LangString(resourceID), argument);
|
FormatUtils.h | 12 UString MyFormatNew(UINT resourceID, const UString &argument);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowImageView.java | 23 private int resourceId; 53 this.resourceId = resId; 60 * @param resourceId Resource id 63 protected Drawable buildDrawable(int resourceId) { 64 if (isDrawableXml(resourceId)) { 66 int[] resourceIds = resourceLoader.getDrawableIds(resourceId); 72 if (resourceLoader.isAnimatableXml(resourceId)) { 80 shadowOf(layerDrawable).setLoadedFromResourceId(resourceId); 85 getResources(), resourceId)); 92 * @param resourceId Resource i [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
DisconnectCauseUtil.java | 166 Integer resourceId = null; 169 resourceId = R.string.callFailed_userBusy; 173 resourceId = R.string.callFailed_congestion; 177 resourceId = R.string.callFailed_timedOut; 181 resourceId = R.string.callFailed_server_unreachable; 185 resourceId = R.string.callFailed_number_unreachable; 189 resourceId = R.string.callFailed_invalid_credentials; 193 resourceId = R.string.callFailed_server_error; 197 resourceId = R.string.callFailed_out_of_network; 202 resourceId = R.string.callFailed_noSignal [all...] |
/frameworks/base/tools/aapt2/flatten/ |
TableFlattener_test.cpp | 70 const ResourceId expectedId, 147 .addSimple(u"@com.app.test:id/one", ResourceId(0x7f020000)) 148 .addSimple(u"@com.app.test:id/two", ResourceId(0x7f020001)) 149 .addValue(u"@com.app.test:id/three", ResourceId(0x7f020002), 150 test::buildReference(u"@com.app.test:id/one", ResourceId(0x7f020000))) 151 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000), 153 .addValue(u"@com.app.test:integer/one", ResourceId(0x7f030000), 156 .addString(u"@com.app.test:string/test", ResourceId(0x7f040000), u"foo") 157 .addString(u"@com.app.test:layout/bar", ResourceId(0x7f050000), u"res/layout/bar.xml") 163 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/one", ResourceId(0x7f020000), {} [all...] |
/developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
/developers/samples/android/ui/transition/FragmentTransition/Application/src/main/java/com/example/android/fragmenttransition/ |
Meat.java | 24 public int resourceId; 27 public Meat(int resourceId, String title) { 28 this.resourceId = resourceId;
|
MeatAdapter.java | 31 public MeatAdapter(LayoutInflater inflater, int resourceId) { 33 mResourceId = resourceId; 48 return Meat.MEATS[position].resourceId; 72 holder.image.setImageResource(meat.resourceId);
|
/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 49 public void loadSound(int resourceId) { 50 int soundId = mSoundPool.load(mAppContext, resourceId, 1/* priority */); 51 mResourceToSoundId.put(resourceId, soundId); 58 public void play(int resourceId, float volume) { 59 Integer soundId = mResourceToSoundId.get(resourceId); 69 public void unloadSound(int resourceId) { 70 Integer soundId = mResourceToSoundId.get(resourceId);
|
/cts/tests/tests/content/src/android/content/cts/ |
Intent_ShortcutIconResourceTest.java | 32 final int resourceId = android.content.cts.R.string.notify; 43 resourceId); 45 resourceId); 53 resourceId); 55 resourceId);
|
/frameworks/base/tools/aapt2/link/ |
XmlReferenceLinker_test.cpp | 31 .addPublicSymbol(u"@android:attr/layout_width", ResourceId(0x01010000), 37 .addPublicSymbol(u"@android:attr/background", ResourceId(0x01010001), 40 .addPublicSymbol(u"@android:attr/attr", ResourceId(0x01010002), 42 .addPublicSymbol(u"@android:attr/text", ResourceId(0x01010003), 48 .addPublicSymbol(u"@android:attr/colorAccent", ResourceId(0x01010435), 52 .addSymbol(u"@android:color/hidden", ResourceId(0x01020001)) 54 .addPublicSymbol(u"@android:id/id", ResourceId(0x01030000)) 55 .addSymbol(u"@com.app.test:id/id", ResourceId(0x7f030000)) 56 .addSymbol(u"@com.app.test:color/green", ResourceId(0x7f020000)) 57 .addSymbol(u"@com.app.test:color/red", ResourceId(0x7f020001) [all...] |
ReferenceLinker_test.cpp | 27 .addReference(u"@com.app.test:string/foo", ResourceId(0x7f020000), 31 .addReference(u"@com.app.test:string/bar", ResourceId(0x7f020001), u"@string/baz") 33 .addReference(u"@com.app.test:string/baz", ResourceId(0x7f020002), 43 .addPublicSymbol(u"@android:string/ok", ResourceId(0x01040034)) 53 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020001)); 58 EXPECT_EQ(ref->id.value(), ResourceId(0x7f020002)); 63 EXPECT_EQ(ref->id.value(), ResourceId(0x01040034)); 91 ResourceId(0x01060000)) 92 .addPublicSymbol(u"@android:attr/foo", ResourceId(0x01010001), 96 .addPublicSymbol(u"@android:attr/bar", ResourceId(0x01010002) [all...] |
/packages/apps/Dialer/src/com/android/dialer/widget/ |
EmptyContentView.java | 72 public void setDescription(int resourceId) { 73 if (resourceId == NO_LABEL) { 77 mDescriptionView.setText(resourceId); 82 public void setImage(int resourceId) { 83 if (resourceId == NO_LABEL) { 87 mImageView.setImageResource(resourceId); 92 public void setActionLabel(int resourceId) { 93 if (resourceId == NO_LABEL) { 97 mActionView.setText(resourceId);
|
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/ |
ScriptListAdapter.java | 68 int resourceId; 70 resourceId = R.drawable.folder; 72 resourceId = FeaturedInterpreters.getInterpreterIcon(mContext, script.getName()); 73 if (resourceId == 0) { 74 resourceId = R.drawable.sl4a_logo_32; 77 icon.setImageResource(resourceId);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/matchers/ |
ImageViewHasDrawableMatcher.java | 35 private String nameOrUnset(ResourceLoader resourceLoader, int resourceId) { 36 return resourceId == 0 ? "unset" : resourceLoader.getNameForId(resourceId);
|