/packages/apps/Nfc/nci/jni/ |
H A D | Mutex.cpp | 40 int res = pthread_mutex_init (&mMutex, NULL); local 41 if (res != 0) 43 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 59 int res = pthread_mutex_destroy (&mMutex); local 60 if (res != 0) 62 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res); 78 int res = pthread_mutex_lock (&mMutex); local 79 if (res != 0) 81 ALOGE ("Mutex::lock: fail lock; error=0x%X", res); 97 int res local 116 int res = pthread_mutex_trylock (&mMutex); local [all...] |
H A D | CondVar.cpp | 44 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 D | TransitionUtils.java | 20 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/ContactsCommon/src/com/android/contacts/common/compat/ |
H A D | EventCompat.java | 19 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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | ViewUtil.java | 19 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/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | RefcountBitmapDrawable.java | 19 import android.content.res.Resources; 30 public RefcountBitmapDrawable(Resources res, RefcountObject<Bitmap> bitmap) { argument 31 super(res, bitmap.getObject()); 38 public RefcountBitmapDrawable(Resources res, RefcountBitmapDrawable drawable) { argument 39 this(res, drawable.getRefcountObject());
|
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
H A D | AccountAvatarDrawable.java | 18 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 D | ColorPicker.java | 19 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 D | EmptyStateUtils.java | 20 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 D | ResourceWallpaperInfo.java | 3 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 D | RunInLocale.java | 19 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/ContactsCommon/src/com/android/contacts/common/preference/ |
H A D | ContactsPreferenceActivity.java | 94 private void setActivityTitle(int res) { argument 97 actionBar.setTitle(res);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | OrientedBitmapDrawable.java | 19 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 D | ViewUtil.java | 19 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 D | Util.java | 23 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 D | ChartAxis.java | 19 import android.content.res.Resources; 42 public long buildLabel(Resources res, SpannableStringBuilder builder, long value); argument
|
H A D | InvertedChartAxis.java | 19 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/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | IconUtilities.java | 19 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 D | ImageFilterSharpen.java | 64 protected void createFilter(android.content.res.Resources res, float scaleFactor, argument
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | AddAdapter.java | 20 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 D | IconListPreference.java | 20 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 D | AccessibilityUtil.java | 19 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 D | TimeListAdapter.java | 19 import android.content.res.Resources; 43 public TimeListAdapter(Resources res) { argument 45 sRowHeaderOverlapping = Math.abs(res.getDimensionPixelOffset(
|
/packages/apps/TV/usbtuner/jni/ |
H A D | tunertvinput_jni.cpp | 66 int res = dvbManager->tune(env, thiz, local 68 return (res == 0);
|
/packages/apps/Test/connectivity/sl4n/facades/wifi/ |
H A D | wifi_facade.cpp | 60 wifi_error res = init_wifi_vendor_hal_func_table(&hal_fn); local 61 if (res != WIFI_SUCCESS) { 72 res = hal_fn.wifi_initialize(&wifi_hal_handle); 73 return res == WIFI_SUCCESS;
|