Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 1504) sorted by relevance

12345678910>>...61

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java22 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 …]
DSettingsValues.java22 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 …]
DAdvancedSettingsFragment.java21 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 …]
DSpacingAndPunctuations.java19 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/
DDeviceProfile.java20 import android.content.res.Configuration;
21 import android.content.res.Resources;
153 Resources res = context.getResources(); in DeviceProfile() local
154 DisplayMetrics dm = res.getDisplayMetrics(); in DeviceProfile()
157 isTablet = res.getBoolean(R.bool.is_tablet); in DeviceProfile()
158 isLargeTablet = res.getBoolean(R.bool.is_large_tablet); in DeviceProfile()
165 res.getBoolean(R.bool.hotseat_transpose_layout_with_orientation); in DeviceProfile()
170 res = context.getResources(); in DeviceProfile()
172 edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin); in DeviceProfile()
177 int cellLayoutPadding = res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding); in DeviceProfile()
[all …]
/packages/apps/Nfc/nci/jni/
DMutex.cpp43 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 …]
DCondVar.cpp46 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/
DMessageDetailsDialog.java21 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/
DMoreWirelessSettingsTest2.java183 .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 …]
DStorageWizardTest.java89 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/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderDisplayer.java21 import android.content.res.Resources;
70 final Resources res = mContext.getResources(); in initializeDrawableResources() local
72 res.getColor(R.color.default_folder_foreground_color); in initializeDrawableResources()
74 res.getColor(R.color.default_folder_background_color); in initializeDrawableResources()
76 res.getDimensionPixelOffset(R.dimen.folder_rounded_corner_radius); in initializeDrawableResources()
78 res.getDimensionPixelOffset(R.dimen.folder_start_padding); in initializeDrawableResources()
184 Folder f, FolderDisplayer.FolderDrawableResources res, BidiFormatter formatter, in drawFolder() argument
187 f.getForegroundColor(res.defaultFgColor), f.getBackgroundColor(res.defaultBgColor), in drawFolder()
188 res, formatter, paint); in drawFolder()
192 String name, int fgColor, int bgColor, FolderDisplayer.FolderDrawableResources res, in drawFolder() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DResourceUtils.java19 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 …]
DSubtypeLocaleUtils.java24 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 …]
DRunInLocale.java19 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/UnifiedEmail/src/com/android/mail/print/
DPrintUtils.java22 import android.content.res.Resources;
123 final Resources res = context.getResources(); in buildConversationHtml() local
126 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder); in buildConversationHtml()
145 final Resources res = context.getResources(); in buildMessageHtml() local
146 appendSingleMessageHtml(context, res, message, addressCache, templates, dateBuilder); in buildMessageHtml()
157 private static void appendSingleMessageHtml(Context context, Resources res, in appendSingleMessageHtml() argument
166 renderRecipients(res, addressCache, message), message.getBodyAsHtml(), in appendSingleMessageHtml()
167 renderAttachments(context, res, message)); in appendSingleMessageHtml()
174 private static String renderRecipients(Resources res, in renderRecipients() argument
179 final String replyTo = renderEmailList(res, message.getReplyToAddresses(), addressCache); in renderRecipients()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DAccessibilityUtil.java19 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/apps/Settings/src/com/android/settings/accounts/
DAccountPreference.java99 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreference.java99 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/TvSettings/Settings/src/com/android/tv/settings/util/
DTransitionUtils.java20 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/
DDefaultPartnerProvider.java24 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/QuickSearchBox/src/com/android/quicksearchbox/util/
DUtil.java23 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/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java31 import android.content.res.Configuration;
32 import android.content.res.Resources;
553 private int getPlaylistId(Resources res) { in getPlaylistId() argument
557 final String[] args = new String[] { res.getString(R.string.audio_db_playlist_name) }; in getPlaylistId()
576 private Uri createPlaylist(Resources res, ContentResolver resolver) { in createPlaylist() argument
578 cv.put(MediaStore.Audio.Playlists.NAME, res.getString(R.string.audio_db_playlist_name)); in createPlaylist()
595 Resources res = getResources(); in addToMediaDB() local
601 res.getString(R.string.audio_db_title_format)); in addToMediaDB()
616 res.getString(R.string.audio_db_artist_name)); in addToMediaDB()
618 res.getString(R.string.audio_db_album_name)); in addToMediaDB()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/scan/
DPlaylistResolver.java96 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 …]
/packages/services/Telecomm/src/com/android/server/telecom/
DQuickResponseUtils.java22 import android.content.res.Resources;
66 final Resources res = context.getResources(); in maybeMigrateLegacyQuickResponses() local
100 res.getString(R.string.respond_via_sms_canned_response_1)); in maybeMigrateLegacyQuickResponses()
102 res.getString(R.string.respond_via_sms_canned_response_2)); in maybeMigrateLegacyQuickResponses()
104 res.getString(R.string.respond_via_sms_canned_response_3)); in maybeMigrateLegacyQuickResponses()
106 res.getString(R.string.respond_via_sms_canned_response_4)); in maybeMigrateLegacyQuickResponses()
130 final Resources res = context.getResources(); in maybeResetQuickResponses() local
132 String defaultResponse1 = res.getString(R.string.respond_via_sms_canned_response_1); in maybeResetQuickResponses()
140 String defaultResponse2 = res.getString(R.string.respond_via_sms_canned_response_2); in maybeResetQuickResponses()
148 String defaultResponse3 = res.getString(R.string.respond_via_sms_canned_response_3); in maybeResetQuickResponses()
[all …]
/packages/services/Car/car-lib/src/android/car/
DAoapService.java205 int res = service.isDeviceSupported( in handleMessage() local
207 if (res != RESULT_OK && res != RESULT_DEVICE_NOT_SUPPORTED) { in handleMessage()
208 throw new IllegalArgumentException("Result can not be " + res); in handleMessage()
210 sendResponse(msg.replyTo, MSG_NEW_DEVICE_ATTACHED_RESPONSE, res); in handleMessage()
215 int res = service.canSwitchToAoap( in handleMessage() local
217 if (res != RESULT_OK && res != RESULT_DEVICE_NOT_SUPPORTED in handleMessage()
218 && res != RESULT_DO_NOT_SWITCH_TO_AOAP) { in handleMessage()
219 throw new IllegalArgumentException("Result can not be " + res); in handleMessage()
221 sendResponse(msg.replyTo, MSG_CAN_SWITCH_TO_AOAP_RESPONSE, res); in handleMessage()

12345678910>>...61