Home
last modified time | relevance | path

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

12345678910>>...65

/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/apps/DeskClock/src/com/android/deskclock/
DAnimatorUtils.java51 public static final Property<View, Integer> BACKGROUND_ALPHA =
52 new Property<View, Integer>(Integer.class, "background.alpha") {
54 public Integer get(View view) {
64 public void set(View view, Integer value) {
77 public static void setBackgroundAlpha(View view, Integer value) { in setBackgroundAlpha()
86 public static final Property<ImageView, Integer> DRAWABLE_ALPHA =
87 new Property<ImageView, Integer>(Integer.class, "drawable.alpha") {
89 public Integer get(ImageView view) {
94 public void set(ImageView view, Integer value) {
99 public static final Property<ImageView, Integer> DRAWABLE_TINT =
[all …]
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DMappedButtonConfig.java49 @NonNull private final Map<Integer, MappingInfo> mapping;
50 @NonNull private final List<Integer> orderedMappedSlots;
58 public MappedButtonConfig(@NonNull Map<Integer, MappingInfo> mapping) { in MappedButtonConfig() argument
64 private List<Integer> findOrderedMappedSlots() { in findOrderedMappedSlots()
65 Set<Integer> slots = new ArraySet<>(); in findOrderedMappedSlots()
66 for (Entry<Integer, MappingInfo> entry : mapping.entrySet()) { in findOrderedMappedSlots()
69 List<Integer> orderedSlots = new ArrayList<>(slots); in findOrderedMappedSlots()
76 public List<Integer> getOrderedMappedSlots() { in getOrderedMappedSlots()
88 public List<Integer> getButtonsForSlot(int slot) { in getButtonsForSlot()
89 List<Integer> buttons = new ArrayList<>(); in getButtonsForSlot()
[all …]
DButtonChooser.java57 public List<Integer> getButtonPlacement( in getButtonPlacement()
59 @NonNull Set<Integer> allowedButtons, in getButtonPlacement()
60 @NonNull Set<Integer> disabledButtons) { in getButtonPlacement()
68 List<Integer> placedButtons = new ArrayList<>(); in getButtonPlacement()
69 List<Integer> conflicts = new ArrayList<>(); in getButtonPlacement()
78 @NonNull Set<Integer> allowedButtons, in placeButtonsInSlots()
79 @NonNull List<Integer> placedButtons, in placeButtonsInSlots()
80 @NonNull List<Integer> conflicts) { in placeButtonsInSlots()
81 List<Integer> configuredSlots = config.getOrderedMappedSlots(); in placeButtonsInSlots()
84 List<Integer> potentialButtons = config.getButtonsForSlot(slotNumber); in placeButtonsInSlots()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java63 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in getPtNodeCharactersSize() argument
79 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in getPtNodeCharactersSize() argument
99 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in getPtNodeMaximumSize() argument
122 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in calculatePtNodeArrayMaximumSize() argument
138 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in getNodeHeaderSize() argument
321 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in computeActualPtNodeArraySize() argument
408 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in computeAddresses() argument
631 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in getChildrenPosition() argument
654 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in writePlacedPtNodeArray() argument
692 int firstTerminalAddress = Integer.MAX_VALUE; in showStatistics()
[all …]
DVer2DictEncoder.java83 final HashMap<Integer, Integer> codePointOccurrenceCounts = new HashMap<>(); in makeCodePointTable()
97 final ArrayList<Entry<Integer, Integer>> codePointOccurrenceArray = in makeCodePointTable()
100 Collections.sort(codePointOccurrenceArray, new Comparator<Entry<Integer, Integer>>() { in makeCodePointTable()
102 public int compare(final Entry<Integer, Integer> a, final Entry<Integer, Integer> b) { in makeCodePointTable()
111 final HashMap<Integer, Integer> codePointToOneByteCodeMap = new HashMap<>(); in makeCodePointTable()
112 for (final Entry<Integer, Integer> entry : codePointOccurrenceArray) { in makeCodePointTable()
210 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in writePtNodeFlags() argument
219 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in writeCharacters() argument
235 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in writeChildrenPosition() argument
272 final HashMap<Integer, Integer> codePointToOneByteCodeMap) { in writePtNode() argument
DBinaryDictDecoderEncoderTests.java63 private static final SparseArray<List<Integer>> sEmptyBigrams = new SparseArray<>();
64 private static final SparseArray<List<Integer>> sStarBigrams = new SparseArray<>();
65 private static final SparseArray<List<Integer>> sChainBigrams = new SparseArray<>();
83 sChainBigrams.put(i, new ArrayList<Integer>()); in BinaryDictDecoderEncoderTests()
89 sStarBigrams.put(0, new ArrayList<Integer>()); in BinaryDictDecoderEncoderTests()
143 final SparseArray<List<Integer>> bigrams) { in addBigrams()
184 final SparseArray<List<Integer>> bigrams) { in checkDictionary()
214 final SparseArray<List<Integer>> bigrams, final int bufferType) { in timeReadingAndCheckDict()
236 final SparseArray<List<Integer>> bigrams, in runReadAndWrite()
358 final SparseArray<List<Integer>> expectedBigrams, in checkWordMap()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAnimUtils.java38 public static final Property<Drawable, Integer> DRAWABLE_ALPHA =
39 new Property<Drawable, Integer>(Integer.TYPE, "drawableAlpha") {
41 public Integer get(Drawable drawable) {
46 public void set(Drawable drawable, Integer alpha) {
70 public static final Property<LayoutParams, Integer> LAYOUT_WIDTH =
71 new Property<LayoutParams, Integer>(Integer.TYPE, "width") {
73 public Integer get(LayoutParams lp) {
78 public void set(LayoutParams lp, Integer width) {
83 public static final Property<LayoutParams, Integer> LAYOUT_HEIGHT =
84 new Property<LayoutParams, Integer>(Integer.TYPE, "height") {
[all …]
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DAidRoutingManager.java75 HashMap<String, Integer> mRouteForAid = new HashMap<String, Integer>();
94 Log.d(TAG, "mDefaultRoute=0x" + Integer.toHexString(mDefaultRoute)); in AidRoutingManager()
97 Log.d(TAG, "mDefaultOffHostRoute=0x" + Integer.toHexString(mDefaultOffHostRoute)); in AidRoutingManager()
105 if (DBG) Log.d(TAG, "mAidMatchingSupport=0x" + Integer.toHexString(mAidMatchingSupport)); in AidRoutingManager()
108 if (DBG) Log.d(TAG, "mDefaultIsoDepRoute=0x" + Integer.toHexString(mDefaultIsoDepRoute)); in AidRoutingManager()
139 for (Map.Entry<String, Integer> aidEntry : mRouteForAid.entrySet()) { in clearNfcRoutingTableLocked()
184 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement()
189 int index = Integer.parseInt(se.substring(3)); in getRouteForSecureElement()
203 ArrayList<Integer> seList = new ArrayList<Integer>(); in configureRouting()
207 HashMap<String, Integer> routeForAid = new HashMap<String, Integer>(aidMap.size()); in configureRouting()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyConfigTest.java74 Integer expectedMinValue = 1; in testWriteReadIntegerValue()
75 Integer expectedMaxValue = 20; in testWriteReadIntegerValue()
76 CarPropertyConfig<Integer> config = CarPropertyConfig in testWriteReadIntegerValue()
77 .newBuilder(Integer.class, INT_PROPERTY_ID, CAR_AREA_TYPE) in testWriteReadIntegerValue()
82 CarPropertyConfig<Integer> configRead = readFromParcel(); in testWriteReadIntegerValue()
86 assertEquals(Integer.class, configRead.getPropertyType()); in testWriteReadIntegerValue()
120 CarPropertyConfig<Integer[]> config = CarPropertyConfig in testWriteReadIntegerArray()
121 .newBuilder(Integer[].class, INT_ARRAY_PROPERTY_ID, CAR_AREA_TYPE) in testWriteReadIntegerArray()
123 .addAreaConfig(WINDOW_DRIVER, new Integer[] {10, 20, 30}, new Integer[0]) in testWriteReadIntegerArray()
128 CarPropertyConfig<Integer[]> configRead = readFromParcel(); in testWriteReadIntegerArray()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSlidingWindowTest.java44 final List<Integer> elements = Arrays.asList(3, 4); in testAdd()
45 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testAdd()
51 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testAddOverflow()
52 final List<Integer> expectedElements = Arrays.asList(6, 7, 8, 9, 10); in testAddOverflow()
53 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testAddOverflow()
59 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testStream()
60 final List<Integer> expectedElements = Arrays.asList(6, 7, 8, 9, 10); in testStream()
61 SlidingWindow<Integer> window = new SlidingWindow<>(5); in testStream()
63 for (Integer e : expectedElements) { in testStream()
69 final List<Integer> elements = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); in testCount()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DPlayerApplicationSettings.java62 private Map<Integer, Integer> mSettings = new HashMap<Integer, Integer>();
68 private Map<Integer, ArrayList<Integer>> mSupportedValues =
69 new HashMap<Integer, ArrayList<Integer>>();
78 ArrayList<Integer> supportedValues = new ArrayList<Integer>(); in makeSupportedSettings()
96 for (Integer setting : mSettings.keySet()) { in getAvrcpSettings()
100 for (Integer setting : mSettings.keySet()) { in getAvrcpSettings()
142 for (Integer setting : mSupportedValues.keySet()) { in supportsSettings()
147 for (Integer settingId : mSettings.keySet()) { in supportsSettings()
169 for (Integer settingId : mSettings.keySet()) { in getNativeSettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java34 private static final Map<ContentResolver, Table<Integer, String, Object>> sUserDataMap =
40 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putStringForUser()
53 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getStringForUser()
62 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putIntForUser()
72 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getIntForUser()
75 return object instanceof Integer ? (Integer) object : def; in getIntForUser()
82 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putLongForUser()
92 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getLongForUser()
102 final Table<Integer, String, Object> userTable = getUserTable(resolver); in putFloatForUser()
112 final Table<Integer, String, Object> userTable = getUserTable(resolver); in getFloatForUser()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java43 private static class HotKeySet extends HashSet<Pair<Integer, Integer>> { };
63 final Pair<Integer, Integer> key = in onKeyDown()
93 final Pair<Integer, Integer> key = Pair.create(keyCode, metaState); in onKeyUp()
196 final Integer keyCode = Integer.parseInt(valuePair[0]); in parseHotKeys()
197 final Integer metaState = Integer.parseInt(valuePair[1]); in parseHotKeys()
198 final Pair<Integer, Integer> key = Pair.create( in parseHotKeys()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DScrollController.java340 || mScrollMin == Integer.MIN_VALUE) { in updateScrollMin()
348 mScrollMin = Integer.MIN_VALUE; in invalidateScrollMin()
349 mMinEdge = Integer.MIN_VALUE; in invalidateScrollMin()
350 mTouchScrollMin = Integer.MIN_VALUE; in invalidateScrollMin()
361 || mScrollMax == Integer.MAX_VALUE) { in updateScrollMax()
369 mScrollMax = Integer.MAX_VALUE; in invalidateScrollMax()
370 mMaxEdge = Integer.MAX_VALUE; in invalidateScrollMax()
371 mTouchScrollMax = Integer.MAX_VALUE; in invalidateScrollMax()
419 mScrollCenter = Integer.MIN_VALUE; in reset()
420 mScrollMin = Integer.MIN_VALUE; in reset()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DSecureAlbum.java37 private int mMinImageId = Integer.MAX_VALUE; // the smallest id of images
38 private int mMaxImageId = Integer.MIN_VALUE; // the biggest id in images
39 private int mMinVideoId = Integer.MAX_VALUE; // the smallest id of videos
40 private int mMaxVideoId = Integer.MIN_VALUE; // the biggest id of videos
133 private ArrayList<Integer> queryExistingIds(Uri uri, int minId, int maxId) { in queryExistingIds()
134 ArrayList<Integer> ids = new ArrayList<Integer>(); in queryExistingIds()
135 if (minId == Integer.MAX_VALUE || maxId == Integer.MIN_VALUE) return ids; in queryExistingIds()
169 ArrayList<Integer> imageIds = queryExistingIds( in updateExistingItems()
171 ArrayList<Integer> videoIds = queryExistingIds( in updateExistingItems()
179 int id = Integer.parseInt(path.getSuffix()); in updateExistingItems()
[all …]
/packages/services/Car/car-lib/src/android/car/
DCarInfoManager.java39 @ValueTypeDef(type = Integer.class)
47 @ValueTypeDef(type = Integer.class)
53 @ValueTypeDef(type = Integer.class)
73 @ValueTypeDef(type = Integer.class)
79 @ValueTypeDef(type = Integer.class)
85 @ValueTypeDef(type = Integer.class)
91 @ValueTypeDef(type = Integer.class)
98 @ValueTypeDef(type = Integer.class)
104 @ValueTypeDef(type = Integer.class)
111 @ValueTypeDef(type = Integer[].class)
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DEnabledNetworkModePreferenceController.java92 final int settingsMode = Integer.parseInt((String) object); in onPreferenceChange()
220 preference.setValue(Integer.toString(networkMode)); in updatePreferenceValueAndSummary()
226 Integer.toString(TelephonyManager.NETWORK_MODE_TDSCDMA_GSM_WCDMA)); in updatePreferenceValueAndSummary()
233 preference.setValue(Integer.toString(TelephonyManager.NETWORK_MODE_WCDMA_PREF)); in updatePreferenceValueAndSummary()
236 preference.setValue(Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
244 Integer.toString(TelephonyManager.NETWORK_MODE_GSM_ONLY)); in updatePreferenceValueAndSummary()
248 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
263 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_GSM_WCDMA)); in updatePreferenceValueAndSummary()
268 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
279 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_CDMA_EVDO)); in updatePreferenceValueAndSummary()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DEnabledNetworkModePreferenceController.java92 final int settingsMode = Integer.parseInt((String) object); in onPreferenceChange()
220 preference.setValue(Integer.toString(networkMode)); in updatePreferenceValueAndSummary()
226 Integer.toString(TelephonyManager.NETWORK_MODE_TDSCDMA_GSM_WCDMA)); in updatePreferenceValueAndSummary()
233 preference.setValue(Integer.toString(TelephonyManager.NETWORK_MODE_WCDMA_PREF)); in updatePreferenceValueAndSummary()
236 preference.setValue(Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
244 Integer.toString(TelephonyManager.NETWORK_MODE_GSM_ONLY)); in updatePreferenceValueAndSummary()
248 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
263 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_GSM_WCDMA)); in updatePreferenceValueAndSummary()
268 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary()
279 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_CDMA_EVDO)); in updatePreferenceValueAndSummary()
[all …]
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java67 private final ArrayList<Integer> mBackgroundUsersToRestart = new ArrayList<>();
72 private final ArrayList<Integer> mBackgroundUsersRestartedHere = new ArrayList<>();
125 ArrayList<Integer> backgroundUsersToRestart; in dump()
126 ArrayList<Integer> backgroundUsersRestarted; in dump()
202 Integer user = userHandle; in setUserLockStatus()
233 public ArrayList<Integer> startAllBackgroundUsers() { in startAllBackgroundUsers()
234 ArrayList<Integer> users; in startAllBackgroundUsers()
240 ArrayList<Integer> startedUsers = new ArrayList<>(); in startAllBackgroundUsers()
241 for (Integer user : users) { in startAllBackgroundUsers()
266 ArrayList<Integer> usersToRemove = new ArrayList<>(); in startAllBackgroundUsers()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java20 import static java.lang.Integer.toHexString;
148 private final Set<Integer> mSupportedMessageTypes = new ArraySet<>(Arrays.asList(
205 mCoreId = (int) (getCoreId.get() % Integer.MAX_VALUE); in VmsHalService()
308 ArrayList<Integer> vec = v.value.int32Values; in handleHalEvents()
363 private void handleStartSessionEvent(List<Integer> message) { in handleStartSessionEvent()
432 private void handleDataEvent(List<Integer> message, byte[] payload) in handleDataEvent()
452 private void handleSubscribeEvent(List<Integer> message) throws RemoteException { in handleSubscribeEvent()
468 private void handleSubscribeToPublisherEvent(List<Integer> message) in handleSubscribeToPublisherEvent()
489 private void handleUnsubscribeEvent(List<Integer> message) throws RemoteException { in handleUnsubscribeEvent()
505 private void handleUnsubscribeFromPublisherEvent(List<Integer> message) in handleUnsubscribeFromPublisherEvent()
[all …]
DCarPropertyUtils.java20 import static java.lang.Integer.toHexString;
58 } else if (Integer.class == clazz) { in toCarPropertyValue()
70 } else if (Integer[].class == clazz) { in toCarPropertyValue()
71 Integer[] values = new Integer[v.int32Values.size()]; in toCarPropertyValue()
109 } else if (o instanceof Integer) { in toVehiclePropValue()
110 v.int32Values.add((Integer) o); in toVehiclePropValue()
111 } else if (o instanceof Integer[]) { in toVehiclePropValue()
112 Collections.addAll(v.int32Values, (Integer[]) o); in toVehiclePropValue()
168 if (classMatched(Integer.class, clazz)) { in toCarPropertyConfig()
176 classMatched(Integer[].class, clazz) || in toCarPropertyConfig()
[all …]
/packages/services/Car/service/src/com/android/car/
DAppFocusService.java50 private final HashMap<Integer, OwnershipClientInfo> mFocusOwners = new HashMap<>();
51 private final Set<Integer> mActiveAppTypes = new HashSet<>();
124 Set<Integer> alreadyOwnedAppTypes = info.getOwnedAppTypes(); in requestAppFocus()
184 Set<Integer> currentlyOwnedAppTypes = info.getOwnedAppTypes(); in abandonAppFocus()
241 for (Integer appType : info.getOwnedAppTypes()) { in onBinderDeath()
289 HashSet<Map.Entry<Integer, OwnershipClientInfo>> owners; in registerContextOwnerChangedCallback()
294 for (Map.Entry<Integer, OwnershipClientInfo> entry : owners) { in registerContextOwnerChangedCallback()
357 private final Set<Integer> mAppTypes = new HashSet<>();
367 private synchronized Set<Integer> getAppTypes() { in getAppTypes()
371 private synchronized boolean addAppType(Integer appType) { in addAppType()
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailAdapter.java83 private int todayHeaderPosition = Integer.MAX_VALUE;
85 private int yesterdayHeaderPosition = Integer.MAX_VALUE;
87 private int olderHeaderPosition = Integer.MAX_VALUE;
89 private int voicemailAlertPosition = Integer.MAX_VALUE;
101 Set<Integer> deletedVoicemailPosition = new ArraySet<>();
143 todayHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions()
144 yesterdayHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions()
145 olderHeaderPosition = Integer.MAX_VALUE; in updateHeaderPositions()
174 if (voicemailAlertPosition != Integer.MAX_VALUE) { in updateHeaderPositions()
182 todayHeaderPosition = numItemsInToday > 0 ? alertOffSet : Integer.MAX_VALUE; in updateHeaderPositions()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DNetworkSecurityPreferenceController.java45 private static final Map<Integer, Integer> SECURITY_TYPE_TO_DESC_RES =
48 private static final List<Integer> SECURITY_TYPES = Arrays.asList(
78 mSecurityTypeIds[i] = Integer.toString(type); in onCreateInternal()
83 getPreference().setDefaultValue(Integer.toString(AccessPoint.SECURITY_NONE)); in onCreateInternal()
93 mSelectedSecurityType = Integer.parseInt(newValue.toString()); in handlePreferenceChanged()
105 private static Map<Integer, Integer> createSecurityTypeDescMap() { in createSecurityTypeDescMap()
106 Map<Integer, Integer> map = new HashMap<>(); in createSecurityTypeDescMap()

12345678910>>...65