Searched defs:res (Results 1 - 25 of 111) sorted by relevance

12345

/packages/apps/Contacts/src/com/android/contacts/compat/
H A DEventCompat.java19 import android.content.res.Resources;
38 public static CharSequence getTypeLabel(Resources res, int type, CharSequence label) { argument
40 return Event.getTypeLabel(res, type, label);
42 return getTypeLabelInternal(res, type, label);
50 private static CharSequence getTypeLabelInternal(Resources res, int type, CharSequence label) { argument
54 return res.getText(Event.getTypeResource(type));
/packages/apps/Nfc/nci/jni/
H A DMutex.cpp41 int res = pthread_mutex_init (&mMutex, NULL); local
42 if (res != 0)
44 ALOGE("Mutex::Mutex: fail init; error=0x%X", res);
60 int res = pthread_mutex_destroy (&mMutex); local
61 if (res != 0)
63 ALOGE("Mutex::~Mutex: fail destroy; error=0x%X", res);
79 int res = pthread_mutex_lock (&mMutex); local
80 if (res != 0)
82 ALOGE("Mutex::lock: fail lock; error=0x%X", res);
98 int res local
117 int res = pthread_mutex_trylock (&mMutex); local
[all...]
H A DCondVar.cpp44 int const res = pthread_cond_init (&mCondition, &attr); local
45 if (res)
47 ALOGE("CondVar::CondVar: fail init; error=0x%X", res);
63 int const res = pthread_cond_destroy (&mCondition); local
64 if (res)
66 ALOGE("CondVar::~CondVar: fail destroy; error=0x%X", res);
82 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle()); local
83 if (res)
85 ALOGE("CondVar::wait: fail wait; error=0x%X", res);
141 int const res local
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
H A DTransitionUtils.java20 import android.content.res.Resources;
34 public static ObjectAnimator createActivityFadeInAnimator(Resources res, boolean useFloats) { argument
36 res.getValue(R.dimen.alpha_activity_in_bkg_start, startAlpha, true);
39 res.getValue(R.dimen.alpha_activity_in_bkg_end, endAlpha, true);
49 animator.setDuration(res.getInteger(R.integer.alpha_activity_in_bkg_duration));
50 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_in_bkg_delay));
54 public static ObjectAnimator createActivityFadeOutAnimator(Resources res, boolean useFloats) { argument
56 res.getValue(R.dimen.alpha_activity_out_bkg_start, startAlpha, true);
59 res.getValue(R.dimen.alpha_activity_out_bkg_end, endAlpha, true);
69 animator.setDuration(res
[all...]
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DRefcountBitmapDrawable.java18 import android.content.res.Resources;
33 public RefcountBitmapDrawable(Resources res, RefcountObject<Bitmap> bitmap) { argument
34 super(res, bitmap.getObject());
41 public RefcountBitmapDrawable(Resources res, RefcountBitmapDrawable drawable) { argument
42 this(res, drawable.getRefcountObject());
H A DCircleBitmapDrawable.java18 import android.content.res.Resources;
46 public CircleBitmapDrawable(@NonNull Resources res, @NonNull Bitmap bitmap) { argument
48 mResources = res;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DViewUtil.java19 import android.content.res.Resources;
92 * @param res The resources file.
94 public static void addRectangularOutlineProvider(View view, Resources res) { argument
103 * @param res The resources file.
105 public static void setupFloatingActionButton(View view, Resources res) { argument
109 res.getDimensionPixelSize(R.dimen.floating_action_button_translation_z));
118 * @param res valid resources object
120 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument
121 final int fabPadding = res.getDimensionPixelSize(
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/
H A DAccountAvatarDrawable.java18 import android.content.res.Resources;
32 public AccountAvatarDrawable(final Resources res, final BitmapCache cache, argument
34 super(res);
39 DEFAULT_AVATAR = BitmapFactory.decodeResource(res, R.drawable.avatar_placeholder_gray);
H A DColorPicker.java19 import android.content.res.Resources;
20 import android.content.res.TypedArray;
49 * a {@link android.content.res.ColorStateList}.
53 public PaletteColorPicker(Resources res) { argument
55 sColors = res.obtainTypedArray(R.array.letter_tile_colors);
57 sDefaultColor = res.getColor(R.color.letter_tile_default_color);
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DEmptyStateUtils.java20 import android.content.res.Resources;
55 public static void bindEmptyFolderText(TextView view, Folder folder, Resources res, argument
62 final String text = res.getString(R.string.empty_search,
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/
H A DResourceWallpaperInfo.java3 import android.content.res.Resources;
18 public ResourceWallpaperInfo(Resources res, int resId, Drawable thumb) { argument
20 mResources = res;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DRunInLocale.java19 import android.content.res.Configuration;
20 import android.content.res.Resources;
27 protected abstract T job(final Resources res); argument
32 * @param res the resources to use.
36 public T runInLocale(final Resources res, final Locale newLocale) { argument
38 final Configuration conf = res.getConfiguration();
40 return job(res);
45 res.updateConfiguration(conf, null);
46 return job(res);
49 res
[all...]
/packages/apps/Dialer/java/com/android/voicemail/impl/
H A DSubscriptionInfoHelper.java19 import android.content.res.Resources;
58 public void setActionBarTitle(ActionBar actionBar, Resources res, int resId) { argument
63 String title = String.format(res.getString(resId), mSubLabel);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DOrientedBitmapDrawable.java19 import android.content.res.Resources;
41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) { argument
44 return new BitmapDrawable(res, bitmap);
47 return new OrientedBitmapDrawable(orientation, res, bitmap);
51 private OrientedBitmapDrawable(final int orientation, Resources res, Bitmap bitmap) { argument
52 super(res, bitmap);
/packages/apps/PhoneCommon/src/com/android/phone/common/util/
H A DViewUtil.java19 import android.content.res.Resources;
72 * @param res The resources file.
74 public static void setupFloatingActionButton(View view, Resources res) { argument
77 res.getDimensionPixelSize(R.dimen.floating_action_button_translation_z));
85 * @param res valid resources object
87 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument
88 final int fabPadding = res.getDimensionPixelSize(
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
H A DUtil.java23 import android.content.res.Resources;
47 public static Uri getResourceUri(Context packageContext, int res) { argument
50 return getResourceUri(resources, packageContext.getPackageName(), res);
52 Log.e(TAG, "Resource not found: " + res + " in " + packageContext.getPackageName());
57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { argument
60 return getResourceUri(resources, appInfo.packageName, res);
65 Log.e(TAG, "Resource not found: " + res + " in " + appInfo.packageName);
70 private static Uri getResourceUri(Resources resources, String appPkg, int res) argument
72 String resPkg = resources.getResourcePackageName(res);
73 String type = resources.getResourceTypeName(res);
[all...]
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartAxis.java19 import android.content.res.Resources;
42 public long buildLabel(Resources res, SpannableStringBuilder builder, long value); argument
H A DInvertedChartAxis.java19 import android.content.res.Resources;
55 public long buildLabel(Resources res, SpannableStringBuilder builder, long value) { argument
56 return mWrapped.buildLabel(res, builder, value);
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
H A DTestUtils.java65 * Find {@link android.widget.EditText} with {@code res} and set its {@code value}
67 public static void setEditTextWithValue(UiDevice uiDevice, String res, long value) { argument
68 final UiObject2 editText = uiDevice.findObject(By.res(res));
69 assertWithMessage("Cannot find editText with res: " + res).that(editText).isNotNull();
74 * Find {@link android.widget.Button} with {@code res} and click it
76 public static void clickButton(UiDevice uiDevice, String res) { argument
77 final UiObject2 button = uiDevice.findObject(By.res(res));
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DIconUtilities.java19 import android.content.res.Resources;
36 public static Bitmap getFXBitmap(Resources res, int id) { argument
42 return BitmapFactory.decodeResource(res, id, o);
47 public static Bitmap loadBitmap(Resources res, int resource) { argument
52 res,
H A DImageFilterSharpen.java64 protected void createFilter(android.content.res.Resources res, float scaleFactor, argument
/packages/apps/Launcher2/src/com/android/launcher2/
H A DAddAdapter.java20 import android.content.res.Resources;
54 public ListItem(Resources res, int textResourceId, int imageResourceId, int actionTag) { argument
55 text = res.getString(textResourceId);
57 image = res.getDrawable(imageResourceId);
71 Resources res = launcher.getResources();
73 mItems.add(new ListItem(res, R.string.group_wallpapers,
/packages/apps/LegacyCamera/src/com/android/camera/
H A DIconListPreference.java20 import android.content.res.Resources;
21 import android.content.res.TypedArray;
39 Resources res = context.getResources();
42 mIconIds = getIds(res, a.getResourceId(
44 mLargeIconIds = getIds(res, a.getResourceId(
46 mImageIds = getIds(res, a.getResourceId(
75 private int[] getIds(Resources res, int iconsRes) { argument
77 TypedArray array = res.obtainTypedArray(iconsRes);
/packages/apps/Messaging/src/com/android/messaging/util/
H A DAccessibilityUtil.java19 import android.content.res.Resources;
111 public static String getVocalizedPhoneNumber(final Resources res, final String phoneNumber) { argument
117 getVocalizedNumber(res, c, vocalizedPhoneNumber);
122 public static void getVocalizedNumber(final Resources res, final char c, argument
126 builder.append(res.getString(R.string.content_description_for_number_zero));
130 builder.append(res.getString(R.string.content_description_for_number_one));
134 builder.append(res.getString(R.string.content_description_for_number_two));
138 builder.append(res.getString(R.string.content_description_for_number_three));
142 builder.append(res.getString(R.string.content_description_for_number_four));
146 builder.append(res
[all...]
/packages/apps/TV/src/com/android/tv/guide/
H A DTimeListAdapter.java20 import android.content.res.Resources;
54 TimeListAdapter(Resources res) { argument
56 sRowHeaderOverlapping = Math.abs(res.getDimensionPixelOffset(
59 Locale locale = res.getConfiguration().locale;

Completed in 7834 milliseconds

12345