Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 23 of 23) sorted by relevance

/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DConfirmationDialogFragment.java40 public static ConfirmationDialogFragment newInstance(String[] resources) { in newInstance() argument
43 args.putStringArray(ARG_RESOURCES, resources); in newInstance()
51 final String[] resources = getArguments().getStringArray(ARG_RESOURCES); in onCreateDialog() local
53 .setMessage(getString(R.string.confirmation, TextUtils.join("\n", resources))) in onCreateDialog()
57 ((Listener) getParentFragment()).onConfirmation(false, resources); in onCreateDialog()
63 ((Listener) getParentFragment()).onConfirmation(true, resources); in onCreateDialog()
80 void onConfirmation(boolean allowed, String[] resources);
DPermissionRequestFragment.java209 public void onConfirmation(boolean allowed, String[] resources) { in onConfirmation() argument
211 mPermissionRequest.grant(resources); in onConfirmation()
/development/tools/findunused/
Dfindunusedresources9 -p option prints out unused resources, otherwise a total count is printed
39 resources=
42resources="$resources $(echo $res | grep -v '\-mcc\|[a-z]*-[a-z][a-z]$\|[a-z]*-[a-z][a-z]-.*')"
62 …find $resources $sources $app/AndroidManifest.xml -type f -print |xargs cat | tr -d '\n ' > /tmp/e…
/development/samples/devbytes/animation/ActivityAnimations/src/com/example/android/activityanim/
DBitmapUtils.java59 public ArrayList<PictureData> loadPhotos(Resources resources) { in loadPhotos() argument
63 Bitmap bitmap = getBitmap(resources, resourceId); in loadPhotos()
75 static Bitmap getBitmap(Resources resources, int resourceId) { in getBitmap() argument
78 bitmap = BitmapFactory.decodeResource(resources, resourceId); in getBitmap()
DActivityAnimations.java69 Resources resources = getResources(); in onCreate() local
70 ArrayList<PictureData> pictures = mBitmapUtils.loadPhotos(resources); in onCreate()
74 new BitmapDrawable(resources, pictureData.thumbnail); in onCreate()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DInteractiveWatchFaceService.java91 Resources resources = InteractiveWatchFaceService.this.getResources(); in onCreate() local
92 mTextSpacingHeight = resources.getDimension(R.dimen.interactive_text_size); in onCreate()
115 Resources resources = InteractiveWatchFaceService.this.getResources(); in onApplyWindowInsets() local
117 mXOffset = resources.getDimension( in onApplyWindowInsets()
119 mYOffset = resources.getDimension( in onApplyWindowInsets()
122 float textSize = resources.getDimension( in onApplyWindowInsets()
DFitDistanceWatchFaceService.java207 Resources resources = getResources(); in onCreate() local
209 mYOffset = resources.getDimension(R.dimen.fit_y_offset); in onCreate()
210 mLineHeight = resources.getDimension(R.dimen.fit_line_height); in onCreate()
211 mAmString = resources.getString(R.string.fit_am); in onCreate()
212 mPmString = resources.getString(R.string.fit_pm); in onCreate()
294 Resources resources = FitDistanceWatchFaceService.this.getResources(); in onApplyWindowInsets() local
296 mXOffset = resources.getDimension(isRound in onApplyWindowInsets()
299 resources.getDimension( in onApplyWindowInsets()
303 float textSize = resources.getDimension(isRound in onApplyWindowInsets()
305 float amPmSize = resources.getDimension(isRound in onApplyWindowInsets()
[all …]
DFitStepsWatchFaceService.java204 Resources resources = getResources(); in onCreate() local
206 mYOffset = resources.getDimension(R.dimen.fit_y_offset); in onCreate()
207 mLineHeight = resources.getDimension(R.dimen.fit_line_height); in onCreate()
208 mAmString = resources.getString(R.string.fit_am); in onCreate()
209 mPmString = resources.getString(R.string.fit_pm); in onCreate()
293 Resources resources = FitStepsWatchFaceService.this.getResources(); in onApplyWindowInsets() local
295 mXOffset = resources.getDimension(isRound in onApplyWindowInsets()
297 mXStepsOffset = resources.getDimension(isRound in onApplyWindowInsets()
299 float textSize = resources.getDimension(isRound in onApplyWindowInsets()
301 float amPmSize = resources.getDimension(isRound in onApplyWindowInsets()
[all …]
DDigitalWatchFaceService.java196 Resources resources = DigitalWatchFaceService.this.getResources(); in onCreate() local
197 mYOffset = resources.getDimension(R.dimen.digital_y_offset); in onCreate()
198 mLineHeight = resources.getDimension(R.dimen.digital_line_height); in onCreate()
199 mAmString = resources.getString(R.string.digital_am); in onCreate()
200 mPmString = resources.getString(R.string.digital_pm); in onCreate()
299 Resources resources = DigitalWatchFaceService.this.getResources(); in onApplyWindowInsets() local
301 mXOffset = resources.getDimension(isRound in onApplyWindowInsets()
303 float textSize = resources.getDimension(isRound in onApplyWindowInsets()
305 float amPmSize = resources.getDimension(isRound in onApplyWindowInsets()
308 mDatePaint.setTextSize(resources.getDimension(R.dimen.digital_date_text_size)); in onApplyWindowInsets()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DAdapters.java620 Resources resources = mResources; in parse() local
621 TypedArray a = resources.obtainAttributes(mAttrs, R.styleable.CursorAdapter); in parse()
629 resources.getResourceEntryName(mId) + " does not exist"); in parse()
653 resources.getResourceEntryName(mId)); in parse()
693 Resources resources = mResources; in parseBindTag() local
694 TypedArray a = resources.obtainAttributes(mAttrs, in parseBindTag()
700 resources.getResourceEntryName(mId) + " does not have a 'from' attribute"); in parseBindTag()
706 resources.getResourceEntryName(mId) + " does not have a 'to' attribute"); in parseBindTag()
712 resources.getResourceEntryName(mId) + " does not have an 'as' attribute"); in parseBindTag()
800 Resources resources = mResources; in findMap() local
[all …]
/development/tools/bugreport/
DAndroid.bp9 java_resource_dirs: ["resources"],
/development/apps/WidgetPreview/src/com/android/widgetpreview/
DWidgetPreviewActivity.java200 Resources resources = getResources(); in getLauncherCellDimensions() local
201 int cellWidth = resources.getDimensionPixelSize(R.dimen.workspace_cell_width); in getLauncherCellDimensions()
202 int cellHeight = resources.getDimensionPixelSize(R.dimen.workspace_cell_height); in getLauncherCellDimensions()
203 int widthGap = resources.getDimensionPixelSize(R.dimen.workspace_width_gap); in getLauncherCellDimensions()
204 int heightGap = resources.getDimensionPixelSize(R.dimen.workspace_height_gap); in getLauncherCellDimensions()
205 int previewCellSize = resources.getDimensionPixelSize(R.dimen.preview_cell_size); in getLauncherCellDimensions()
/development/tools/privapp_permissions/
Dprivapp_permissions.py398 def create_permission_file(resources): argument
402 base_xml_files = itertools.chain(list_xml_files(resources.permissions_dir),
403 list_xml_files(resources.sysconfig_dir))
407 priv_permissions = extract_priv_permissions(resources.aapt,
408 resources.framework_res_apk)
412 for priv_app in resources.privapp_apks:
413 pkg_info = extract_pkg_and_requested_permissions(resources.aapt,
/development/samples/training/testingfun/app/
Dbuild.gradle16 resources.srcDirs = ['src']
/development/samples/SkeletonApp/
Dreadme.txt36 Under this directory are the resources for your application.
62 These XML files describe additional resources included in the application.
63 They all use the same syntax; all of these resources could be defined in one
/development/samples/ApiDemos/src/com/example/android/apis/content/
DResourcesSample.java47 setContentView(R.layout.resources); in onCreate()
/development/samples/TicTacToeMain/
DREADME.txt27 and Android resources (anything under /res) that will be merged in the final
34 JAR file: the source and resources from the library are _actually_ merged in
/development/tools/checkcolor/src/main/java/com/google/checkcolor/lint/
DHardcodedColorDetector.java22 import com.android.ide.common.resources.ResourceUrl;
23 import com.android.resources.ResourceFolderType;
24 import com.android.resources.ResourceType;
/development/samples/browseable/DrawableTinting/
D_index.jd9 and as Drawable resources in XML.
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DDictionaryDatabase.java204 final Resources resources = mHelperContext.getResources(); in loadWords() local
205 InputStream inputStream = resources.openRawResource(R.raw.definitions); in loadWords()
/development/apps/GestureBuilder/src/com/android/gesture/builder/
DGestureBuilderActivity.java327 final Resources resources = getResources(); in onPreExecute() local
328 mPathColor = resources.getColor(R.color.gesture_color); in onPreExecute()
329 mThumbnailInset = (int) resources.getDimension(R.dimen.gesture_thumbnail_inset); in onPreExecute()
330 mThumbnailSize = (int) resources.getDimension(R.dimen.gesture_thumbnail_size); in onPreExecute()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameControllerInput.java352 public SummaryAdapter(Context context, Resources resources) { in SummaryAdapter() argument
354 mResources = resources; in SummaryAdapter()
/development/samples/SearchableDictionary/res/raw/
Ddefinitions.txt187 consume - v. use up (resources or materials)