/packages/apps/Car/Settings/src/com/android/car/settings/units/ |
D | UnitsMap.java | 97 HashMap<Integer, Unit> map = new HashMap(); in createMap() local 98 map.put(VehicleUnit.METER_PER_SEC, METER_PER_SEC); in createMap() 99 map.put(VehicleUnit.RPM, RPM); in createMap() 100 map.put(VehicleUnit.HERTZ, HERTZ); in createMap() 101 map.put(VehicleUnit.PERCENTILE, PERCENTILE); in createMap() 102 map.put(VehicleUnit.MILLIMETER, MILLIMETER); in createMap() 103 map.put(VehicleUnit.METER, METER); in createMap() 104 map.put(VehicleUnit.KILOMETER, KILOMETER); in createMap() 105 map.put(VehicleUnit.MILE, MILE); in createMap() 106 map.put(VehicleUnit.CELSIUS, CELSIUS); in createMap() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/ |
D | PropertyPermissionMapping.java | 37 map(Car.PERMISSION_CONTROL_CAR_DOORS, in PropertyPermissionMapping() 41 map(Car.PERMISSION_CONTROL_CAR_MIRRORS, in PropertyPermissionMapping() 48 map(Car.PERMISSION_CONTROL_CAR_SEATS, in PropertyPermissionMapping() 76 map(Car.PERMISSION_CONTROL_CAR_WINDOWS, in PropertyPermissionMapping() 81 map(Car.PERMISSION_CONTROL_CAR_CLIMATE, in PropertyPermissionMapping() 104 map(Car.PERMISSION_IDENTIFICATION, VehiclePropertyIds.INFO_VIN); in PropertyPermissionMapping() 105 map(Car.PERMISSION_CAR_INFO, in PropertyPermissionMapping() 118 map(Car.PERMISSION_MILEAGE, VehiclePropertyIds.PERF_ODOMETER); in PropertyPermissionMapping() 119 map(Car.PERMISSION_SPEED, in PropertyPermissionMapping() 123 map(Car.PERMISSION_CAR_ENGINE_DETAILED, in PropertyPermissionMapping() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/ |
D | BufferManager.java | 397 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded() local 398 if (map == null) { in createNewWriteFileIfNeeded() 399 map = new TreeMap<>(); in createNewWriteFileIfNeeded() 400 mChunkMap.put(id, map); in createNewWriteFileIfNeeded() 409 map.put(positionUs, Pair.create(sampleChunk, 0)); in createNewWriteFileIfNeeded() 411 mStorageManager.updateIndexFile(id, map.size(), positionUs, sampleChunk, 0); in createNewWriteFileIfNeeded() 415 map.put(positionUs, Pair.create(currentChunk, currentOffset)); in createNewWriteFileIfNeeded() 418 id, map.size(), positionUs, currentChunk, currentOffset); in createNewWriteFileIfNeeded() 436 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage() local 437 if (map == null) { in loadTrackFromStorage() [all …]
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/ |
D | BufferManager.java | 394 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(id); in createNewWriteFileIfNeeded() local 395 if (map == null) { in createNewWriteFileIfNeeded() 396 map = new TreeMap<>(); in createNewWriteFileIfNeeded() 397 mChunkMap.put(id, map); in createNewWriteFileIfNeeded() 406 map.put(positionUs, Pair.create(sampleChunk, 0)); in createNewWriteFileIfNeeded() 408 mStorageManager.updateIndexFile(id, map.size(), positionUs, sampleChunk, 0); in createNewWriteFileIfNeeded() 412 map.put(positionUs, Pair.create(currentChunk, currentOffset)); in createNewWriteFileIfNeeded() 415 id, map.size(), positionUs, currentChunk, currentOffset); in createNewWriteFileIfNeeded() 432 SortedMap<Long, Pair<SampleChunk, Integer>> map = mChunkMap.get(trackId); in loadTrackFromStorage() local 433 if (map == null) { in loadTrackFromStorage() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/ |
D | CarPackageManagerServiceTest.java | 66 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_SingleActivity() local 68 mService.parseConfigList(config, map); in testParseConfigList_SingleActivity() 70 assertTrue(map.get("com.android.test").size() == 1); in testParseConfigList_SingleActivity() 71 assertEquals(".TestActivity", map.get("com.android.test").iterator().next()); in testParseConfigList_SingleActivity() 77 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_Package() local 79 mService.parseConfigList(config, map); in testParseConfigList_Package() 81 assertTrue(map.get("com.android.test").size() == 0); in testParseConfigList_Package() 87 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_MultipleActivities() local 89 mService.parseConfigList(config, map); in testParseConfigList_MultipleActivities() 91 assertTrue(map.get("com.android.test").size() == 2); in testParseConfigList_MultipleActivities() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 74 Map<String, Integer> map = new HashMap<>(); in buildEapMethodsMap() local 75 map.put("PEAP", WifiEnterpriseConfig.Eap.PEAP); in buildEapMethodsMap() 76 map.put("TLS", WifiEnterpriseConfig.Eap.TLS); in buildEapMethodsMap() 77 map.put("TTLS", WifiEnterpriseConfig.Eap.TTLS); in buildEapMethodsMap() 78 map.put("PWD", WifiEnterpriseConfig.Eap.PWD); in buildEapMethodsMap() 79 map.put("SIM", WifiEnterpriseConfig.Eap.SIM); in buildEapMethodsMap() 80 map.put("AKA", WifiEnterpriseConfig.Eap.AKA); in buildEapMethodsMap() 81 map.put("AKA_PRIME", WifiEnterpriseConfig.Eap.AKA_PRIME); in buildEapMethodsMap() 82 return map; in buildEapMethodsMap() 86 Map<String, Integer> map = new HashMap<>(); in buildPhase2AuthMap() local [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 160 private static void addMapping(Map<String, String> map, String column) { in addMapping() argument 161 if (!map.containsKey(column)) { in addMapping() 162 map.put(column, column); in addMapping() 166 private static void addMapping(Map<String, String> map, String column, String rawColumn) { in addMapping() argument 167 if (!map.containsKey(column)) { in addMapping() 168 map.put(column, rawColumn + " AS " + column); in addMapping() 174 final Map<String, String> map = sDownloadsMap; 177 addMapping(map, DownloadManager.COLUMN_ID, in addMapping() argument 179 addMapping(map, DownloadManager.COLUMN_LOCAL_FILENAME, in addMapping() argument 181 addMapping(map, DownloadManager.COLUMN_MEDIAPROVIDER_URI); in addMapping() argument [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | PackedString.java | 84 ArrayMap<String, String> map = new ArrayMap<String, String>(); in explode() local 102 tag = Integer.toString(map.size()); in explode() 109 map.put(tag, value); in explode() 113 return map; in explode() 121 ArrayMap<String, String> map; field in PackedString.Builder 125 map = new ArrayMap<String, String>(); in Builder() 130 map = explode(packed); in Builder() 141 map.remove(tag); in put() 143 map.put(tag, value); in put() 154 return map.get(tag); in get() [all …]
|
/packages/apps/TV/jni/ |
D | tunertvinput_jni.cpp | 33 static std::map<jlong, DvbManager *> sDvbManagers; 42 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeFinalize() 58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I() 80 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I() 102 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters() 115 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeStopTune() 129 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeGetSignalStrength() 145 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeAddPidFilter() 160 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeWriteInBuffer() 194 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeSetHasPendingTune() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientTest.java | 120 Map<BluetoothDevice, MceStateMachine> map = mService.getInstanceMap(); in testConnect() local 121 Assert.assertEquals(1, map.size()); in testConnect() 122 Assert.assertNotNull(map.get(device)); in testConnect() 125 Assert.assertEquals(map.get(device).getState(), BluetoothProfile.STATE_CONNECTING); in testConnect() 144 Map<BluetoothDevice, MceStateMachine> map = mService.getInstanceMap(); in testConnectPriorityOffDevice() local 145 Assert.assertEquals(0, map.size()); in testConnectPriorityOffDevice() 146 Assert.assertNull(map.get(device)); in testConnectPriorityOffDevice() 173 Map<BluetoothDevice, MceStateMachine> map = mService.getInstanceMap(); in testConnectMaxDevices() local 174 Assert.assertEquals(MapClientService.MAXIMUM_CONNECTED_DEVICES, map.size()); in testConnectMaxDevices() 176 Assert.assertNotNull(map.get(d)); in testConnectMaxDevices()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Weekdays.kt | 64 val map: MutableMap<Int, Int> = mutableMapOf() constant 65 map[Calendar.MONDAY] = 0x01 66 map[Calendar.TUESDAY] = 0x02 67 map[Calendar.WEDNESDAY] = 0x04 68 map[Calendar.THURSDAY] = 0x08 69 map[Calendar.FRIDAY] = 0x10 70 map[Calendar.SATURDAY] = 0x20 71 map[Calendar.SUNDAY] = 0x40 72 sCalendarDayToBit = map
|
D | Weekdays.java | 80 final Map<Integer, Integer> map = new ArrayMap<>(7); 81 map.put(MONDAY, 0x01); in map.put() 82 map.put(TUESDAY, 0x02); in map.put() 83 map.put(WEDNESDAY, 0x04); in map.put() 84 map.put(THURSDAY, 0x08); in map.put() 85 map.put(FRIDAY, 0x10); in map.put() 86 map.put(SATURDAY, 0x20); in map.put() 87 map.put(SUNDAY, 0x40); in map.put() 88 sCalendarDayToBit = Collections.unmodifiableMap(map);
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/prefs/ |
D | PrefsBackupHelperTest.java | 174 Map<String, Object> map = new HashMap<String, Object>(); in testPreferenceTypesSupport() local 175 map.put("int", (Integer) 1); in testPreferenceTypesSupport() 176 map.put("float", (Float) 0.1f); in testPreferenceTypesSupport() 177 map.put("long", (Long) 10000000000l); in testPreferenceTypesSupport() 178 map.put("boolean", true); in testPreferenceTypesSupport() 179 map.put("String", "String"); in testPreferenceTypesSupport() 183 map.put("StringSet", stringSet); in testPreferenceTypesSupport() 187 for (Map.Entry<String, ?> entry : map.entrySet()) { in testPreferenceTypesSupport()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduParser.java | 781 HashMap<Integer, Object> map = in parseHeaders() local 784 parseContentType(pduDataStream, map); in parseHeaders() 802 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders() 805 mTypeParam= (byte[]) map.get(PduPart.P_TYPE); in parseHeaders() 851 HashMap<Integer, Object> map = new HashMap<Integer, Object>(); in parseParts() local 852 byte[] contentType = parseContentType(pduDataStream, map); in parseParts() 860 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts() 866 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts() 1338 HashMap<Integer, Object> map, Integer length) { in parseContentTypeParams() argument 1393 map.put(PduPart.P_TYPE, type); in parseContentTypeParams() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduParser.java | 814 SparseArray<Object> map = new SparseArray<Object>(); in parseHeaders() local 816 parseContentType(pduDataStream, map); in parseHeaders() 835 mStartParam = (byte[]) map.get(PduPart.P_START); in parseHeaders() 838 mTypeParam = (byte[]) map.get(PduPart.P_TYPE); in parseHeaders() 885 SparseArray<Object> map = new SparseArray<Object>(); in parseParts() local 886 byte[] contentType = parseContentType(pduDataStream, map); in parseParts() 894 byte[] name = (byte[]) map.get(PduPart.P_NAME); in parseParts() 900 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts() 1375 SparseArray<Object> map, Integer length) { in parseContentTypeParams() argument 1430 map.put(PduPart.P_TYPE, type); in parseContentTypeParams() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | NetworkSecurityPreferenceController.java | 106 Map<Integer, Integer> map = new HashMap<>(); in createSecurityTypeDescMap() local 107 map.put(AccessPoint.SECURITY_NONE, R.string.wifi_security_none); in createSecurityTypeDescMap() 108 map.put(AccessPoint.SECURITY_WEP, R.string.wifi_security_wep); in createSecurityTypeDescMap() 109 map.put(AccessPoint.SECURITY_PSK, R.string.wifi_security_psk_generic); in createSecurityTypeDescMap() 110 map.put(AccessPoint.SECURITY_EAP, R.string.wifi_security_eap); in createSecurityTypeDescMap() 111 return map; in createSecurityTypeDescMap()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 160 StreamConfigurationMap map = p.get(CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP); in printCameraInfo() local 162 int[] formats = map.getOutputFormats(); in printCameraInfo() 168 Size[] sizes = map.getOutputSizes(formats[i]); in printCameraInfo() 174 map.getOutputStallDuration(formats[i], sizes[j]) / 1000000, in printCameraInfo() 175 map.getOutputMinFrameDuration(formats[i], sizes[j]) / 1000000 in printCameraInfo() 183 int[] formats = map.getInputFormats(); in printCameraInfo() 186 Size[] sizes = map.getInputSizes(formats[i]); in printCameraInfo() 193 Size[] sizes = map.getOutputSizes(SurfaceHolder.class); in printCameraInfo() 198 Size[] sizes = map.getOutputSizes(SurfaceTexture.class); in printCameraInfo()
|
D | CameraInfoCache.java | 80 …StreamConfigurationMap map = mCameraCharacteristics.get(CameraCharacteristics.SCALER_STREAM_CONFIG… in CameraInfoCache() local 81 int[] formats = map.getOutputFormats(); in CameraInfoCache() 85 mLargestYuvSize = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 88 mLargestJpegSize = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 91 Size size = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache() 92 long stall = map.getOutputStallDuration(formats[i], size); in CameraInfoCache() 100 Size size = returnLargestSize(map.getOutputSizes(formats[i])); in CameraInfoCache()
|
/packages/modules/DnsResolver/ |
D | resolv_tls_unit_test.cpp | 863 DnsTlsQueryMap map; in TEST() local 865 EXPECT_TRUE(map.empty()); in TEST() 871 auto f0 = map.recordQuery(makeSlice(q0)); in TEST() 872 auto f1 = map.recordQuery(makeSlice(q1)); in TEST() 873 auto f2 = map.recordQuery(makeSlice(q2)); in TEST() 881 EXPECT_FALSE(map.empty()); in TEST() 883 auto all = map.getAll(); in TEST() 899 map.onResponse(a2); in TEST() 900 map.onResponse(a0); in TEST() 901 map.onResponse(a1); in TEST() [all …]
|
D | PrivateDnsConfiguration.h | 39 std::map<DnsTlsServer, Validation, AddressComparator> serversMap; 63 typedef std::map<DnsTlsServer, Validation, AddressComparator> PrivateDnsTracker; 81 std::map<unsigned, PrivateDnsMode> mPrivateDnsModes GUARDED_BY(mPrivateDnsLock); 84 std::map<unsigned, PrivateDnsTracker> mPrivateDnsTransports GUARDED_BY(mPrivateDnsLock); 85 std::map<unsigned, ThreadTracker> mPrivateDnsValidateThreads GUARDED_BY(mPrivateDnsLock);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | TagClustering.java | 41 final TreeMap<String, ArrayList<Path>> map = in run() local 57 ArrayList<Path> list = map.get(key); in run() 60 map.put(key, list); in run() 67 int m = map.size(); in run() 71 for (Map.Entry<String, ArrayList<Path>> entry : map.entrySet()) { in run()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/ |
D | TimeZonePickerScreenPreferenceControllerTest.java | 157 Map<String, Object> map = new HashMap<>(); in createTimeZoneMap() local 158 map.put(ZoneGetter.KEY_ID, key); in createTimeZoneMap() 159 map.put(ZoneGetter.KEY_DISPLAY_LABEL, timeZone); in createTimeZoneMap() 160 map.put(ZoneGetter.KEY_OFFSET_LABEL, offset); in createTimeZoneMap() 161 map.put(ZoneGetter.KEY_OFFSET, offsetValue); in createTimeZoneMap() 162 return map; in createTimeZoneMap()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 84 public static int handleKeyEvent(int keyCode, int [][] map, int iconIdx, int pageIndex, in handleKeyEvent() argument 87 int cntX = map == null ? -1 : map.length; in handleKeyEvent() 88 int cntY = map == null ? -1 : map[0].length; in handleKeyEvent() 99 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, -1 /*increment*/, isRtl); in handleKeyEvent() 107 newIndex = handleDpadHorizontal(iconIdx, cntX, cntY, map, 1 /*increment*/, isRtl); in handleKeyEvent() 115 newIndex = handleDpadVertical(iconIdx, cntX, cntY, map, 1 /*increment*/); in handleKeyEvent() 118 newIndex = handleDpadVertical(iconIdx, cntX, cntY, map, -1 /*increment*/); in handleKeyEvent()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/browse/ |
D | MediaBrowserViewModelImpl.java | 19 import static androidx.lifecycle.Transformations.map; 61 map(mMediaBrowserSwitch.asLiveData(), MediaBrowserViewModelImpl::requireConnected); 75 mPackageName = map(mConnectedMediaBrowser, in MediaBrowserViewModelImpl() 175 return map(mConnectedMediaBrowser, mediaBrowserCompat -> { in supportsSearch() 196 return map(mConnectedMediaBrowser, mediaBrowserCompat -> { 217 return map(mConnectedMediaBrowser, mediaBrowserCompat -> {
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | EffectSettingPopup.java | 90 HashMap<String, Object> map = new HashMap<String, Object>(); in initialize() local 91 map.put("value", value); in initialize() 92 map.put("text", entries[i].toString()); in initialize() 93 if (iconIds != null) map.put("image", iconIds[i]); in initialize() 95 mSillyFacesItem.add(map); in initialize() 97 mBackgroundItem.add(map); in initialize()
|