Home
last modified time | relevance | path

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

12345678910>>...48

/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.java22 import android.content.res.Configuration;
23 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()
170 res.getBoolean(R.bool.hotseat_transpose_layout_with_orientation); in DeviceProfile()
175 res = context.getResources(); in DeviceProfile()
181 edgeMarginPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_edge_margin); in DeviceProfile()
184 res.getDimensionPixelSize(R.dimen.dynamic_grid_cell_layout_padding); in DeviceProfile()
[all …]
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DDefaultSoftKeyboard.java27 import android.content.res.*;
638 Resources res = mWnn.getResources(); in updateIndicator() local
644 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_off)); in updateIndicator()
645 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
646 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
647 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
650 text1.setTextColor(res.getColor(R.color.indicator_textcolor_caps_on)); in updateIndicator()
651 text2.setTextColor(res.getColor(R.color.indicator_textcolor_alt_off)); in updateIndicator()
652 text1.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
653 text2.setBackgroundColor(res.getColor(R.color.indicator_textbackground_default)); in updateIndicator()
[all …]
DKeyboard.java25 import android.content.res.Resources;
26 import android.content.res.TypedArray;
27 import android.content.res.XmlResourceParser;
194 public Row(Resources res, Keyboard parent, XmlResourceParser parser) { in Row() argument
196 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
211 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Row()
323 public Key(Resources res, Row parent, int x, int y, XmlResourceParser parser) { in Key() argument
329 TypedArray a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
342 a = res.obtainAttributes(Xml.asAttributeSet(parser), in Key()
385 a = res.obtainAttributes(Xml.asAttributeSet(parser), R.styleable.WnnKeyboard_Key); in Key()
[all …]
/packages/apps/Dialer/
DAndroid.mk69 assets/product/res \
70 assets/quantum/res \
71 $(BASE_DIR)/contacts/common/res \
72 $(BASE_DIR)/dialer/about/res \
73 $(BASE_DIR)/dialer/app/res \
74 $(BASE_DIR)/dialer/app/voicemail/error/res \
75 $(BASE_DIR)/dialer/blocking/res \
76 $(BASE_DIR)/dialer/callcomposer/camera/camerafocus/res \
77 $(BASE_DIR)/dialer/callcomposer/cameraui/res \
78 $(BASE_DIR)/dialer/callcomposer/res \
[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/Nfc/nci/jni/
DMutex.cpp41 int res = pthread_mutex_init (&mMutex, NULL); in Mutex() local
42 if (res != 0) in Mutex()
44 ALOGE("Mutex::Mutex: fail init; error=0x%X", res); in Mutex()
60 int res = pthread_mutex_destroy (&mMutex); in ~Mutex() local
61 if (res != 0) in ~Mutex()
63 ALOGE("Mutex::~Mutex: fail destroy; error=0x%X", res); in ~Mutex()
79 int res = pthread_mutex_lock (&mMutex); in lock() local
80 if (res != 0) in lock()
82 ALOGE("Mutex::lock: fail lock; error=0x%X", res); in lock()
98 int res = pthread_mutex_unlock (&mMutex); in unlock() local
[all …]
DCondVar.cpp44 int const res = pthread_cond_init (&mCondition, &attr); in CondVar() local
45 if (res) in CondVar()
47 ALOGE("CondVar::CondVar: fail init; error=0x%X", res); in CondVar()
63 int const res = pthread_cond_destroy (&mCondition); in ~CondVar() local
64 if (res) in ~CondVar()
66 ALOGE("CondVar::~CondVar: fail destroy; error=0x%X", res); in ~CondVar()
82 int const res = pthread_cond_wait (&mCondition, mutex.nativeHandle()); in wait() local
83 if (res) in wait()
85 ALOGE("CondVar::wait: fail wait; error=0x%X", res); in wait()
141 int const res = pthread_cond_signal (&mCondition); in notifyOne() local
[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 …]
/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/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/apps/Settings/src/com/android/settings/accounts/
DAccountPreference.java98 int res; in getSyncStatusMessage() local
101 res = R.string.sync_enabled; in getSyncStatusMessage()
104 res = R.string.sync_disabled; in getSyncStatusMessage()
107 res = R.string.sync_error; in getSyncStatusMessage()
110 res = R.string.sync_in_progress; in getSyncStatusMessage()
113 res = R.string.sync_error; in getSyncStatusMessage()
116 return res; in getSyncStatusMessage()
120 int res; in getSyncStatusIcon() local
124 res = R.drawable.ic_settings_sync; in getSyncStatusIcon()
127 res = R.drawable.ic_sync_grey_holo; in getSyncStatusIcon()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationItemView.java27 import android.content.res.Resources;
252 final Resources res = mContext.getResources(); in initializeDrawableResources() local
254 res.getDimensionPixelOffset(R.dimen.folder_tl_gradient_padding); in initializeDrawableResources()
256 res.getDimensionPixelOffset(R.dimen.folder_tl_cell_content_padding); in initializeDrawableResources()
258 res.getDimensionPixelOffset(R.dimen.folder_tl_font_size); in initializeDrawableResources()
359 final Resources res = mContext.getResources(); in ConversationItemView() local
360 mTabletDevice = Utils.useTabletUI(res); in ConversationItemView()
361 mListCollapsible = !res.getBoolean(R.bool.is_tablet_landscape); in ConversationItemView()
394 mSendersImageView = new CheckableContactFlipDrawable(res, sCabAnimationDuration); in ConversationItemView()
413 final Resources res = context.getResources(); in getItemViewResources() local
[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/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/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddiyfp.h105 DiyFp res = *this; in Normalize()
106 while (!(res.f & (static_cast<uint64_t>(1) << 63))) { in Normalize()
107 res.f <<= 1; in Normalize()
108 res.e--; in Normalize()
110 return res; in Normalize()
115 DiyFp res = *this; in NormalizeBoundary() local
116 while (!(res.f & (kDpHiddenBit << 1))) { in NormalizeBoundary()
117 res.f <<= 1; in NormalizeBoundary()
118 res.e--; in NormalizeBoundary()
120 res.f <<= (kDiySignificandSize - kDpSignificandSize - 2); in NormalizeBoundary()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/lettertiles/
DLetterTileDrawable.java19 import android.content.res.Resources;
20 import android.content.res.TypedArray;
118 public LetterTileDrawable(final Resources res) { in LetterTileDrawable() argument
119 mColors = res.obtainTypedArray(R.array.letter_tile_colors); in LetterTileDrawable()
120 mSpamColor = res.getColor(R.color.spam_contact_background); in LetterTileDrawable()
121 mDefaultColor = res.getColor(R.color.letter_tile_default_color); in LetterTileDrawable()
122 mTileFontColor = res.getColor(R.color.letter_tile_font_color); in LetterTileDrawable()
123 mLetterToTileRatio = res.getFraction(R.dimen.letter_to_tile_ratio, 1, 1); in LetterTileDrawable()
125 res.getDrawable(R.drawable.product_logo_avatar_anonymous_white_color_120, null); in LetterTileDrawable()
126 mDefaultBusinessAvatar = res.getDrawable(R.drawable.quantum_ic_business_vd_theme_24, null); in LetterTileDrawable()
[all …]
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DMoreKeysResources.java71 for (final StringResource res : mDefaultResourceMap.getResources()) { in MoreKeysResources()
72 nameHistogram.put(res.mName, 0); // Initialize histogram value. in MoreKeysResources()
73 resourceNamesList.add(res.mName); in MoreKeysResources()
79 for (final StringResource res : resMap.getResources()) { in MoreKeysResources()
80 if (!mDefaultResourceMap.contains(res.mName)) { in MoreKeysResources()
81 throw new RuntimeException(res.mName + " in " + locale in MoreKeysResources()
84 final int histogramValue = nameHistogram.get(res.mName); in MoreKeysResources()
85 nameHistogram.put(res.mName, histogramValue + 1); in MoreKeysResources()
209 final StringResource res = resMap.get(name); in dumpTextsInternal() local
210 if (res != null) { in dumpTextsInternal()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DCarAudioExtFocusTest.java230 int res = doRequestFocus(mAudioManager, listenerMusic, in testMediaNavFocus() local
233 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testMediaNavFocus()
296 int res = doRequestFocus(mAudioManager, listenerMusic, in testMediaExternalMediaNavFocus() local
299 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testMediaExternalMediaNavFocus()
372 int res = doRequestFocus(mAudioManager, listenerRadio, in testExternalRadioExternalNav() local
374 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testExternalRadioExternalNav()
392 res = doRequestFocus(mAudioManager, listenerNav, in testExternalRadioExternalNav()
394 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testExternalRadioExternalNav()
441 int res = doRequestFocus(mAudioManager, listenerMusic, in testMediaExternalNav() local
444 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testMediaExternalNav()
[all …]

12345678910>>...48