/frameworks/base/libs/androidfw/include/androidfw/ |
ResourceUtils.h | 30 inline uint32_t fix_package_id(uint32_t resid, uint8_t package_id) { 31 return resid | (static_cast<uint32_t>(package_id) << 24); 34 inline uint8_t get_package_id(uint32_t resid) { 35 return static_cast<uint8_t>((resid >> 24) & 0x000000ffu); 39 inline uint8_t get_type_id(uint32_t resid) { 40 return static_cast<uint8_t>((resid >> 16) & 0x000000ffu); 43 inline uint16_t get_entry_id(uint32_t resid) { return static_cast<uint16_t>(resid & 0x0000ffffu); } 45 inline bool is_internal_resid(uint32_t resid) { 46 return (resid & 0xffff0000u) != 0 && (resid & 0x00ff0000u) == 0 [all...] |
/device/linaro/bootloader/edk2/StdLib/LibC/Stdio/ |
fread.c | 58 size_t resid;
local 73 if ((resid = count * size) == 0)
81 total = resid;
83 while (resid > (size_t)(r = fp->_r)) {
88 resid -= r;
92 return ((total - resid) / size);
95 (void)memcpy((void *)p, (void *)fp->_p, resid);
96 fp->_r -= (int)resid;
97 fp->_p += resid;
|
/cts/tests/tests/content/src/android/content/res/cts/ |
ArrayTest.java | 34 private void checkEntry(final int resid, final int index, final Object res, 36 assertEquals("in resource 0x" + Integer.toHexString(resid) 40 private void checkStringArray(final int resid, final String[] expected) { 41 final String[] res = mResources.getStringArray(resid); 44 checkEntry(resid, i, res[i], expected[i]); 48 private void checkTextArray(final int resid, final String[] expected) { 49 final CharSequence[] res = mResources.getTextArray(resid); 52 checkEntry(resid, i, res[i], expected[i]); 56 private void checkIntArray(final int resid, final int[] expected) { 57 final int[] res = mResources.getIntArray(resid); [all...] |
PrimitiveTest.java | 35 private void tryEnum(final int resid, final int expected) { 36 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.EnumStyle); 41 + ": in resource 0x" + Integer.toHexString(resid), expected, value); 52 private void tryFlag(final int resid, final int expected) { 53 final TypedArray sa = mContext.obtainStyledAttributes(resid, R.styleable.FlagStyle); 58 + ": in resource 0x" + Integer.toHexString(resid), expected, value); 70 private void tryBoolean(final int resid, final boolean expected) { 72 mContext.getResources().getValue(resid, v, true); 75 + " from TypedValue: in resource 0x" + Integer.toHexString(resid), 78 + " from getBoolean(): in resource 0x" + Integer.toHexString(resid), [all...] |
ResourceNameTest.java | 47 int resid = res.getIdentifier( local 50 assertEquals(R.configVarying.simple, resid); 52 resid = res.getIdentifier("configVarying/simple", null, 54 assertEquals(R.configVarying.simple, resid); 56 resid = res.getIdentifier("simple", "configVarying", 58 assertEquals(R.configVarying.simple, resid);
|
/packages/apps/Settings/src/com/android/settings/fingerprint/ |
SetupFingerprintEnrollEnrolling.java | 35 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 36 resid = SetupWizardUtils.getTheme(getIntent()); 37 super.onApplyThemeResource(theme, resid, first);
|
SetupFingerprintEnrollFindSensor.java | 47 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 48 resid = SetupWizardUtils.getTheme(getIntent()); 49 super.onApplyThemeResource(theme, resid, first);
|
SetupFingerprintEnrollFinish.java | 44 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 45 resid = SetupWizardUtils.getTheme(getIntent()); 46 super.onApplyThemeResource(theme, resid, first);
|
/frameworks/base/libs/androidfw/tests/ |
BenchmarkHelpers.h | 30 uint32_t resid, benchmark::State& state);
|
BenchmarkHelpers.cpp | 25 uint32_t resid, benchmark::State& state) { 46 table.getResource(resid, &value, false /*may_be_bag*/, 0u /*density*/, &flags,
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
UserInitializeReceiver.java | 49 int resid = list.get(i); local 50 if (!wpm.hasResourceWallpaper(resid)) { 52 wpm.setResource(resid); 60 private void addWallpapers(Resources resources, String packageName, int resid, 62 final String[] extras = resources.getStringArray(resid);
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
FocusIndicatorView.java | 31 private void setDrawable(int resid) { 32 setBackgroundDrawable(getResources().getDrawable(resid));
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
AsyncLayoutInflater.java | 81 public void inflate(@LayoutRes int resid, @Nullable ViewGroup parent, 88 request.resid = resid; 100 request.resid, request.parent, false); 103 request.view, request.resid, request.parent); 110 void onInflateFinished(View view, int resid, ViewGroup parent); 116 int resid; field in class:AsyncLayoutInflater.InflateRequest 187 request.resid, request.parent, false); 216 obj.resid = 0;
|
/cts/tests/tests/security/src/android/security/cts/ |
MediaMetadataRetrieverTest.java | 47 protected void setDataSourceFd(int resid) { 49 AssetFileDescriptor afd = mResources.openRawResourceFd(resid);
|
/frameworks/base/core/java/android/widget/ |
ImageSwitcher.java | 58 * @param resid a Drawable resource id 62 public void setImageResource(@DrawableRes int resid) 65 image.setImageResource(resid);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
AnimatedImageView.java | 37 // the same as the previous one. If this is a resid, we track that. If it's a drawable, we 89 public void setImageResource(int resid) { 90 if (mDrawableId == resid) return; 92 mDrawableId = resid; 93 super.setImageResource(resid);
|
/external/strace/tests/ |
ioctl_sg_io_v3.c | 89 ", resid=%d" 107 sg_io->resid, 132 ", resid=%d" 150 sg_io->resid, 191 ", resid=%d" 215 sg_io->resid, 220 sg_io->resid = sg_io->dxfer_len + 1; 241 ", resid=%d" 265 sg_io->resid, 272 sg_io->resid = 1 [all...] |
/external/strace/tests-m32/ |
ioctl_sg_io_v3.c | 89 ", resid=%d" 107 sg_io->resid, 132 ", resid=%d" 150 sg_io->resid, 191 ", resid=%d" 215 sg_io->resid, 220 sg_io->resid = sg_io->dxfer_len + 1; 241 ", resid=%d" 265 sg_io->resid, 272 sg_io->resid = 1 [all...] |
/external/strace/tests-mx32/ |
ioctl_sg_io_v3.c | 89 ", resid=%d" 107 sg_io->resid, 132 ", resid=%d" 150 sg_io->resid, 191 ", resid=%d" 215 sg_io->resid, 220 sg_io->resid = sg_io->dxfer_len + 1; 241 ", resid=%d" 265 sg_io->resid, 272 sg_io->resid = 1 [all...] |
/frameworks/base/core/java/com/google/android/util/ |
SmileyParser.java | 71 int resid = mRes.getSmileyRes(token.getRawText()); local 72 if (resid != -1) { 73 builder.setSpan(new ImageSpan(context, resid),
|
/packages/apps/Settings/src/com/android/settings/ |
SetupChooseLockPattern.java | 67 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 68 resid = SetupWizardUtils.getTheme(getIntent()); 69 super.onApplyThemeResource(theme, resid, first);
|
SetupEncryptionInterstitial.java | 58 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 59 resid = SetupWizardUtils.getTheme(getIntent()); 60 super.onApplyThemeResource(theme, resid, first);
|
SetupRedactionInterstitial.java | 64 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 65 resid = SetupWizardUtils.getTheme(getIntent()); 66 super.onApplyThemeResource(theme, resid, first);
|
/frameworks/support/v7/appcompat/src/android/support/v7/view/ |
ContextThemeWrapper.java | 140 public void setTheme(int resid) { 141 if (mThemeResource != resid) { 142 mThemeResource = resid; 183 * @param resid The theme style resource being applied to <var>theme</var>. 187 protected void onApplyThemeResource(Resources.Theme theme, int resid, boolean first) { 188 theme.applyStyle(resid, true);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/plat-mac/ |
macresource.py | 15 def need(restype, resid, filename=None, modname=None): 16 """Open a resource file, if needed. restype and resid 27 if type(resid) is type(1): 29 h = Res.GetResource(restype, resid) 36 h = Res.GetNamedResource(restype, resid) 71 if type(resid) is type(1): 72 h = Res.GetResource(restype, resid) 74 h = Res.GetNamedResource(restype, resid)
|