Home
last modified time | relevance | path

Searched refs:resId (Results 1 – 25 of 155) sorted by relevance

1234567

/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DOverlayBaseTest.java67 private int calculateRawResourceChecksum(int resId) throws Throwable { in calculateRawResourceChecksum() argument
68 try (InputStream input = mResources.openRawResource(resId)) { in calculateRawResourceChecksum()
141 private void assertResource(int resId, boolean no, boolean so, boolean mo) throws Throwable { in assertResource() argument
143 boolean actual = mResources.getBoolean(resId); in assertResource()
147 private void assertResource(int resId, int no, int so, int mo) throws Throwable { in assertResource() argument
149 int actual = mResources.getInteger(resId); in assertResource()
153 private void assertResource(int resId, String no, String so, String mo) throws Throwable { in assertResource() argument
155 String actual = mResources.getString(resId); in assertResource()
159 private void assertResource(int resId, int[] no, int[] so, int[] mo) throws Throwable { in assertResource() argument
161 int[] actual = mResources.getIntArray(resId); in assertResource()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOverlayPackagesProvider.java166 final int resId; in getRequiredAppsSet() local
169 resId = R.array.required_apps_managed_user; in getRequiredAppsSet()
172 resId = R.array.required_apps_managed_profile; in getRequiredAppsSet()
175 resId = R.array.required_apps_managed_device; in getRequiredAppsSet()
181 return new ArraySet<>(Arrays.asList(mContext.getResources().getStringArray(resId))); in getRequiredAppsSet()
185 final int resId; in getDisallowedAppsSet() local
188 resId = R.array.disallowed_apps_managed_user; in getDisallowedAppsSet()
191 resId = R.array.disallowed_apps_managed_profile; in getDisallowedAppsSet()
194 resId = R.array.disallowed_apps_managed_device; in getDisallowedAppsSet()
200 return new ArraySet<>(Arrays.asList(mContext.getResources().getStringArray(resId))); in getDisallowedAppsSet()
[all …]
/frameworks/base/core/java/android/service/autofill/
DImageTransformation.java90 parentTemplate.setImageViewResource(childViewId, option.resId); in apply()
100 + option.resId + ": " + e.getClass()); in apply()
129 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId) { in Builder() argument
131 addOption(regex, resId); in Builder()
144 public Builder(@NonNull AutofillId id, @NonNull Pattern regex, @DrawableRes int resId, in Builder() argument
147 addOption(regex, resId, contentDescription); in Builder()
162 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId) { in addOption() argument
163 addOptionInternal(regex, resId, null); in addOption()
178 public Builder addOption(@NonNull Pattern regex, @DrawableRes int resId, in addOption() argument
180 addOptionInternal(regex, resId, Preconditions.checkNotNull(contentDescription)); in addOption()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBluetoothDeviceLayerDrawable.java52 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument
54 return createLayerDrawable(context, resId, batteryLevel, 1 /*iconScale*/); in createLayerDrawable()
66 public static BluetoothDeviceLayerDrawable createLayerDrawable(Context context, int resId, in createLayerDrawable() argument
68 final Drawable deviceDrawable = context.getDrawable(resId); in createLayerDrawable()
85 drawable.setConstantState(context, resId, batteryLevel, iconScale); in createLayerDrawable()
90 public void setConstantState(Context context, int resId, int batteryLevel, float iconScale) { in setConstantState() argument
91 mState = new BluetoothDeviceLayerDrawableState(context, resId, batteryLevel, iconScale); in setConstantState()
139 int resId; field in BluetoothDeviceLayerDrawable.BluetoothDeviceLayerDrawableState
143 public BluetoothDeviceLayerDrawableState(Context context, int resId, in BluetoothDeviceLayerDrawableState() argument
146 this.resId = resId; in BluetoothDeviceLayerDrawableState()
[all …]
/frameworks/base/core/java/android/content/res/
DAssetManager.java501 boolean getResourceValue(@AnyRes int resId, int densityDpi, @NonNull TypedValue outValue, in getResourceValue() argument
507 mObject, resId, (short) densityDpi, outValue, resolveRefs); in getResourceValue()
531 @Nullable CharSequence getResourceText(@StringRes int resId) { in getResourceText() argument
534 if (getResourceValue(resId, 0, outValue, true)) { in getResourceText()
550 @Nullable CharSequence getResourceBagText(@StringRes int resId, int bagEntryId) { in getResourceBagText() argument
554 final int cookie = nativeGetResourceBagValue(mObject, resId, bagEntryId, outValue); in getResourceBagText()
570 int getResourceArraySize(@ArrayRes int resId) { in getResourceArraySize() argument
573 return nativeGetResourceArraySize(mObject, resId); in getResourceArraySize()
599 int getResourceArray(@ArrayRes int resId, @NonNull int[] outData) { in getResourceArray() argument
603 return nativeGetResourceArray(mObject, resId, outData); in getResourceArray()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java72 public void setImageResource(@DrawableRes int resId) { in setImageResource() argument
73 if (!testAndSetCache(resId)) { in setImageResource()
76 super.setImageResource(resId); in setImageResource()
82 public Runnable setImageResourceAsync(@DrawableRes int resId) { in setImageResourceAsync() argument
84 return super.setImageResourceAsync(resId); in setImageResourceAsync()
146 private synchronized boolean testAndSetCache(int resId) { in testAndSetCache() argument
148 if (resId == 0 || mLastResId == 0) { in testAndSetCache()
151 isCached = resId == mLastResId && null == mLastPackage; in testAndSetCache()
154 mLastResId = resId; in testAndSetCache()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIDialog.java62 public void setMessage(int resId) { in setMessage() argument
63 setMessage(mContext.getString(resId)); in setMessage()
66 public void setPositiveButton(int resId, OnClickListener onClick) { in setPositiveButton() argument
67 setButton(BUTTON_POSITIVE, mContext.getString(resId), onClick); in setPositiveButton()
70 public void setNegativeButton(int resId, OnClickListener onClick) { in setNegativeButton() argument
71 setButton(BUTTON_NEGATIVE, mContext.getString(resId), onClick); in setNegativeButton()
74 public void setNeutralButton(int resId, OnClickListener onClick) { in setNeutralButton() argument
75 setButton(BUTTON_NEUTRAL, mContext.getString(resId), onClick); in setNeutralButton()
DStatusBarSignalPolicy.java150 newState.resId = statusIcon.icon; in setWifiIndicators()
170 if (state.visible && state.resId > 0) { in updateWifiIconWithState()
274 int resId = state.icon; in setEthernetIndicators() local
277 if (resId > 0) { in setEthernetIndicators()
278 mIconController.setIcon(mSlotEthernet, resId, description); in setEthernetIndicators()
288 int resId = icon.icon; in setIsAirplaneMode() local
291 if (mIsAirplaneMode && resId > 0) { in setIsAirplaneMode()
292 mIconController.setIcon(mSlotAirplane, resId, description); in setIsAirplaneMode()
340 public int resId; field in StatusBarSignalPolicy.WifiIconState
354 return resId == that.resId && in equals()
[all …]
DDozeParameters.java197 private boolean getBoolean(String propName, int resId) { in getBoolean() argument
198 return SystemProperties.getBoolean(propName, mContext.getResources().getBoolean(resId)); in getBoolean()
201 private int getInt(String propName, int resId) { in getInt() argument
202 int value = SystemProperties.getInt(propName, mContext.getResources().getInteger(resId)); in getInt()
206 private String getString(String propName, int resId) { in getString() argument
207 return SystemProperties.get(propName, mContext.getString(resId)); in getString()
/frameworks/base/core/java/android/content/pm/
DSuspendDialogInfo.java294 public Builder setIcon(@DrawableRes int resId) { in setIcon() argument
295 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setIcon()
296 mIconResId = resId; in setIcon()
308 public Builder setTitle(@StringRes int resId) { in setTitle() argument
309 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setTitle()
310 mTitleResId = resId; in setTitle()
349 public Builder setMessage(@StringRes int resId) { in setMessage() argument
350 Preconditions.checkArgument(ResourceId.isValid(resId), "Invalid resource id provided"); in setMessage()
351 mDialogMessageResId = resId; in setMessage()
364 public Builder setNeutralButtonText(@StringRes int resId) { in setNeutralButtonText() argument
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DResourceRequestKey.java36 public static ResourceRequestKey from(Resources res, int resId) { in from() argument
37 if (resId != 0) { in from()
38 return new ResourceRequestKey(res, resId); in from()
43 private ResourceRequestKey(Resources res, int resId) { in ResourceRequestKey() argument
45 mResId = resId; in ResourceRequestKey()
/frameworks/base/core/java/com/android/internal/app/
DToolbarActionBar.java95 public void setCustomView(int resId) { in setCustomView() argument
97 setCustomView(inflater.inflate(resId, mDecorToolbar.getViewGroup(), false)); in setCustomView()
101 public void setIcon(int resId) { in setIcon() argument
102 mDecorToolbar.setIcon(resId); in setIcon()
111 public void setLogo(int resId) { in setLogo() argument
112 mDecorToolbar.setLogo(resId); in setLogo()
161 public void setHomeAsUpIndicator(int resId) { in setHomeAsUpIndicator() argument
162 mDecorToolbar.setNavigationIcon(resId); in setHomeAsUpIndicator()
176 public void setHomeActionContentDescription(int resId) { in setHomeActionContentDescription() argument
177 mDecorToolbar.setNavigationContentDescription(resId); in setHomeActionContentDescription()
[all …]
DWindowDecorActionBar.java364 public void setCustomView(int resId) { in setCustomView() argument
365 setCustomView(LayoutInflater.from(getThemedContext()).inflate(resId, in setCustomView()
400 public void setTitle(int resId) { in setTitle() argument
401 setTitle(mContext.getString(resId)); in setTitle()
405 public void setSubtitle(int resId) { in setSubtitle() argument
406 setSubtitle(mContext.getString(resId)); in setSubtitle()
939 public void setHomeAsUpIndicator(int resId) { in setHomeAsUpIndicator() argument
940 mDecorToolbar.setNavigationIcon(resId); in setHomeAsUpIndicator()
949 public void setHomeActionContentDescription(int resId) { in setHomeActionContentDescription() argument
950 mDecorToolbar.setNavigationContentDescription(resId); in setHomeActionContentDescription()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DPropConfig.java25 public static int getInt(Context context, String propName, int resId) { in getInt() argument
26 return SystemProperties.getInt(propName, context.getResources().getInteger(resId)); in getInt()
29 public static String[] getStringArray(Context context, String propName, int resId) { in getStringArray() argument
31 return !UNSET.equals(prop) ? prop.split(",") : context.getResources().getStringArray(resId); in getStringArray()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/tv/
DPipControlButtonView.java136 public void setImageResource(int resId) { in setImageResource() argument
137 if (resId != 0) { in setImageResource()
138 mIconImageView.setImageResource(resId); in setImageResource()
153 public void setText(int resId) { in setText() argument
154 if (resId != 0) { in setText()
155 mButtonImageView.setContentDescription(getContext().getString(resId)); in setText()
156 mDescriptionTextView.setText(resId); in setText()
/frameworks/base/core/java/com/android/internal/view/
DStandaloneActionMode.java66 public void setTitle(int resId) { in setTitle() argument
67 setTitle(resId != 0 ? mContext.getString(resId) : null); in setTitle()
71 public void setSubtitle(int resId) { in setSubtitle() argument
72 setSubtitle(resId != 0 ? mContext.getString(resId) : null); in setSubtitle()
/frameworks/base/core/java/android/app/
DActionBar.java269 public abstract void setCustomView(@LayoutRes int resId); in setCustomView() argument
284 public abstract void setIcon(@DrawableRes int resId); in setIcon() argument
314 public abstract void setLogo(@DrawableRes int resId); in setLogo() argument
414 public abstract void setTitle(@StringRes int resId); in setTitle() argument
437 public abstract void setSubtitle(@StringRes int resId); in setSubtitle() argument
923 public void setHomeAsUpIndicator(@DrawableRes int resId) { } in setHomeAsUpIndicator() argument
962 public void setHomeActionContentDescription(@StringRes int resId) { } in setHomeActionContentDescription() argument
1203 public abstract Tab setIcon(@DrawableRes int resId); in setIcon() argument
1221 public abstract Tab setText(@StringRes int resId); in setText() argument
1284 public abstract Tab setContentDescription(@StringRes int resId); in setContentDescription() argument
/frameworks/base/tools/aapt/
DResourceIdCache.cpp27 CacheEntry(const android::String16& name, uint32_t resId) : hashedName(name), id(resId) { } in CacheEntry()
88 uint32_t resId) { in store() argument
92 mIdMap[hashcode] = CacheEntry(hashedName, resId); in store()
94 return resId; in store()
/frameworks/base/tests/testables/src/android/testing/
DTestableImageView.java32 public void setImageResource(@DrawableRes int resId) { in setImageResource() argument
33 mLastResId = resId; in setImageResource()
34 super.setImageResource(resId); in setImageResource()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DPropertyNodesVerifier.java46 public void verify(int resId, int vcardType) throws IOException, VCardException { in verify() argument
47 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), vcardType); in verify()
50 public void verify(int resId, int vcardType, final VCardParser parser) in verify() argument
52 verify(mAndroidTestCase.getContext().getResources().openRawResource(resId), in verify()
/frameworks/base/tests/net/common/java/android/net/apf/
DApfCapabilitiesTest.java81 final int resId = mContext.getResources().getIdentifier("config_apfDrop802_3Frames", in testGetApfDrop8023Frames() local
83 final boolean shouldDrop8023Frames = mContext.getResources().getBoolean(resId); in testGetApfDrop8023Frames()
92 final int resId = mContext.getResources().getIdentifier("config_apfEthTypeBlackList", in testGetApfEtherTypeBlackList() local
94 final int[] blacklistedEtherTypeArray = mContext.getResources().getIntArray(resId); in testGetApfEtherTypeBlackList()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt45 private var resId = 0 variable in com.android.egg.quares.QuaresActivity
68 resId = savedInstanceState.getInt("resId") in onCreate()
78 if (resId == 0) { in onResume()
89 outState.putInt("resId", resId) in onSaveInstanceState()
97 val oldResId = resId in newPuzzle()
98 resId = android.R.drawable.stat_sys_warning in newPuzzle()
114 resId = newId in newPuzzle()
156 icon = Icon.createWithResource(getPackageNameForResourceName(resName), resId) in loadPuzzle()
161 resId = 0 in loadPuzzle()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardMessageArea.java151 public void setMessage(int resId) { in setMessage() argument
153 if (resId != 0) { in setMessage()
154 message = getContext().getResources().getText(resId); in setMessage()
160 public void formatMessage(int resId, Object... formatArgs) { in formatMessage() argument
162 if (resId != 0) { in formatMessage()
163 message = getContext().getString(resId, formatArgs); in formatMessage()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardSecurityContainerTest.java50 final int resId = keyguardSecurityContainer.getLayoutIdFor(mode); in showSecurityScreen_canInflateAllModes() local
51 if (resId == 0) { in showSecurityScreen_canInflateAllModes()
54 inflater.inflate(resId, null /* root */, false /* attach */); in showSecurityScreen_canInflateAllModes()
/frameworks/base/core/java/android/preference/
DPreferenceGroupAdapter.java111 private int resId; field in PreferenceGroupAdapter.PreferenceLayout
118 if (resId == other.resId) { in compareTo()
125 return resId - other.resId; in compareTo()
198 pl.resId = preference.getLayoutResource(); in createPreferenceLayout()

1234567