Home
last modified time | relevance | path

Searched refs:Integer (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/packages/apps/Gallery/tests/src/com/android/camera/gallery/
DLruCacheUnitTests.java9 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testPut()
10 Integer key = Integer.valueOf(1); in testPut()
11 Integer value = Integer.valueOf(3); in testPut()
17 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testTracingInUsedObject()
18 Integer key = Integer.valueOf(1); in testTracingInUsedObject()
19 Integer value = new Integer(3); in testTracingInUsedObject()
29 LruCache<Integer, Integer> cache = new LruCache<Integer, Integer>(2); in testLruAlgorithm()
30 cache.put(0, new Integer(0)); in testLruAlgorithm()
36 assertEquals(Integer.valueOf(0), cache.get(0)); in testLruAlgorithm()
42 private final LruCache<Integer,Integer> mMap;
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardIconsSet.java34 private static final HashMap<Integer, Integer> ATTR_ID_TO_ICON_ID
35 = new HashMap<Integer, Integer>();
38 private static final HashMap<String, Integer> sNameToIdsMap = new HashMap<String, Integer>();
68 final Integer attrId = (Integer)NAMES_AND_ATTR_IDS[i + 1];
79 for (final Integer attrId : ATTR_ID_TO_ICON_ID.keySet()) { in loadIcons()
83 final Integer iconId = ATTR_ID_TO_ICON_ID.get(attrId); in loadIcons()
102 Integer iconId = sNameToIdsMap.get(name); in getIconId()
/packages/apps/Mms/src/com/android/mms/
DMmsConfig.java56 private static int mRecipientLimit = Integer.MAX_VALUE; // default value
312 mMaxMessageSize = Integer.parseInt(text); in loadMmsSettings()
314 mMaxImageHeight = Integer.parseInt(text); in loadMmsSettings()
316 mMaxImageWidth = Integer.parseInt(text); in loadMmsSettings()
318 mDefaultSMSMessagesPerThread = Integer.parseInt(text); in loadMmsSettings()
320 mDefaultMMSMessagesPerThread = Integer.parseInt(text); in loadMmsSettings()
322 mMinMessageCountPerThread = Integer.parseInt(text); in loadMmsSettings()
324 mMaxMessageCountPerThread = Integer.parseInt(text); in loadMmsSettings()
326 mRecipientLimit = Integer.parseInt(text); in loadMmsSettings()
328 mRecipientLimit = Integer.MAX_VALUE; in loadMmsSettings()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaDetails.java29 public class MediaDetails implements Iterable<Entry<Integer, Object>> {
33 private TreeMap<Integer, Object> mDetails = new TreeMap<Integer, Object>();
34 private HashMap<Integer, Integer> mUnits = new HashMap<Integer, Integer>();
90 public Iterator<Entry<Integer, Object>> iterator() { in iterator()
112 Integer.valueOf(value.toString())); in setExifData()
DMediaSet.java240 public Future<Integer> requestSync(SyncListener listener) { in requestSync()
245 private static final Future<Integer> FUTURE_STUB = new Future<Integer>() {
260 public Integer get() {
268 protected Future<Integer> requestSyncOnMultipleSets(MediaSet[] sets, SyncListener listener) { in requestSyncOnMultipleSets()
272 private class MultiSetSyncFuture implements Future<Integer>, SyncListener {
276 private final Future<Integer> mFutures[];
300 for (Future<Integer> future : mFutures) future.cancel(); in cancel()
315 public synchronized Integer get() { in get()
DFace.java37 mPosition.left = Integer.parseInt(tokenizer.nextToken()); in Face()
38 mPosition.top = Integer.parseInt(tokenizer.nextToken()); in Face()
39 mPosition.right = Integer.parseInt(tokenizer.nextToken()); in Face()
40 mPosition.bottom = Integer.parseInt(tokenizer.nextToken()); in Face()
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DExpirableCacheTest.java31 private ExpirableCache<String, Integer> mCache;
36 LruCache<String, CachedValue<Integer>> lruCache = in setUp()
37 new LruCache<String, ExpirableCache.CachedValue<Integer>>(20); in setUp()
105 new LruCache<String, ExpirableCache.CachedValue<Integer>>(10) { in testComputingCache()
107 protected CachedValue<Integer> create(String key) { in testComputingCache()
113 CachedValue<Integer> cachedValue = mCache.getCachedValue("a"); in testComputingCache()
120 CachedValue<Integer> expiredCachedValue = mCache.getCachedValue("a"); in testComputingCache()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLocaleUtils.java152 return getForSort(Integer.valueOf(nameStyle)).getSortKey(displayName); in getSortKey()
156 return getForNameLookup(Integer.valueOf(nameStyle)).getNameLookupKeys(name); in getNameLookupKeys()
167 private ContactLocaleUtilsBase getForNameLookup(Integer nameStyle) { in getForNameLookup()
169 Integer adjustedUtil = Integer.valueOf(getAdjustedStyle(nameStyleInt)); in getForNameLookup()
171 adjustedUtil = Integer.valueOf(FullNameStyle.CHINESE); in getForNameLookup()
176 private synchronized ContactLocaleUtilsBase get(Integer nameStyle) { in get()
193 private ContactLocaleUtilsBase getForSort(Integer nameStyle) { in getForSort()
194 return get(Integer.valueOf(getAdjustedStyle(nameStyle.intValue()))); in getForSort()
DProfileAwareUriMatcher.java44 private static final List<Integer> PROFILE_URIS = Lists.newArrayList();
48 private static final Map<Integer, Integer> PROFILE_URI_ID_MAP = Maps.newHashMap();
53 private static final Map<Integer, Integer> PROFILE_URI_LOOKUP_KEY_MAP = Maps.newHashMap();
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DEas.java68 public static final String FILTER_AUTO = Integer.toString(SyncWindow.SYNC_WINDOW_AUTO);
71 public static final String FILTER_1_DAY = Integer.toString(SyncWindow.SYNC_WINDOW_1_DAY);
72 public static final String FILTER_3_DAYS = Integer.toString(SyncWindow.SYNC_WINDOW_3_DAYS);
73 public static final String FILTER_1_WEEK = Integer.toString(SyncWindow.SYNC_WINDOW_1_WEEK);
74 public static final String FILTER_2_WEEKS = Integer.toString(SyncWindow.SYNC_WINDOW_2_WEEKS);
75 public static final String FILTER_1_MONTH = Integer.toString(SyncWindow.SYNC_WINDOW_1_MONTH);
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DInputModeSwitcher.java378 mToggleStateCn = Integer.parseInt(r.getString(R.string.toggle_cn)); in InputModeSwitcher()
379 mToggleStateCnCand = Integer.parseInt(r in InputModeSwitcher()
381 mToggleStateEnLower = Integer.parseInt(r in InputModeSwitcher()
383 mToggleStateEnUpper = Integer.parseInt(r in InputModeSwitcher()
385 mToggleStateEnSym1 = Integer.parseInt(r in InputModeSwitcher()
387 mToggleStateEnSym2 = Integer.parseInt(r in InputModeSwitcher()
389 mToggleStateSmiley = Integer.parseInt(r in InputModeSwitcher()
391 mToggleStatePhoneSym = Integer.parseInt(r in InputModeSwitcher()
394 mToggleStateGo = Integer in InputModeSwitcher()
396 mToggleStateSearch = Integer.parseInt(r in InputModeSwitcher()
[all …]
/packages/apps/Phone/src/com/android/phone/
DCarrierLogo.java30 private static Map<String, Integer> sLogoMap = null;
32 private static Map<String, Integer> getLogoMap() { in getLogoMap()
34 sLogoMap = new HashMap<String, Integer>(); in getLogoMap()
48 Integer res = getLogoMap().get(name); in getLogo()
DAnimationUtils.java221 + "(" + Integer.toHexString(from.hashCode()) + " -> " in startCrossFade()
222 + Integer.toHexString(to.hashCode()) + ")"); in startCrossFade()
234 + Integer.toHexString(from.hashCode()) + " -> " in startCrossFade()
235 + Integer.toHexString(to.hashCode()) + ")"); in startCrossFade()
243 + Integer.toHexString(from.hashCode()) + " -> " in startCrossFade()
244 + Integer.toHexString(to.hashCode()) + ")"); in startCrossFade()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DSuggestionSpanUtils.java59 public static final Integer OBJ_FLAG_EASY_CORRECT = (Integer) CompatUtils
61 public static final Integer OBJ_FLAG_MISSPELLED = (Integer) CompatUtils
63 public static final Integer OBJ_FLAG_AUTO_CORRECTION = (Integer) CompatUtils
65 public static final Integer OBJ_SUGGESTIONS_MAX_SIZE = (Integer) CompatUtils
/packages/apps/VideoEditor/src/com/android/videoeditor/
DTransitionsAdapter.java30 public class TransitionsAdapter extends BaseAdapterWithImages<Integer> {
73 final ImageTextViewHolder<Integer> viewHolder; in getView()
79 viewHolder = new ImageTextViewHolder<Integer>(rowView); in getView()
83 viewHolder = (ImageTextViewHolder<Integer>)convertView.getTag(); in getView()
102 TransitionType.TRANSITION_RESOURCE_IDS[(Integer)data]); in loadImage()
DOverlaysAdapter.java34 public class OverlaysAdapter extends BaseAdapterWithImages<Integer> {
79 final ImageTextViewHolder<Integer> viewHolder; in getView()
85 viewHolder = new ImageTextViewHolder<Integer>(rowView); in getView()
89 viewHolder = (ImageTextViewHolder<Integer>)convertView.getTag(); in getView()
111 canvas.drawBitmap(ImageUtils.buildOverlayBitmap(mContext, null, (Integer)data, mTitle, in loadImage()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DDefaultCorpusRanker.java80 mShortcuts.getCorpusScores(new Consumer<Map<String,Integer>>(){ in create()
81 public boolean consume(Map<String, Integer> clickScores) { in create()
99 private final Map<String,Integer> mClickScores;
101 public CorpusComparator(Map<String,Integer> clickScores) { in CorpusComparator()
130 return Integer.MAX_VALUE; in getCorpusScore()
138 Integer clickScore = mClickScores.get(corpus.getName()); in getClickScore()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppPreference.java64 private HashMap<String, Integer> mChannels = new HashMap<String, Integer>();
93 mChannels = (HashMap<String, Integer>) mChannelPreference.getAll(); in init()
99 return remoteDevice.getAddress() + "_" + Integer.toHexString(uuid); in getChannelKey()
118 Integer channel = null; in getChannel()
121 if (V) Log.v(TAG, "getChannel for " + remoteDevice + "_" + Integer.toHexString(uuid) + in getChannel()
138 … if (V) Log.v(TAG, "Setchannel for " + remoteDevice + "_" + Integer.toHexString(uuid) + " to " in setChannel()
/packages/apps/Email/src/com/android/email/mail/store/imap/
DImapUtility.java76 Integer.parseInt(item); // Don't need the value; just ensure it's valid in getImapSequenceValues()
108 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues()
109 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues()
112 list.add(Integer.toString(i)); in getImapRangeValues()
116 list.add(Integer.toString(i)); in getImapRangeValues()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DRestorableView.java35 private final HashMap<Integer, Runnable> clickRunnables = new HashMap<Integer, Runnable>();
36 private final HashSet<Integer> changedViews = new HashSet<Integer>();
68 for (Entry<Integer, Runnable> entry : clickRunnables.entrySet()) { in onConfigurationChanged()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DDefaultCorpusRankerTest.java67 private void setCorpusScores(Integer corpus1, Integer corpus2, Integer webCorpus) { in setCorpusScores()
68 Map<String,Integer> scores = new HashMap<String,Integer>(); in setCorpusScores()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerProximityInfo.java43 final TreeMap<Integer, Integer> indices) { in buildProximityIndices() argument
49 final TreeMap<Integer, Integer> indices) { in computeIndex() argument
50 final Integer result = indices.get(characterCode); in computeIndex()
62 final private static TreeMap<Integer, Integer> INDICES = new TreeMap<Integer, Integer>();
124 final private static TreeMap<Integer, Integer> INDICES = new TreeMap<Integer, Integer>();
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsMockPackageManager.java39 private final HashMap<Integer, String> mForward = new HashMap<Integer, String>();
40 private final HashMap<String, Integer> mReverse = new HashMap<String, Integer>();
71 Integer uid = mReverse.get(packageName); in getApplicationInfo()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigService.java58 int startId = Integer.decode(channelRange.substring(0, dashIndex)); in setChannelRange()
59 int endId = Integer.decode(channelRange.substring(dashIndex + 1)); in setChannelRange()
68 int messageId = Integer.decode(channelRange); in setChannelRange()
93 int startId = Integer.decode(channelRange.substring(0, dashIndex)); in isOperatorDefinedEmergencyId()
94 int endId = Integer.decode(channelRange.substring(dashIndex + 1)); in isOperatorDefinedEmergencyId()
99 int emergencyMessageId = Integer.decode(channelRange); in isOperatorDefinedEmergencyId()
/packages/apps/Calendar/src/com/android/calendar/event/
DEventViewUtils.java75 public static int findMinutesInReminderList(ArrayList<Integer> values, int minutes) { in findMinutesInReminderList()
97 public static int findMethodInReminderList(ArrayList<Integer> values, int method) { in findMethodInReminderList()
116 ArrayList<LinearLayout> reminderItems, ArrayList<Integer> reminderMinuteValues, in reminderItemsToReminders()
117 ArrayList<Integer> reminderMethodValues) { in reminderItemsToReminders()
135 public static void addMinutesToList(Context context, ArrayList<Integer> values, in addMinutesToList()
166 public static void reduceMethodList(ArrayList<Integer> values, ArrayList<String> labels, in reduceMethodList()
175 allowedValues[i] = Integer.parseInt(allowedStrings[i], 10); in reduceMethodList()
225 ArrayList<LinearLayout> items, ArrayList<Integer> minuteValues, in addReminder()
226 ArrayList<String> minuteLabels, ArrayList<Integer> methodValues, in addReminder()

12345678910>>...19