/packages/apps/Nfc/nci/jni/ |
H A D | Mutex.cpp | 37 int res = pthread_mutex_init (&mMutex, NULL); local 38 if (res != 0) 40 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 56 int res = pthread_mutex_destroy (&mMutex); local 57 if (res != 0) 59 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res); 75 int res = pthread_mutex_lock (&mMutex); local 76 if (res != 0) 78 ALOGE ("Mutex::lock: fail lock; error=0x%X", res); 94 int res local 113 int res = pthread_mutex_trylock (&mMutex); local [all...] |
H A D | CondVar.cpp | 38 int const res = pthread_cond_init (&mCondition, NULL); local 39 if (res) 41 ALOGE ("CondVar::CondVar: fail init; error=0x%X", res); 57 int const res = pthread_cond_destroy (&mCondition); local 58 if (res) 60 ALOGE ("CondVar::~CondVar: fail destroy; error=0x%X", res); 76 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle()); local 77 if (res) 79 ALOGE ("CondVar::wait: fail wait; error=0x%X", res); 139 int const res local [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | InterestingConfigChanges.java | 20 import android.content.res.Configuration; 21 import android.content.res.Resources; 27 boolean applyNewConfig(Resources res) { argument 28 int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); 29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; 32 mLastDensity = res.getDisplayMetrics().densityDpi;
|
/packages/apps/Phone/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/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/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; 117 res = R.drawable.ic_sync_green_holo; 120 res [all...] |
H A D | OwnerInfoSettings.java | 46 final ContentResolver res = getActivity().getContentResolver(); 47 String info = Settings.Secure.getString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO); 48 int enabled = Settings.Secure.getInt(res, 60 Settings.Secure.putInt(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED, 74 ContentResolver res = getActivity().getContentResolver(); 76 Settings.Secure.putString(res, Settings.Secure.LOCK_SCREEN_OWNER_INFO, info);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | SettingsValues.java | 21 import android.content.res.Configuration; 22 import android.content.res.Resources; 106 final Resources res = context.getResources(); 109 mDelayUpdateOldSuggestions = res.getInteger(R.integer.config_delay_update_old_suggestions); 110 mWeakSpaceStrippers = res.getString(R.string.weak_space_stripping_symbols); 111 mWeakSpaceSwappers = res.getString(R.string.weak_space_swapping_symbols); 112 mPhantomSpacePromotingSymbols = res.getString(R.string.phantom_space_promoting_symbols); 123 res.getString(R.string.suggested_punctuations), null); 126 res.getString(R.string.symbols_excluded_from_word_separators); 128 mSymbolsExcludedFromWordSeparators, res); 204 createWordSeparators(final String weakSpaceStrippers, final String weakSpaceSwappers, final String symbolsExcludedFromWordSeparators, final Resources res) argument 216 createSuggestionVisibility(final Resources res) argument 226 isVibrateOn(final Context context, final SharedPreferences prefs, final Resources res) argument 278 isAutoCorrectEnabled(final Resources res, final String currentAutoCorrectionSetting) argument 287 isKeyPreviewPopupEnabled(final SharedPreferences prefs, final Resources res) argument 297 getKeyPreviewPopupDismissDelay(final SharedPreferences prefs, final Resources res) argument 305 isBigramPredictionEnabled(final SharedPreferences prefs, final Resources res) argument 311 getAutoCorrectionThreshold(final Resources res, final String currentAutoCorrectionSetting) argument 375 isFullscreenModeAllowed(final Resources res) argument 383 getPrefAdditionalSubtypes(final SharedPreferences prefs, final Resources res) argument 391 getCurrentKeypressSoundVolume(final SharedPreferences prefs, final Resources res) argument 404 getCurrentVibrationDuration(final SharedPreferences prefs, final Resources res) argument [all...] |
H A D | DictionaryFactory.java | 20 import android.content.res.AssetFileDescriptor; 21 import android.content.res.Resources; 117 } catch (android.content.res.Resources.NotFoundException e) { 158 final Resources res = context.getResources(); 159 return 0 != getMainDictionaryResourceIdIfAvailableForLocale(res, locale); 166 * Helper method to return a dictionary res id for a locale, or 0 if none. 170 private static int getMainDictionaryResourceIdIfAvailableForLocale(final Resources res, argument 176 if ((resId = res.getIdentifier( 184 if ((resId = res.getIdentifier(dictLanguage, "raw", RESOURCE_PACKAGE_NAME)) != 0) { 197 public static int getMainDictionaryResourceId(final Resources res, fina argument [all...] |
H A D | SubtypeLocale.java | 23 import android.content.res.Resources; 77 final Resources res = context.getResources(); 79 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts); 81 final String[] layoutDisplayNames = res.getStringArray( 87 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); 91 final int noLanguageResId = res.getIdentifier( 97 final String[] exceptionalLocales = res.getStringArray( 99 final String[] exceptionalDisplayNames = res.getStringArray( 105 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); 109 final String[] keyboardLayoutSetMap = res 167 getSubtypeDisplayName(final InputMethodSubtype subtype, Resources res) argument [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
H A D | UserUtils.java | 20 import android.content.res.Resources; 27 public static Drawable getUserIcon(UserManager um, UserInfo user, Resources res) { argument 31 return new BitmapDrawable(res, icon);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | SubtypeLocaleTests.java | 20 import android.content.res.Resources; 96 protected Void job(Resources res) { 98 SubtypeLocale.getSubtypeDisplayName(EN_US, res)); 100 SubtypeLocale.getSubtypeDisplayName(EN_GB, res)); 102 SubtypeLocale.getSubtypeDisplayName(FR, res)); 104 SubtypeLocale.getSubtypeDisplayName(FR_CA, res)); 106 SubtypeLocale.getSubtypeDisplayName(DE, res)); 108 SubtypeLocale.getSubtypeDisplayName(ZZ, res)); 127 protected Void job(Resources res) { 129 SubtypeLocale.getSubtypeDisplayName(FR_QWERTZ, res)); [all...] |
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/ |
H A D | SettingsParser.java | 40 boolean res = false; 49 res = true; 52 res = false; 60 return res;
|
/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/Email/src/com/android/email/activity/ |
H A D | AttachmentInfoDialog.java | 29 import android.content.res.Resources; 46 Resources res = context.getResources(); 47 String title = res.getString(R.string.attachment_info_dialog_default_title); 48 String bodyText = res.getString(R.string.attachment_info_unknown); 57 bodyText = res.getString(R.string.attachment_info_malware); 59 bodyText = res.getString(R.string.attachment_info_policy); 61 bodyText = res.getString(R.string.attachment_info_no_intent); 63 bodyText = res.getString(R.string.attachment_info_sideload_disabled); 64 actionText = res.getString(R.string.attachment_info_application_settings); 69 bodyText = res [all...] |
/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,
|
H A D | UserInitializeReceiver.java | 28 import android.content.res.Resources; 64 int res = resources.getIdentifier(extra, "drawable", packageName); 65 if (res != 0) { 66 outList.add(res);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | IconListPreference.java | 20 import android.content.res.Resources; 21 import android.content.res.TypedArray; 38 Resources res = context.getResources(); 41 mIconIds = getIds(res, a.getResourceId( 43 mLargeIconIds = getIds(res, a.getResourceId( 45 mImageIds = getIds(res, a.getResourceId( 82 private int[] getIds(Resources res, int iconsRes) { argument 84 TypedArray array = res.obtainTypedArray(iconsRes);
|
/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | DefaultSoftKeyboard.java | 27 import android.content.res.*; 638 Resources res = mWnn.getResources(); 644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off)); 645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); 646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); 647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); 650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on)); 651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); 652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); 653 text2.setBackgroundColor(res [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
H A D | TestPhoneNumberHelper.java | 19 import android.content.res.Resources;
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | StorageItemPreference.java | 20 import android.content.res.Resources; 44 final Resources res = context.getResources(); 45 final int width = res.getDimensionPixelSize(R.dimen.device_memory_usage_button_width); 46 final int height = res.getDimensionPixelSize(R.dimen.device_memory_usage_button_height);
|
/packages/inputmethods/LatinIME/tools/maketext/ |
H A D | Android.mk | 21 LOCAL_JAVA_RESOURCE_DIRS := res
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
H A D | ConfirmConnectActivity.java | 24 import android.content.res.Resources; 38 Resources res = getResources(); 40 String confirmString = String.format(res.getString(R.string.confirm_pairing), deviceName); 43 .setPositiveButton(res.getString(R.string.pair_yes), 52 .setNegativeButton(res.getString(R.string.pair_no),
|
/packages/apps/Calendar/ |
H A D | Android.mk | 4 # Include res dir from chips 5 chips_dir := ../../../frameworks/ex/chips/res 6 res_dirs := $(chips_dir) res
|