/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/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/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | Constants.java | 27 public static final BySelector TV_VIEW = By.res(TV_APP_PACKAGE, "main_tunable_tv_view"); 28 public static final BySelector CHANNEL_BANNER = By.res(TV_APP_PACKAGE, "channel_banner_view"); 29 public static final BySelector KEYPAD_CHANNEL_SWITCH = By.res(TV_APP_PACKAGE, "channel_number"); 30 public static final BySelector MENU = By.res(TV_APP_PACKAGE, "menu"); 31 public static final BySelector SIDE_PANEL = By.res(TV_APP_PACKAGE, "side_panel"); 32 public static final BySelector PROGRAM_GUIDE = By.res(TV_APP_PACKAGE, "program_guide");
|
/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/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/services/Telephony/src/com/android/phone/ |
H A D | CarrierLogo.java | 48 Integer res = getLogoMap().get(name); 49 if (res != null) { 50 return res.intValue();
|
/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/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
|
/packages/services/Car/car-support-lib/src/android/support/car/ui/ |
H A D | CarUiResourceLoader.java | 20 import android.content.res.Resources; 42 Resources res; 44 res = context.getPackageManager().getResourcesForApplication(CAR_UI_PACKAGE); 50 int id = res.getIdentifier(drawableName, DRAWABLE, CAR_UI_PACKAGE); 56 return res.getDrawable(id, null); 58 return res.getDrawableForDensity(id, metrics.densityDpi, null); 64 Resources res; 66 res = context.getPackageManager().getResourcesForApplication(CAR_UI_PACKAGE); 72 int id = res.getIdentifier(boolName, BOOL, CAR_UI_PACKAGE); 77 return res [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/bitmap/ |
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);
|
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);
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
H A D | PresetSettingsListener.java | 21 import android.content.res.Resources; 38 final Resources res = mContext.getResources(); 42 newValues = res.getIntArray(R.array.standard_setting_values); 45 newValues = res.getIntArray(R.array.cinema_setting_values); 48 newValues = res.getIntArray(R.array.vivid_setting_values); 51 newValues = res.getIntArray(R.array.game_setting_values); 57 final String[] keys = res.getStringArray(R.array.setting_keys);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | PreferencesSettingsFragment.java | 21 import android.content.res.Resources; 51 final Resources res = getResources(); 59 final boolean showVoiceKeyOption = res.getBoolean( 67 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 88 final Resources res = getResources(); 91 Settings.readKeyPreviewPopupEnabled(prefs, res)); 98 final Resources res = getResources(); 100 Settings.readVibrationEnabled(prefs, res)); 102 Settings.readKeypressSoundEnabled(prefs, res));
|
H A D | AdvancedSettingsFragment.java | 21 import android.content.res.Resources; 49 final Resources res = getResources(); 68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 74 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger( 77 res.getString(R.string.key_preview_popup_dismiss_no_delay), 78 res.getString(R.string.key_preview_popup_dismiss_default_delay), 88 Settings.readKeyPreviewPopupEnabled(prefs, res)); 106 final Resources res = getResources(); 109 Settings.readKeyPreviewPopupEnabled(prefs, res)); 119 final Resources res [all...] |
H A D | Settings.java | 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 180 protected SettingsValues job(final Resources res) { 181 return new SettingsValues(context, prefs, res, inputAttributes); 199 public static int readScreenMetrics(final Resources res) { argument 200 return res.getInteger(R.integer.config_screen_metrics); 205 final Resources res) { 207 res.getBoolean(R.bool.config_default_sound_enabled)); 211 final Resources res) { 214 res 204 readKeypressSoundEnabled(final SharedPreferences prefs, final Resources res) argument 210 readVibrationEnabled(final SharedPreferences prefs, final Resources res) argument 217 readAutoCorrectEnabled(final SharedPreferences prefs, final Resources res) argument 222 readPlausibilityThreshold(final Resources res) argument 226 readBlockPotentiallyOffensive(final SharedPreferences prefs, final Resources res) argument 232 readFromBuildConfigIfGestureInputEnabled(final Resources res) argument 236 readGestureInputEnabled(final SharedPreferences prefs, final Resources res) argument 242 readFromBuildConfigIfToShowKeyPreviewPopupOption(final Resources res) argument 246 readKeyPreviewPopupEnabled(final SharedPreferences prefs, final Resources res) argument 256 readKeyPreviewPopupDismissDelay(final SharedPreferences prefs, final Resources res) argument 275 readPrefAdditionalSubtypes(final SharedPreferences prefs, final Resources res) argument 287 readKeypressSoundVolume(final SharedPreferences prefs, final Resources res) argument 299 readDefaultKeypressSoundVolume(final Resources res) argument 304 readKeyLongpressTimeout(final SharedPreferences prefs, final Resources res) argument 312 readDefaultKeyLongpressTimeout(final Resources res) argument 316 readKeypressVibrationDuration(final SharedPreferences prefs, final Resources res) argument 328 readDefaultKeypressVibrationDuration(final Resources res) argument 352 readUseFullscreenMode(final Resources res) argument 442 upgradeAutocorrectionSettings(final SharedPreferences prefs, final Resources res) argument [all...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | WidgetUtils.java | 21 import android.content.res.Configuration; 22 import android.content.res.Resources; 56 Resources res = context.getResources(); 57 float density = res.getDisplayMetrics().density; 58 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 69 if (res.getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT) { 96 Resources res = context.getResources(); 97 float density = res.getDisplayMetrics().density; 98 float ratio = density * minHeight / res.getDimension(R.dimen.min_digital_widget_height); 99 if (res [all...] |
/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/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/PackageInstaller/ |
H A D | Android.mk | 20 frameworks/support/v17/leanback/res \ 21 frameworks/support/v7/preference/res \ 22 frameworks/support/v14/preference/res \ 23 frameworks/support/v17/preference-leanback/res \ 24 frameworks/support/v7/appcompat/res \ 25 frameworks/support/v7/recyclerview/res \ 26 $(LOCAL_PATH)/res
|
/packages/apps/TvSettings/QuickSettings/ |
H A D | Android.mk | 14 frameworks/support/v17/leanback/res \ 15 frameworks/support/v7/preference/res \ 16 frameworks/support/v14/preference/res \ 17 frameworks/support/v17/preference-leanback/res \ 18 frameworks/support/v7/appcompat/res \ 19 frameworks/support/v7/recyclerview/res \ 20 $(LOCAL_PATH)/res
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | FolderDisplayer.java | 21 import android.content.res.Resources; 70 final Resources res = mContext.getResources(); 72 res.getColor(R.color.default_folder_foreground_color); 74 res.getColor(R.color.default_folder_background_color); 76 res.getDimensionPixelOffset(R.dimen.folder_rounded_corner_radius); 78 res.getDimensionPixelOffset(R.dimen.folder_start_padding); 184 Folder f, FolderDisplayer.FolderDrawableResources res, BidiFormatter formatter, 187 f.getForegroundColor(res.defaultFgColor), f.getBackgroundColor(res.defaultBgColor), 188 res, formatte 183 drawFolder(Canvas canvas, float x, float y, int width, int height, Folder f, FolderDisplayer.FolderDrawableResources res, BidiFormatter formatter, Paint paint) argument 191 drawFolder(Canvas canvas, float x, float y, int width, int height, String name, int fgColor, int bgColor, FolderDisplayer.FolderDrawableResources res, BidiFormatter formatter, Paint paint) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | AccountPreference.java | 92 int res; 95 res = R.string.sync_enabled; 98 res = R.string.sync_disabled; 101 res = R.string.sync_error; 104 res = R.string.sync_in_progress; 107 res = R.string.sync_error; 110 return res; 114 int res; 118 res = R.drawable.ic_settings_sync; 121 res [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/ |
H A D | EmojiLayoutParams.java | 19 import android.content.res.Resources; 40 public EmojiLayoutParams(final Resources res) { argument 41 final int defaultKeyboardHeight = ResourceUtils.getDefaultKeyboardHeight(res); 42 final int defaultKeyboardWidth = ResourceUtils.getDefaultKeyboardWidth(res); 43 mKeyVerticalGap = (int) res.getFraction(R.fraction.config_key_vertical_gap_holo, 45 mBottomPadding = (int) res.getFraction(R.fraction.config_keyboard_bottom_padding_holo, 47 mTopPadding = (int) res.getFraction(R.fraction.config_keyboard_top_padding_holo, 49 mKeyHorizontalGap = (int) (res.getFraction(R.fraction.config_key_horizontal_gap_holo, 52 (int) (res.getDimension(R.dimen.config_emoji_category_page_id_height));
|
/packages/apps/DeskClock/ |
H A D | Android.mk | 4 LOCAL_RESOURCE_DIR := packages/apps/DeskClock/res 5 LOCAL_RESOURCE_DIR += frameworks/opt/datetimepicker/res 8 LOCAL_RESOURCE_DIR += frameworks/support/design/res 9 LOCAL_RESOURCE_DIR += frameworks/support/v7/appcompat/res 10 LOCAL_RESOURCE_DIR += frameworks/support/v7/gridlayout/res 11 LOCAL_RESOURCE_DIR += frameworks/support/v7/recyclerview/res 13 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/design/res 14 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/appcompat/res 15 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/gridlayout/res 16 LOCAL_RESOURCE_DIR += prebuilts/sdk/current/support/v7/recyclerview/res [all...] |