/packages/apps/Gallery/tests/src/com/android/camera/gallery/ |
D | LruCacheUnitTests.java | 9 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/ |
D | AnimatorUtils.java | 51 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/modules/NetworkStack/src/com/android/networkstack/netlink/ |
D | TcpInfo.java | 45 RTO(Integer.BYTES), 46 ATO(Integer.BYTES), 47 SND_MSS(Integer.BYTES), 48 RCV_MSS(Integer.BYTES), 49 UNACKED(Integer.BYTES), 50 SACKED(Integer.BYTES), 51 LOST(Integer.BYTES), 52 RETRANS(Integer.BYTES), 53 FACKETS(Integer.BYTES), 54 LAST_DATA_SENT(Integer.BYTES), [all …]
|
/packages/apps/Dialer/java/com/android/incallui/incall/impl/ |
D | MappedButtonConfig.java | 49 @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 …]
|
D | ButtonChooser.java | 57 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/ |
D | BinaryDictEncoderUtils.java | 63 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 …]
|
D | Ver2DictEncoder.java | 83 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
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAnimUtils.java | 38 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/ |
D | AidRoutingManager.java | 75 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() 210 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/ |
D | CarPropertyConfigTest.java | 74 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/ |
D | SlidingWindowTest.java | 44 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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowSecureSettings.java | 34 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/ |
D | EmojiAltPhysicalKeyDetector.java | 43 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/Settings/src/com/android/settings/network/telephony/ |
D | EnabledNetworkModePreferenceController.java | 135 final int settingsMode = Integer.parseInt((String) object); in onPreferenceChange() 365 oldEntryValue = Integer.toString( in add5gListItem() 388 int networkModeInt = Integer.valueOf(networkMode.toString()); in transformLteEntryValueTo5gEntryValue() 389 return Integer.toString(addNrToLteNetworkType(networkModeInt)); in transformLteEntryValueTo5gEntryValue() 426 preference.setValue(Integer.toString(networkMode)); in updatePreferenceValueAndSummary() 432 Integer.toString(TelephonyManagerConstants.NETWORK_MODE_TDSCDMA_GSM_WCDMA)); in updatePreferenceValueAndSummary() 439 … preference.setValue(Integer.toString(TelephonyManagerConstants.NETWORK_MODE_WCDMA_PREF)); in updatePreferenceValueAndSummary() 442 preference.setValue(Integer.toString(TelephonyManagerConstants in updatePreferenceValueAndSummary() 450 Integer.toString(TelephonyManagerConstants.NETWORK_MODE_GSM_ONLY)); in updatePreferenceValueAndSummary() 454 Integer.toString(TelephonyManagerConstants in updatePreferenceValueAndSummary() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | ScrollController.java | 340 || 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/ |
D | SecureAlbum.java | 37 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/ |
D | CarInfoManager.java | 39 @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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | EnabledNetworkModePreferenceController.java | 92 final int settingsMode = Integer.parseInt((String) object); in onPreferenceChange() 216 preference.setValue(Integer.toString(networkMode)); in updatePreferenceValueAndSummary() 222 Integer.toString(TelephonyManager.NETWORK_MODE_TDSCDMA_GSM_WCDMA)); in updatePreferenceValueAndSummary() 229 preference.setValue(Integer.toString(TelephonyManager.NETWORK_MODE_WCDMA_PREF)); in updatePreferenceValueAndSummary() 232 preference.setValue(Integer.toString(TelephonyManager in updatePreferenceValueAndSummary() 240 Integer.toString(TelephonyManager.NETWORK_MODE_GSM_ONLY)); in updatePreferenceValueAndSummary() 244 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary() 259 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_GSM_WCDMA)); in updatePreferenceValueAndSummary() 264 Integer.toString(TelephonyManager in updatePreferenceValueAndSummary() 275 Integer.toString(TelephonyManager.NETWORK_MODE_LTE_CDMA_EVDO)); in updatePreferenceValueAndSummary() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 20 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/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipPixel.java | 125 minWidth = Integer.parseInt(m1.group(1)); in BipPixel() 126 maxWidth = Integer.parseInt(m1.group(1)); in BipPixel() 127 minHeight = Integer.parseInt(m1.group(2)); in BipPixel() 128 maxHeight = Integer.parseInt(m1.group(2)); in BipPixel() 137 minWidth = Integer.parseInt(m2.group(1)); in BipPixel() 138 minHeight = Integer.parseInt(m2.group(2)); in BipPixel() 139 maxWidth = Integer.parseInt(m2.group(3)); in BipPixel() 140 maxHeight = Integer.parseInt(m2.group(4)); in BipPixel() 148 minWidth = Integer.parseInt(m3.group(1)); in BipPixel() 149 maxWidth = Integer.parseInt(m3.group(2)); in BipPixel() [all …]
|
/packages/services/Car/service/src/com/android/car/user/ |
D | CarUserService.java | 69 private final ArrayList<Integer> mBackgroundUsersToRestart = new ArrayList<>(); 74 private final ArrayList<Integer> mBackgroundUsersRestartedHere = new ArrayList<>(); 127 ArrayList<Integer> backgroundUsersToRestart; in dump() 128 ArrayList<Integer> backgroundUsersRestarted; in dump() 211 Integer user = userHandle; in setUserLockStatus() 242 public ArrayList<Integer> startAllBackgroundUsers() { in startAllBackgroundUsers() 243 ArrayList<Integer> users; in startAllBackgroundUsers() 249 ArrayList<Integer> startedUsers = new ArrayList<>(); in startAllBackgroundUsers() 250 for (Integer user : users) { in startAllBackgroundUsers() 275 ArrayList<Integer> usersToRemove = new ArrayList<>(); in startAllBackgroundUsers() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 50 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/Car/Dialer/src/com/android/car/dialer/ui/ |
D | TelecomActivityViewModel.java | 56 private final MutableLiveData<Integer> mDialerAppStateLiveData; 60 private final MutableLiveData<Integer> mToolbarTitleMode; 128 public MutableLiveData<Integer> getToolbarTitleMode() { in getToolbarTitleMode() 135 public MutableLiveData<Integer> getDialerAppState() { in getDialerAppState() 154 private static class DialerAppStateLiveData extends MediatorLiveData<Integer> { 184 public void setValue(@DialerAppState Integer newValue) { in setValue() 193 private LiveData<Integer> mHfpStateLiveData; 195 private LiveData<Integer> mBluetoothStateLiveData; 214 private void onHfpStateChanged(Integer state) { in onHfpStateChanged() 222 private void onBluetoothStateChanged(Integer state) { in onBluetoothStateChanged() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/ |
D | NewVoicemailAdapter.java | 83 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/ |
D | NetworkSecurityPreferenceController.java | 45 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()
|