/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 180 protected SettingsValues job(final Resources res) { in loadSettings() 181 return new SettingsValues(context, prefs, res, inputAttributes); in loadSettings() 199 public static int readScreenMetrics(final Resources res) { in readScreenMetrics() argument 200 return res.getInteger(R.integer.config_screen_metrics); in readScreenMetrics() 205 final Resources res) { in readKeypressSoundEnabled() argument 207 res.getBoolean(R.bool.config_default_sound_enabled)); in readKeypressSoundEnabled() 211 final Resources res) { in readVibrationEnabled() argument 214 res.getBoolean(R.bool.config_default_vibration_enabled)); in readVibrationEnabled() [all …]
|
D | SettingsValues.java | 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, in SettingsValues() argument 124 mLocale = res.getConfiguration().locale; in SettingsValues() 127 res.getInteger(R.integer.config_delay_in_milliseconds_to_update_old_suggestions); in SettingsValues() 128 mSpacingAndPunctuations = new SpacingAndPunctuations(res); in SettingsValues() 135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues() 136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues() 137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues() 140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) in SettingsValues() [all …]
|
D | AdvancedSettingsFragment.java | 21 import android.content.res.Resources; 49 final Resources res = getResources(); in onCreate() local 68 if (!Settings.readFromBuildConfigIfToShowKeyPreviewPopupOption(res)) { in onCreate() 74 final String popupDismissDelayDefaultValue = Integer.toString(res.getInteger( in onCreate() 77 res.getString(R.string.key_preview_popup_dismiss_no_delay), in onCreate() 78 res.getString(R.string.key_preview_popup_dismiss_default_delay), in onCreate() 88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 106 final Resources res = getResources(); in onSharedPreferenceChanged() local 109 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onSharedPreferenceChanged() 119 final Resources res = getResources(); in refreshEnablingsOfKeypressSoundAndVibrationSettings() local [all …]
|
D | SpacingAndPunctuations.java | 19 import android.content.res.Resources; 46 public SpacingAndPunctuations(final Resources res) { in SpacingAndPunctuations() argument 49 res.getString(R.string.symbols_preceded_by_space)); in SpacingAndPunctuations() 52 res.getString(R.string.symbols_followed_by_space)); in SpacingAndPunctuations() 54 res.getString(R.string.symbols_clustering_together)); in SpacingAndPunctuations() 57 res.getString(R.string.symbols_word_connectors)); in SpacingAndPunctuations() 59 res.getString(R.string.symbols_word_separators)); in SpacingAndPunctuations() 61 res.getString(R.string.symbols_sentence_terminators)); in SpacingAndPunctuations() 62 mSentenceSeparator = res.getInteger(R.integer.sentence_separator); in SpacingAndPunctuations() 63 mAbbreviationMarker = res.getInteger(R.integer.abbreviation_marker); in SpacingAndPunctuations() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | DeviceProfile.java | 20 import android.content.res.Configuration; 21 import android.content.res.Resources; 160 Resources res = context.getResources(); in DeviceProfile() local 161 DisplayMetrics dm = res.getDisplayMetrics(); in DeviceProfile() 164 isTablet = res.getBoolean(R.bool.is_tablet); in DeviceProfile() 165 isLargeTablet = res.getBoolean(R.bool.is_large_tablet); in DeviceProfile() 172 res.getBoolean(R.bool.hotseat_transpose_layout_with_orientation); in DeviceProfile() 177 res = context.getResources(); in DeviceProfile() 179 edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin); in DeviceProfile() 184 int cellLayoutPadding = res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding); in DeviceProfile() [all …]
|
/packages/apps/Nfc/nci/jni/ |
D | Mutex.cpp | 43 int res = pthread_mutex_init(&mMutex, NULL); in Mutex() local 44 if (res != 0) { in Mutex() 45 LOG(ERROR) << StringPrintf("Mutex::Mutex: fail init; error=0x%X", res); in Mutex() 59 int res = pthread_mutex_destroy(&mMutex); in ~Mutex() local 60 if (res != 0) { in ~Mutex() 61 LOG(ERROR) << StringPrintf("Mutex::~Mutex: fail destroy; error=0x%X", res); in ~Mutex() 75 int res = pthread_mutex_lock(&mMutex); in lock() local 76 if (res != 0) { in lock() 77 LOG(ERROR) << StringPrintf("Mutex::lock: fail lock; error=0x%X", res); in lock() 91 int res = pthread_mutex_unlock(&mMutex); in unlock() local [all …]
|
D | CondVar.cpp | 46 int const res = pthread_cond_init(&mCondition, &attr); in CondVar() local 47 if (res) { in CondVar() 48 LOG(ERROR) << StringPrintf("CondVar::CondVar: fail init; error=0x%X", res); in CondVar() 62 int const res = pthread_cond_destroy(&mCondition); in ~CondVar() local 63 if (res) { in ~CondVar() 65 res); in ~CondVar() 79 int const res = pthread_cond_wait(&mCondition, mutex.nativeHandle()); in wait() local 80 if (res) { in wait() 81 LOG(ERROR) << StringPrintf("CondVar::wait: fail wait; error=0x%X", res); in wait() 131 int const res = pthread_cond_signal(&mCondition); in notifyOne() local [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/ |
D | MessageDetailsDialog.java | 21 import android.content.res.Resources; 104 final Resources res = Factory.get().getApplicationContext().getResources(); in getSmsMessageDetails() local 108 details.append(res.getString(R.string.message_type_label)); in getSmsMessageDetails() 109 details.append(res.getString(R.string.text_message)); in getSmsMessageDetails() 116 details.append(res.getString(R.string.from_label)); in getSmsMessageDetails() 123 details.append(res.getString(R.string.to_address_label)); in getSmsMessageDetails() 131 details.append(res.getString(R.string.sent_label)); in getSmsMessageDetails() 139 appendSentOrReceivedTimestamp(res, details, data); in getSmsMessageDetails() 141 appendSimInfo(res, self, details); in getSmsMessageDetails() 157 final Resources res = Factory.get().getApplicationContext().getResources(); in getMmsMessageDetails() local [all …]
|
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
D | MoreWirelessSettingsTest2.java | 183 .res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_SSID_RES_ID) in testAddNetworkMenu_Default() 189 .res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_SECURITY_OPTION_RES_ID) in testAddNetworkMenu_Default() 195 .res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_ADV_TOGGLE_RES_ID) in testAddNetworkMenu_Default() 207 .res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_ADV_TOGGLE_RES_ID) in testAddNetworkMenu_Proxy() 212 By.res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_PROXY_SETTINGS_RES_ID) in testAddNetworkMenu_Proxy() 223 By.res(SETTINGS_PACKAGE, "proxy_warning_limited_support")); in testAddNetworkMenu_Proxy() 225 By.res(SETTINGS_PACKAGE, "proxy_hostname")); in testAddNetworkMenu_Proxy() 227 By.res(SETTINGS_PACKAGE, "proxy_exclusionlist")); in testAddNetworkMenu_Proxy() 234 By.res(SETTINGS_PACKAGE, "proxy_pac")); in testAddNetworkMenu_Proxy() 244 .res(SETTINGS_PACKAGE, ADD_NETWORK_MENU_ADV_TOGGLE_RES_ID) in testAddNetworkMenu_IpSettings() [all …]
|
D | StorageWizardTest.java | 89 waitFor(By.res(PACKAGE, "suc_layout_title").text(containsIgnoringCase("How will you use"))); in testInternal() 90 waitFor(By.res(PACKAGE, "storage_wizard_init_internal")).click(); in testInternal() 93 waitFor(By.res(ANDROID_PACKAGE, "alertTitle").textContains("Format")); in testInternal() 97 waitForLong(By.res(PACKAGE, "suc_layout_title").textContains("Slow")); in testInternal() 98 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal() 101 waitForLong(By.res(PACKAGE, "suc_layout_title").textContains("Move content")); in testInternal() 102 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal() 105 waitForLong(By.res(PACKAGE, "suc_layout_title").textContains("ready to use")); in testInternal() 106 waitFor(By.res(PACKAGE, "storage_next_button")).click(); in testInternal() 117 waitFor(By.res(PACKAGE, "suc_layout_title").textContains("How will you use")); in testExternal() [all …]
|
/packages/modules/DnsResolver/ |
D | getaddrinfo.cpp | 152 addrinfo** res); 155 static int res_queryN(const char* name, res_target* target, res_state res, int* herrno); 156 static int res_searchN(const char* name, res_target* target, res_state res, int* herrno); 157 static int res_querydomainN(const char* name, const char* domain, res_target* target, res_state res, 325 addrinfo** res, NetworkDnsEventReported* event) { in android_getaddrinfofornetcontext() argument 329 assert(res != nullptr); in android_getaddrinfofornetcontext() 398 return resolv_getaddrinfo(hostname, servname, hints, netcontext, res, event); in android_getaddrinfofornetcontext() 403 *res = nullptr; in android_getaddrinfofornetcontext() 405 *res = sentinel.ai_next; in android_getaddrinfofornetcontext() 411 const android_net_context* _Nonnull netcontext, addrinfo** _Nonnull res, in resolv_getaddrinfo() argument [all …]
|
D | DnsResolverService.cpp | 136 int res = ResolverEventReporter::getInstance().addListener(listener); in registerEventListener() local 138 return statusFromErrcode(res); in registerEventListener() 200 int res = gDnsResolv->resolverCtrl.setResolverConfiguration(resolverParams); in setResolverConfiguration() local 201 gResNetdCallbacks.log(entry.returns(res).withAutomaticDuration().toString().c_str()); in setResolverConfiguration() 203 return statusFromErrcode(res); in setResolverConfiguration() 213 int res = gDnsResolv->resolverCtrl.getResolverInfo(netId, servers, domains, tlsServers, params, in getResolverInfo() local 216 return statusFromErrcode(res); in getResolverInfo() 241 int res = gDnsResolv->resolverCtrl.getPrefix64(netId, &prefix); in getPrefix64() local 244 return statusFromErrcode(res); in getPrefix64() 265 int res = gDnsResolv->setLogSeverity(logSeverity); in setLogSeverity() local [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | ResourceUtils.java | 19 import android.content.res.Resources; 20 import android.content.res.TypedArray; 70 public static String getDeviceOverrideValue(final Resources res, final int overrideResId, in getDeviceOverrideValue() argument 72 final int orientation = res.getConfiguration().orientation; in getDeviceOverrideValue() 78 final String[] overrideArray = res.getStringArray(overrideResId); in getDeviceOverrideValue() 83 + " resource="+ res.getResourceEntryName(overrideResId) in getDeviceOverrideValue() 185 public static int getDefaultKeyboardWidth(final Resources res) { in getDefaultKeyboardWidth() argument 186 final DisplayMetrics dm = res.getDisplayMetrics(); in getDefaultKeyboardWidth() 190 public static int getKeyboardHeight(final Resources res, final SettingsValues settingsValues) { in getKeyboardHeight() argument 191 final int defaultKeyboardHeight = getDefaultKeyboardHeight(res); in getKeyboardHeight() [all …]
|
D | SubtypeLocaleUtils.java | 24 import android.content.res.Resources; 100 final Resources res = context.getResources(); in initLocked() local 101 sResources = res; in initLocked() 103 final String[] predefinedLayoutSet = res.getStringArray(R.array.predefined_layouts); in initLocked() 104 final String[] layoutDisplayNames = res.getStringArray( in initLocked() 110 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked() 114 final int noLanguageResId = res.getIdentifier( in initLocked() 120 final String[] exceptionalLocaleInRootLocale = res.getStringArray( in initLocked() 125 final int resId = res.getIdentifier(resourceName, null, RESOURCE_PACKAGE_NAME); in initLocked() 129 final String[] exceptionalLocales = res.getStringArray( in initLocked() [all …]
|
D | RunInLocale.java | 19 import android.content.res.Configuration; 20 import android.content.res.Resources; 27 protected abstract T job(final Resources res); in job() argument 36 public T runInLocale(final Resources res, final Locale newLocale) { in runInLocale() argument 38 final Configuration conf = res.getConfiguration(); in runInLocale() 40 return job(res); in runInLocale() 45 res.updateConfiguration(conf, null); in runInLocale() 46 return job(res); in runInLocale() 49 res.updateConfiguration(conf, null); in runInLocale()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | AccessibilityUtil.java | 19 import android.content.res.Resources; 111 public static String getVocalizedPhoneNumber(final Resources res, final String phoneNumber) { in getVocalizedPhoneNumber() argument 117 getVocalizedNumber(res, c, vocalizedPhoneNumber); in getVocalizedPhoneNumber() 122 public static void getVocalizedNumber(final Resources res, final char c, in getVocalizedNumber() argument 126 builder.append(res.getString(R.string.content_description_for_number_zero)); in getVocalizedNumber() 130 builder.append(res.getString(R.string.content_description_for_number_one)); in getVocalizedNumber() 134 builder.append(res.getString(R.string.content_description_for_number_two)); in getVocalizedNumber() 138 builder.append(res.getString(R.string.content_description_for_number_three)); in getVocalizedNumber() 142 builder.append(res.getString(R.string.content_description_for_number_four)); in getVocalizedNumber() 146 builder.append(res.getString(R.string.content_description_for_number_five)); in getVocalizedNumber() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AccountPreference.java | 99 int res; in getSyncStatusMessage() local 102 res = R.string.sync_enabled; in getSyncStatusMessage() 105 res = R.string.sync_disabled; in getSyncStatusMessage() 108 res = R.string.sync_error; in getSyncStatusMessage() 111 res = R.string.sync_in_progress; in getSyncStatusMessage() 114 res = R.string.sync_error; in getSyncStatusMessage() 117 return res; in getSyncStatusMessage() 121 int res; in getSyncStatusIcon() local 125 res = R.drawable.ic_settings_sync; in getSyncStatusIcon() 128 res = R.drawable.ic_sync_grey_holo; in getSyncStatusIcon() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountPreference.java | 99 int res; in getSyncStatusMessage() local 102 res = R.string.sync_enabled; in getSyncStatusMessage() 105 res = R.string.sync_disabled; in getSyncStatusMessage() 108 res = R.string.sync_error; in getSyncStatusMessage() 111 res = R.string.sync_in_progress; in getSyncStatusMessage() 114 res = R.string.sync_error; in getSyncStatusMessage() 117 return res; in getSyncStatusMessage() 121 int res; in getSyncStatusIcon() local 125 res = R.drawable.ic_settings_sync; in getSyncStatusIcon() 128 res = R.drawable.ic_sync_grey_holo; in getSyncStatusIcon() [all …]
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSettings.java | 30 import android.content.res.Resources; 296 Resources res = CellBroadcastSettings.getResources(getContext(), in onCreatePreferences() local 300 mDisableSevereWhenExtremeDisabled = res.getBoolean( in onCreatePreferences() 378 mOverrideDndCheckBox.setChecked(res.getBoolean(R.bool.override_dnd_default)); in onCreatePreferences() 426 Resources res = CellBroadcastSettings.getResources(getContext(), in updatePreferenceVisibility() local 434 res.getBoolean(R.bool.show_presidential_alerts_settings)); in updatePreferenceVisibility() 438 mExtremeCheckBox.setVisible(res.getBoolean(R.bool.show_extreme_alert_settings) in updatePreferenceVisibility() 444 mSevereCheckBox.setVisible(res.getBoolean(R.bool.show_severe_alert_settings) in updatePreferenceVisibility() 450 mAmberCheckBox.setVisible(res.getBoolean(R.bool.show_amber_alert_settings) in updatePreferenceVisibility() 457 res.getBoolean(R.bool.show_public_safety_settings) in updatePreferenceVisibility() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
D | TransitionUtils.java | 20 import android.content.res.Resources; 34 public static ObjectAnimator createActivityFadeInAnimator(Resources res, boolean useFloats) { in createActivityFadeInAnimator() argument 36 res.getValue(R.dimen.alpha_activity_in_bkg_start, startAlpha, true); in createActivityFadeInAnimator() 39 res.getValue(R.dimen.alpha_activity_in_bkg_end, endAlpha, true); in createActivityFadeInAnimator() 49 animator.setDuration(res.getInteger(R.integer.alpha_activity_in_bkg_duration)); in createActivityFadeInAnimator() 50 animator.setStartDelay(res.getInteger(R.integer.alpha_activity_in_bkg_delay)); in createActivityFadeInAnimator() 54 public static ObjectAnimator createActivityFadeOutAnimator(Resources res, boolean useFloats) { in createActivityFadeOutAnimator() argument 56 res.getValue(R.dimen.alpha_activity_out_bkg_start, startAlpha, true); in createActivityFadeOutAnimator() 59 res.getValue(R.dimen.alpha_activity_out_bkg_end, endAlpha, true); in createActivityFadeOutAnimator() 69 animator.setDuration(res.getInteger(R.integer.alpha_activity_out_bkg_duration)); in createActivityFadeOutAnimator() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultPartnerProvider.java | 24 import android.content.res.Resources; 64 final Resources res = pm.getResourcesForApplication(packageName); in findSystemApk() local 65 return Pair.create(packageName, res); in findSystemApk() 82 Resources res = getResources(); in getLegacyWallpaperDirectory() local 85 if (res != null) { in getLegacyWallpaperDirectory() 86 resId = res.getIdentifier(PartnerProvider.RES_LEGACY_SYSTEM_WALLPAPER_DIR, in getLegacyWallpaperDirectory() 89 return (resId != 0) ? new File(res.getString(resId)) : null; in getLegacyWallpaperDirectory() 99 Resources res = getResources(); in shouldHideDefaultWallpaper() local 102 if (res != null) { in shouldHideDefaultWallpaper() 103 final int resId = res.getIdentifier( in shouldHideDefaultWallpaper() [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
D | WifiCallingSliceHelper.java | 28 import android.content.res.Resources; 155 final Resources res = getResourcesForSubId(subId); in createWifiCallingSlice() local 157 res.getText(R.string.wifi_calling_settings_title), in createWifiCallingSlice() 158 res.getText(R.string.wifi_calling_settings_activation_instructions), in createWifiCallingSlice() 175 final Resources res = getResourcesForSubId(subId); in getWifiCallingSlice() local 180 .setTitle(res.getText(R.string.wifi_calling_settings_title)) in getWifiCallingSlice() 189 res.getText(R.string.wifi_calling_settings_title)))) in getWifiCallingSlice() 243 final Resources res = getResourcesForSubId(subId); in createWifiCallingPreferenceSlice() local 245 res.getText(R.string.wifi_calling_mode_title), in createWifiCallingPreferenceSlice() 246 res.getText(R.string.wifi_calling_turn_on), in createWifiCallingPreferenceSlice() [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | LetterTileDrawable.java | 18 import android.content.res.Resources; 19 import android.content.res.TypedArray; 71 public LetterTileDrawable(final Resources res) { in LetterTileDrawable() argument 72 this(res, null, null); in LetterTileDrawable() 80 public LetterTileDrawable(final Resources res, @Nullable String letters, in LetterTileDrawable() argument 88 sDefaultColor = res.getColor(R.color.letter_tile_default_color, null /* theme */); in LetterTileDrawable() 89 TypedArray ta = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable() 105 sTileFontColor = res.getColor(R.color.letter_tile_font_color, null /* theme */); in LetterTileDrawable() 106 sLetterToTileRatio = res.getFraction(R.fraction.letter_to_tile_ratio, 1, 1); in LetterTileDrawable() 108 sDefaultPersonAvatar = res.getDrawable(R.drawable.ic_person, null /* theme */); in LetterTileDrawable() [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
D | Util.java | 23 import android.content.res.Resources; 47 public static Uri getResourceUri(Context packageContext, int res) { in getResourceUri() argument 50 return getResourceUri(resources, packageContext.getPackageName(), res); in getResourceUri() 52 Log.e(TAG, "Resource not found: " + res + " in " + packageContext.getPackageName()); in getResourceUri() 57 public static Uri getResourceUri(Context context, ApplicationInfo appInfo, int res) { in getResourceUri() argument 60 return getResourceUri(resources, appInfo.packageName, res); in getResourceUri() 65 Log.e(TAG, "Resource not found: " + res + " in " + appInfo.packageName); in getResourceUri() 70 private static Uri getResourceUri(Resources resources, String appPkg, int res) in getResourceUri() argument 72 String resPkg = resources.getResourcePackageName(res); in getResourceUri() 73 String type = resources.getResourceTypeName(res); in getResourceUri() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/scan/ |
D | PlaylistResolver.java | 96 final List<ContentProviderOperation> res = new ArrayList<>(); in resolvePlaylistM3u() local 97 res.add(ContentProviderOperation.newDelete(getPlaylistMembersUri(uri)).build()); in resolvePlaylistM3u() 103 final int itemIndex = res.size() + 1; in resolvePlaylistM3u() 106 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistM3u() 112 return res; in resolvePlaylistM3u() 119 final List<ContentProviderOperation> res = new ArrayList<>(); in resolvePlaylistPls() local 120 res.add(ContentProviderOperation.newDelete(getPlaylistMembersUri(uri)).build()); in resolvePlaylistPls() 130 res.add(resolvePlaylistItem(resolver, uri, itemIndex, itemFile)); in resolvePlaylistPls() 136 return res; in resolvePlaylistPls() 143 final List<ContentProviderOperation> res = new ArrayList<>(); in resolvePlaylistWpl() local [all …]
|