/packages/apps/Nfc/nci/jni/ |
H A D | Mutex.cpp | 39 int res = pthread_mutex_init (&mMutex, NULL); local 40 if (res != 0) 42 ALOGE ("Mutex::Mutex: fail init; error=0x%X", res); 58 int res = pthread_mutex_destroy (&mMutex); local 59 if (res != 0) 61 ALOGE ("Mutex::~Mutex: fail destroy; error=0x%X", res); 77 int res = pthread_mutex_lock (&mMutex); local 78 if (res != 0) 80 ALOGE ("Mutex::lock: fail lock; error=0x%X", res); 96 int res local 115 int res = pthread_mutex_trylock (&mMutex); local [all...] |
H A D | CondVar.cpp | 43 int const res = pthread_cond_init (&mCondition, &attr); local 44 if (res) 46 ALOGE ("CondVar::CondVar: fail init; error=0x%X", res); 62 int const res = pthread_cond_destroy (&mCondition); local 63 if (res) 65 ALOGE ("CondVar::~CondVar: fail destroy; error=0x%X", res); 81 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle()); local 82 if (res) 84 ALOGE ("CondVar::wait: fail wait; error=0x%X", res); 140 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/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/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
H A D | InterestingConfigChanges.java | 20 import android.content.res.Configuration; 21 import android.content.res.Resources; 30 boolean applyNewConfig(Resources res) { argument 31 int configChanges = mLastConfiguration.updateFrom(res.getConfiguration()); 32 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; 35 mLastDensity = res.getDisplayMetrics().densityDpi;
|
/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/OMA-DM/engine/javaplugin/nativelib/src/ |
H A D | DmtJavaPluginTree.cc | 48 SYNCML_DM_RET_STATUS_T res = DmtRWPluginTree::DeleteNode(path); local 49 DmtJavaPlugin_Debug("DmtJavaPluginTree::DeleteNode: DmtRWPluginTree::DeleteNode res = %d\n", res); 50 if (res == SYNCML_DM_SUCCESS) 52 res = m_pluginManager->DeleteNode(path); 54 DmtJavaPlugin_Debug("Leave: DmtJavaPluginTree::DeleteNode, res = %d\n", res); 55 return res; 68 SYNCML_DM_RET_STATUS_T res = DmtRWPluginTree::CreateInteriorNode(path, ptrCreatedNode); local 69 DmtJavaPlugin_Debug("Leave: DmtJavaPluginTree::CreateInteriorNode, res 79 SYNCML_DM_RET_STATUS_T res = m_pluginManager->CreateInteriorNode(path); local 103 SYNCML_DM_RET_STATUS_T res = DmtRWPluginTree::CreateLeafNode(path, ptrCreatedNode, value); local 117 SYNCML_DM_RET_STATUS_T res = DmtRWPluginTree::CreateLeafNode(path, ptrCreatedNode, value, isESN); local 126 SYNCML_DM_RET_STATUS_T res = m_pluginManager->CreateLeafNode(path, value); local 181 SYNCML_DM_RET_STATUS_T res = m_pluginManager->BuildPluginTree(this); local 205 SYNCML_DM_RET_STATUS_T res = m_pluginManager->GetNodeValue(path, value); local 219 SYNCML_DM_RET_STATUS_T res = m_pluginManager->SetNodeValue(path, value); local 240 SYNCML_DM_RET_STATUS_T res = DmtRWPluginTree::Flush(); local 258 SYNCML_DM_RET_STATUS_T res = m_pluginManager->Commit(); local [all...] |
H A D | DmtJavaPluginNode.cc | 62 SYNCML_DM_RET_STATUS_T res = DmtRWPluginNode::SetValue(oData); local 63 if(res != SYNCML_DM_SUCCESS) 66 return res;
|
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
H A D | DictionaryInfoUtilsTests.java | 19 import android.content.res.Resources; 32 protected SpacingAndPunctuations job(final Resources res) { 33 return new SpacingAndPunctuations(res); 36 final Resources res = getContext().getResources(); 37 final SpacingAndPunctuations sp = job.runInLocale(res, Locale.ENGLISH);
|
/packages/apps/OMA-DM/engine/dmlib/dmtapi/native_async/src/ |
H A D | dmtAsyncData.cc | 26 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 38 res = oDmtData.SetString(pData->data.str_value, pData->meta_format); 42 res = oDmtData.SetInt(pData->data.int_value); 46 res = oDmtData.SetBoolean((BOOLEAN)pData->data.int_value); 50 res = oDmtData.SetBinary(pData->data.bin.bin_value,pData->data.bin.len_bin_data); 57 return res; 64 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 71 res = dmtBuildData((DMT_DATA_T*)&pData->pData[index],oData); 72 if ( res == SYNCML_DM_SUCCESS ) 81 return res; 145 SYNCML_DM_RET_STATUS_T res; local 172 SYNCML_DM_RET_STATUS_T res; local 233 SYNCML_DM_RET_STATUS_T res; local 282 SYNCML_DM_RET_STATUS_T res; local 335 SYNCML_DM_RET_STATUS_T res; local 361 SYNCML_DM_RET_STATUS_T res; local 399 SYNCML_DM_RET_STATUS_T res; local [all...] |
/packages/apps/Settings/src/com/android/settings/accessibility/ |
H A D | AccessibilityUtils.java | 21 import android.content.res.Configuration; 22 import android.content.res.Resources; 66 final Resources res = context.getResources(); 67 final Configuration config = res.getConfiguration(); 71 res.updateConfiguration(config, null); 72 return res.getText(resId); 75 res.updateConfiguration(config, null);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
H A D | PreferencesSettingsFragment.java | 21 import android.content.res.Resources; 46 final Resources res = getResources(); 54 final boolean showVoiceKeyOption = res.getBoolean( 62 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 84 final Resources res = getResources(); 87 Settings.readKeyPreviewPopupEnabled(prefs, res)); 94 final Resources res = getResources(); 96 Settings.readVibrationEnabled(prefs, res)); 98 Settings.readKeypressSoundEnabled(prefs, res));
|
H A D | AdvancedSettingsFragment.java | 21 import android.content.res.Resources; 50 final Resources res = getResources(); 69 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { 75 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger( 78 res.getString(R.string.key_preview_popup_dismiss_no_delay), 79 res.getString(R.string.key_preview_popup_dismiss_default_delay), 89 Settings.readKeyPreviewPopupEnabled(prefs, res)); 92 if (!res.getBoolean(R.bool.config_setup_wizard_available)) { 101 final String applicationName = res.getString(applicationLabelRes); 102 final String enableMetricsLoggingTitle = res [all...] |
H A D | Settings.java | 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 182 protected SettingsValues job(final Resources res) { 183 return new SettingsValues(context, prefs, res, inputAttributes); 211 final Resources res) { 213 res.getBoolean(R.bool.config_default_sound_enabled)); 217 final Resources res) { 220 res.getBoolean(R.bool.config_default_vibration_enabled)); 224 final Resources res) { 225 final String autoCorrectionOff = res 210 readKeypressSoundEnabled(final SharedPreferences prefs, final Resources res) argument 216 readVibrationEnabled(final SharedPreferences prefs, final Resources res) argument 223 readAutoCorrectEnabled(final String currentAutoCorrectionSetting, final Resources res) argument 230 readBlockPotentiallyOffensive(final SharedPreferences prefs, final Resources res) argument 236 readFromBuildConfigIfGestureInputEnabled(final Resources res) argument 240 readGestureInputEnabled(final SharedPreferences prefs, final Resources res) argument 246 readPhraseGestureEnabled(final SharedPreferences prefs, final Resources res) argument 252 readFromBuildConfigIfToShowKeyPreviewPopupOption(final Resources res) argument 256 readKeyPreviewPopupEnabled(final SharedPreferences prefs, final Resources res) argument 266 readKeyPreviewPopupDismissDelay(final SharedPreferences prefs, final Resources res) argument 285 readPrefAdditionalSubtypes(final SharedPreferences prefs, final Resources res) argument 297 readKeypressSoundVolume(final SharedPreferences prefs, final Resources res) argument 309 readDefaultKeypressSoundVolume(final Resources res) argument 314 readKeyLongpressTimeout(final SharedPreferences prefs, final Resources res) argument 322 readDefaultKeyLongpressTimeout(final Resources res) argument 326 readKeypressVibrationDuration(final SharedPreferences prefs, final Resources res) argument 338 readDefaultKeypressVibrationDuration(final Resources res) argument 355 readUseFullscreenMode(final Resources res) argument [all...] |
H A D | SettingsValues.java | 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 112 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, argument 114 mLocale = res.getConfiguration().locale; 117 res.getInteger(R.integer.config_delay_in_milliseconds_to_update_old_suggestions); 118 mSpacingAndPunctuations = new SpacingAndPunctuations(res); 130 mVibrateOn = Settings.readVibrationEnabled(prefs, res); 131 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); 132 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); 135 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) 298 readBigramPredictionEnabled(final SharedPreferences prefs, final Resources res) argument 304 readAutoCorrectionThreshold(final Resources res, final String currentAutoCorrectionSetting) argument 335 needsToShowVoiceInputKey(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; 58 Resources res = context.getResources(); 59 float density = res.getDisplayMetrics().density; 60 float ratio = (density * minWidth) / res.getDimension(R.dimen.min_digital_widget_width); 64 < res.getDimension(R.dimen.min_digital_widget_height)) { 88 Resources res = context.getResources(); 89 float density = res.getDisplayMetrics().density; 91 float lblBox = 1.35f * res.getDimension(R.dimen.label_font_size); 93 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/ContactsCommon/src/com/android/contacts/common/util/ |
H A D | ViewUtil.java | 19 import android.content.res.Resources; 77 * @param res The resources file. 79 public static void addRectangularOutlineProvider(View view, Resources res) { argument 86 * @param res The resources file. 88 public static void setupFloatingActionButton(View view, Resources res) { argument 91 res.getDimensionPixelSize(R.dimen.floating_action_button_translation_z)); 99 * @param res valid resources object 101 public static void addBottomPaddingToListViewForFab(ListView listView, Resources res) { argument 102 final int fabPadding = res.getDimensionPixelSize(
|
/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...] |
/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/OMA-DM/engine/dmlib/dmengine/dm_tnm/src/ |
H A D | dm_tree_util.cc | 43 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 52 res = oDmtData.SetString((CPCHAR)oData.getBuffer(), format); 56 res = oDmtData.SetBinary(oData.getBuffer(), oData.getSize()); 72 return res; 119 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 211 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 218 res = DMGetData::set(wFormat,pData,dataLength, pMimeType); 219 if ( res != SYNCML_DM_SUCCESS ) 220 return res; 238 SYNCML_DM_RET_STATUS_T res local 259 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 300 SYNCML_DM_RET_STATUS_T res = SYNCML_DM_SUCCESS; local 384 SYNCML_DM_RET_STATUS_T res; local [all...] |
/packages/apps/Calendar/ |
H A D | Android.mk | 4 # Include res dir from chips 5 chips_dir := ../../../frameworks/opt/chips/res 6 color_picker_dir := ../../../frameworks/opt/colorpicker/res 7 datetimepicker_dir := ../../../frameworks/opt/datetimepicker/res 8 timezonepicker_dir := ../../../frameworks/opt/timezonepicker/res 9 res_dirs := $(chips_dir) $(color_picker_dir) $(datetimepicker_dir) $(timezonepicker_dir) res
|