Home
last modified time | relevance | path

Searched refs:resourceId (Results 1 – 25 of 130) sorted by relevance

123456

/frameworks/base/services/core/java/com/android/server/
DIpSecService.java127 TransformRecord(IpSecConfig config, int resourceId, IBinder binder) { in TransformRecord() argument
130 mResourceId = resourceId; in TransformRecord()
176 int resourceId, in SpiRecord() argument
183 mResourceId = resourceId; in SpiRecord()
280 int resourceId = mNextResourceId.getAndIncrement(); in reserveSecurityParameterIndex() local
289 resourceId, in reserveSecurityParameterIndex()
296 retBundle.putInt(KEY_RESOURCE_ID, resourceId); in reserveSecurityParameterIndex()
300 resourceId, in reserveSecurityParameterIndex()
302 resourceId, direction, localAddress, remoteAddress, spi, binder)); in reserveSecurityParameterIndex()
307 retBundle.putInt(KEY_RESOURCE_ID, resourceId); in reserveSecurityParameterIndex()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DTintTypedArray.java76 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawable() local
77 if (resourceId != 0) { in getDrawable()
78 return AppCompatResources.getDrawable(mContext, resourceId); in getDrawable()
86 final int resourceId = mWrapped.getResourceId(index, 0); in getDrawableIfKnown() local
87 if (resourceId != 0) { in getDrawableIfKnown()
88 return AppCompatDrawableManager.get().getDrawable(mContext, resourceId, true); in getDrawableIfKnown()
116 final int resourceId = mWrapped.getResourceId(index, 0); in getFont() local
117 if (resourceId == 0) { in getFont()
123 return ResourcesCompat.getFont(mContext, resourceId, mTypedValue, style, targetView); in getFont()
172 final int resourceId = mWrapped.getResourceId(index, 0); in getColorStateList() local
[all …]
DAppCompatCompoundButtonHelper.java59 final int resourceId = a.getResourceId( in loadFromAttributes() local
61 if (resourceId != 0) { in loadFromAttributes()
63 AppCompatResources.getDrawable(mView.getContext(), resourceId)); in loadFromAttributes() local
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DObservableListAdapter.java38 public ObservableListAdapter(Context context, List<T> list, int resourceId, in ObservableListAdapter() argument
41 mResourceId = resourceId; in ObservableListAdapter()
44 mLayoutInflater = (resourceId == 0) ? null : in ObservableListAdapter()
120 public View getViewForResource(int resourceId, int position, View convertView, in getViewForResource() argument
123 if (resourceId == 0) { in getViewForResource()
126 convertView = mLayoutInflater.inflate(resourceId, parent, false); in getViewForResource()
/frameworks/base/core/tests/coretests/src/android/view/
DInflateTest.java58 public void inflateTest(int resourceId) { in inflateTest() argument
59 mView = mInflater.inflate(resourceId, null); in inflateTest()
63 public void inflateCachedTest(int resourceId) { in inflateCachedTest() argument
65 mInflater.inflate(resourceId, null); in inflateCachedTest()
67 mInflater.inflate(resourceId, null); in inflateCachedTest()
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
DSamplesList.java36 static Map<String,?> makeSample(String name, Class<?> activity, int resourceId) { in makeSample() argument
40 ret.put(KEY_RESOURCE, resourceId); in makeSample()
61 int resourceId = ((Integer) SAMPLES.get(position).get(KEY_RESOURCE)).intValue(); in onListItemClick() local
64 intent.putExtra("resourceId", resourceId); in onListItemClick()
/frameworks/base/core/java/android/widget/
DCalendarView.java300 public void setSelectedDateVerticalBar(@DrawableRes int resourceId) { in setSelectedDateVerticalBar() argument
301 mDelegate.setSelectedDateVerticalBar(resourceId); in setSelectedDateVerticalBar()
337 public void setWeekDayTextAppearance(@StyleRes int resourceId) { in setWeekDayTextAppearance() argument
338 mDelegate.setWeekDayTextAppearance(resourceId); in setWeekDayTextAppearance()
359 public void setDateTextAppearance(@StyleRes int resourceId) { in setDateTextAppearance() argument
360 mDelegate.setDateTextAppearance(resourceId); in setDateTextAppearance()
598 void setSelectedDateVerticalBar(@DrawableRes int resourceId); in setSelectedDateVerticalBar() argument
602 void setWeekDayTextAppearance(@StyleRes int resourceId); in setWeekDayTextAppearance() argument
605 void setDateTextAppearance(@StyleRes int resourceId); in setDateTextAppearance() argument
/frameworks/base/core/java/android/gesture/
DGestureLibraries.java48 public static GestureLibrary fromRawResource(Context context, @RawRes int resourceId) { in fromRawResource() argument
49 return new ResourceGestureLibrary(context, resourceId); in fromRawResource()
113 public ResourceGestureLibrary(Context context, int resourceId) { in ResourceGestureLibrary() argument
115 mResourceId = resourceId; in ResourceGestureLibrary()
/frameworks/base/core/java/android/view/
DPointerIcon.java217 int resourceId = a.getResourceId(typeIndex, -1); in getSystemIcon() local
220 if (resourceId == -1) { in getSystemIcon()
226 if ((resourceId & 0xff000000) == 0x01000000) { in getSystemIcon()
227 icon.mSystemIconResourceId = resourceId; in getSystemIcon()
229 icon.loadResource(context, context.getResources(), resourceId); in getSystemIcon()
291 public static PointerIcon load(@NonNull Resources resources, @XmlRes int resourceId) { in load() argument
297 icon.loadResource(null, resources, resourceId); in load()
399 private void loadResource(Context context, Resources resources, @XmlRes int resourceId) { in loadResource() argument
400 final XmlResourceParser parser = resources.getXml(resourceId); in loadResource()
/frameworks/base/core/java/android/util/
DTypedValue.java185 public int resourceId; field in TypedValue
518 resourceId = other.resourceId; in setTo()
533 if (resourceId != 0) { in toString()
534 sb.append(" r=0x").append(Integer.toHexString(resourceId)); in toString()
/frameworks/base/core/java/android/text/style/
DImageSpan.java114 public ImageSpan(Context context, @DrawableRes int resourceId) { in ImageSpan() argument
115 this(context, resourceId, ALIGN_BOTTOM); in ImageSpan()
122 public ImageSpan(Context context, @DrawableRes int resourceId, int verticalAlignment) { in ImageSpan() argument
125 mResourceId = resourceId; in ImageSpan()
/frameworks/base/core/java/android/security/net/config/
DXmlConfigSource.java48 public XmlConfigSource(Context context, int resourceId) { in XmlConfigSource() argument
49 this(context, resourceId, false); in XmlConfigSource()
53 public XmlConfigSource(Context context, int resourceId, boolean debugBuild) { in XmlConfigSource() argument
54 this(context, resourceId, debugBuild, Build.VERSION_CODES.CUR_DEVELOPMENT); in XmlConfigSource()
58 public XmlConfigSource(Context context, int resourceId, boolean debugBuild, in XmlConfigSource() argument
60 this(context, resourceId, debugBuild, targetSdkVersion, 1 /*targetSandboxVersion*/); in XmlConfigSource()
63 public XmlConfigSource(Context context, int resourceId, boolean debugBuild, in XmlConfigSource() argument
65 mResourceId = resourceId; in XmlConfigSource()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DMediaRouterThemeHelper.java84 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; in getThemeResource()
155 return outValue.resourceId; in getAlertDialogResolvedTheme()
178 if (value.resourceId != 0) { in getThemeColor()
179 return context.getResources().getColor(value.resourceId); in getThemeColor()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DGraphReader.java41 public FilterGraph readGraphResource(Context context, int resourceId) throws GraphIOException { in readGraphResource() argument
42 InputStream inputStream = context.getResources().openRawResource(resourceId); in readGraphResource()
/frameworks/support/compat/java/android/support/v4/view/
DPointerIconCompat.java177 public static PointerIconCompat load(Resources resources, int resourceId) { in load() argument
179 return new PointerIconCompat(PointerIcon.load(resources, resourceId)); in load()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DImageCardViewPresenter.java60 int resourceId = getContext().getResources() in onBindViewHolder() local
63 Picasso.with(getContext()).load(resourceId).into(cardView.getMainImageView()); in onBindViewHolder()
DSideInfoCardPresenter.java57 int resourceId = getContext().getResources() in onBindViewHolder() local
60 Picasso.with(getContext()).load(resourceId).resize(width, height).centerCrop() in onBindViewHolder()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/
DTextCardView.java46 int resourceId = card.getLocalImageResourceId(getContext()); in updateUi() local
48 .decodeResource(getContext().getResources(), resourceId); in updateUi()
DCharacterCardView.java58 int resourceId = card.getLocalImageResourceId(getContext()); in updateUi() local
60 .decodeResource(getContext().getResources(), resourceId); in updateUi()
/frameworks/base/telephony/java/com/android/ims/internal/uce/presence/
DPresResInstanceInfo.java78 public void setResId(String resourceId) { in setResId() argument
79 this.mId = resourceId; in setResId()
/frameworks/support/compat/java/android/support/v4/content/res/
DFontResourcesParserCompat.java106 public FontFileResourceEntry(int weight, boolean italic, int resourceId) { in FontFileResourceEntry() argument
109 mResourceId = resourceId; in FontFileResourceEntry()
249 int resourceId = array.getResourceId(R.styleable.FontFamilyFont_font, 0); in readFont() local
254 return new FontFileResourceEntry(weight, isItalic, resourceId); in readFont()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphReader.java532 public static FilterGraph readXmlGraphResource(MffContext context, int resourceId) in readXmlGraphResource() argument
534 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlGraphResource()
550 MffContext context, int resourceId, FilterGraph parentGraph) in readXmlSubGraphResource() argument
552 FilterGraph.Builder builder = getBuilderForXmlResource(context, resourceId); in readXmlSubGraphResource()
565 private static FilterGraph.Builder getBuilderForXmlResource(MffContext context, int resourceId) in getBuilderForXmlResource() argument
568 .openRawResource(resourceId); in getBuilderForXmlResource()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DBridgeInflater.java372 Integer resourceId = null; in setupViewInContext() local
378 resourceId = Bridge.getResourceId(resValue.getResourceType(), in setupViewInContext()
381 resourceId = mLayoutlibCallback.getResourceId(resValue.getResourceType(), in setupViewInContext()
385 if (resourceId == null) { in setupViewInContext()
386 resourceId = 0; in setupViewInContext()
388 RecyclerViewUtil.setAdapter(view, bc, mLayoutlibCallback, resourceId); in setupViewInContext()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBackgroundHelper.java150 final int resourceId = (Integer) imageToken; in loadBitmap() local
151 if (DEBUG) Log.v(TAG, "load resourceId " + resourceId); in loadBitmap()
152 Drawable drawable = ContextCompat.getDrawable(mActivity, resourceId); in loadBitmap()
/frameworks/base/media/mca/filterfw/java/android/filterfw/
DGraphEnvironment.java131 public int loadGraph(Context context, int resourceId) { in loadGraph() argument
135 graph = getGraphReader().readGraphResource(context, resourceId); in loadGraph()

123456