Searched refs:resources (Results 1 - 25 of 64) sorted by relevance

123

/frameworks/base/graphics/java/android/renderscript/
H A DScriptC.java53 * @param resources
56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument
58 int id = internalCreate(rs, resources, resourceID);
66 private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceID) { argument
69 InputStream is = resources.openRawResource(resourceID);
95 String resName = resources.getResourceEntryName(resourceID);
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/
H A DScriptC.java53 * @param resources
56 protected ScriptC(RenderScript rs, Resources resources, int resourceID) { argument
58 int id = internalCreate(rs, resources, resourceID);
66 private static synchronized int internalCreate(RenderScript rs, Resources resources, int resourceID) { argument
69 InputStream is = resources.openRawResource(resourceID);
95 String resName = resources.getResourceEntryName(resourceID);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DStatusBar.java19 import com.android.resources.Density;
20 import com.android.resources.ResourceType;
H A DFakeActionBar.java19 import com.android.resources.Density;
H A DNavigationBar.java19 import com.android.resources.Density;
H A DTitleBar.java19 import com.android.resources.Density;
/frameworks/base/tools/layoutlib/bridge/
H A DAndroid.mk20 LOCAL_JAVA_RESOURCE_DIRS := resources
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationPanelView.java52 Resources resources = getContext().getResources();
53 mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
54 mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
57 setContentDescription(resources.getString(R.string.accessibility_desc_notification_shade));
H A DSettingsPanelView.java57 Resources resources = getContext().getResources();
58 mHandleBar = resources.getDrawable(R.drawable.status_bar_close);
59 mHandleBarHeight = resources.getDimensionPixelSize(R.dimen.close_handle_height);
62 setContentDescription(resources.getString(R.string.accessibility_desc_quick_settings));
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DThinPatchesActivity.java53 final Resources resources = activity.getResources();
54 mPatch1 = resources.getDrawable(R.drawable.patch);
55 mPatch2 = resources.getDrawable(R.drawable.btn_toggle_on);
56 mPatch3 = resources.getDrawable(R.drawable.patch2);
/frameworks/base/
H A DAndroid.mk18 # We have a special case here where we build the library's resources
20 # class source got placed in the course of building the resources.
448 resources/samples/AccelerometerPlay "Accelerometer Play" \
450 resources/samples/ActionBarCompat "Action Bar Compatibility" \
452 resources/samples/AndroidBeamDemo "Android Beam Demo" \
454 resources/samples/ApiDemos "API Demos" \
456 resources/samples/Support4Demos "API 4+ Support Demos" \
458 resources/samples/Support13Demos "API 13+ Support Demos" \
460 resources/samples/BackupRestore "Backup and Restore" \
462 resources/sample
[all...]
/frameworks/base/core/java/android/view/
H A DPointerIcon.java36 * or by applications using bitmaps or application resources.
135 Log.w(TAG, "Missing theme resources for pointer icon style " + style);
187 * @param resources The resources object.
191 * @throws IllegalArgumentException if resources is null.
195 public static PointerIcon loadCustomIcon(Resources resources, int resourceId) { argument
196 if (resources == null) {
197 throw new IllegalArgumentException("resources must not be null");
201 icon.loadResource(resources, resourceId);
376 private void loadResource(Resources resources, in argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DDateSorter.java53 Resources resources = context.getResources();
69 Locale locale = resources.getConfiguration().locale;
78 String format = resources.getQuantityString(resId, NUM_DAYS_AGO);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
H A DVertexShader.java42 public Builder setShader(Resources resources, int resourceID) { argument
43 mBuilder.setShader(resources, resourceID);
H A DFragmentShader.java46 public Builder setShader(Resources resources, int resourceID) { argument
47 mBuilder.setShader(resources, resourceID);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderSessionImpl.java52 import com.android.resources.ResourceType;
53 import com.android.resources.ScreenOrientation;
179 RenderResources resources = getParams().getResources();
183 mIsAlphaChannelImage = getBooleanThemeValue(resources,
186 mWindowIsFloating = getBooleanThemeValue(resources, "windowIsFloating",
189 findBackground(resources);
190 findStatusBar(resources, metrics);
191 findActionBar(resources, metrics);
192 findNavigationBar(resources, metrics);
1018 private void findBackground(RenderResources resources) { argument
1032 findStatusBar(RenderResources resources, DisplayMetrics metrics) argument
1055 findActionBar(RenderResources resources, DisplayMetrics metrics) argument
1116 findNavigationBar(RenderResources resources, DisplayMetrics metrics) argument
1172 getBooleanThemeValue(RenderResources resources, String name, boolean defaultValue) argument
[all...]
H A DRenderAction.java31 import com.android.resources.Density;
32 import com.android.resources.ResourceType;
33 import com.android.resources.ScreenSize;
119 RenderResources resources = mParams.getResources();
122 mContext = new BridgeContext(mParams.getProjectKey(), metrics, resources,
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/
H A DPerformanceTest.java50 Resources resources = mWeb.getResources();
51 String animFramerateString = resources.getString(R.string.animation_framerate);
83 String metricLabel = resources.getString(
85 String statLabel = resources.getString(
H A DPlaybackGraphs.java276 ArrayList<String> strings, Resources resources) {
286 String label = resources.getString(
292 String statLabel = resources.getString(
294 label = statLabel + " " + resources.getString(
275 draw(Canvas canvas, ArrayList<ShapeDrawable> shapes, ArrayList<String> strings, Resources resources) argument
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java25 import com.android.resources.ResourceType;
258 RenderResources resources = mContext.getRenderResources();
259 return resources.resolveResValue(resources.findResValue(value, mPlatformFile));
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DDynamicIdMap.java19 import com.android.resources.ResourceType;
/frameworks/base/core/java/android/widget/
H A DTabWidget.java119 final Resources resources = context.getResources();
126 mLeftStrip = resources.getDrawable(
130 mRightStrip = resources.getDrawable(
136 mLeftStrip = resources.getDrawable(
140 mRightStrip = resources.getDrawable(
/frameworks/base/core/java/android/text/
H A DAutoText.java76 private AutoText(Resources resources) { argument
77 mLocale = resources.getConfiguration().locale;
78 init(resources);
84 * @param view to get the resources from
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java93 final Resources resources = context.getResources();
95 final String[] specialLocaleCodes = resources.getStringArray(R.array.special_locale_codes);
96 final String[] specialLocaleNames = resources.getStringArray(R.array.special_locale_names);
/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DIconUtilities.java70 final Resources resources = context.getResources();
71 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics();
75 mIconWidth = mIconHeight = (int) resources.getDimension(android.R.dimen.app_icon_size);

Completed in 5549 milliseconds

123