/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | SetMultimapTest.java | 30 SetMultimap<Integer, String> map = new SetMultimap<>(); in testGet_empty_returnsEmptySet() local 32 assertThat(map.get(1)).isEmpty(); in testGet_empty_returnsEmptySet() 37 SetMultimap<Integer, String> map = createFromMultimap(ImmutableMultimap.of(1, "value1")); in testGet_keyDoesNotExist_returnsEmptySet() local 39 assertThat(map.get(2)).isEmpty(); in testGet_keyDoesNotExist_returnsEmptySet() 44 SetMultimap<Integer, String> map = new SetMultimap<>(); in testGet() local 46 map.put(1, "value1"); in testGet() 47 assertThat(map.get(1)).containsExactly("value1"); in testGet() 48 map.put(1, "value2"); in testGet() 49 assertThat(map.get(1)).containsExactly("value1", "value2"); in testGet() 50 map.put(1, "value3"); in testGet() [all …]
|
/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/modules/NeuralNetworks/tools/test_generator/tests/P_implicit_parameter/ |
D | stdout.txt.expect | 52 // int -> FLOAT32 map 54 // int -> INT32 map 56 // int -> QUANT8_ASYMM map 61 // int -> FLOAT32 map 63 // int -> INT32 map 65 // int -> QUANT8_ASYMM map 73 // int -> FLOAT32 map 75 // int -> INT32 map 77 // int -> QUANT8_ASYMM map 82 // int -> FLOAT32 map [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_parameter/ |
D | stdout.txt.expect | 89 // int -> FLOAT32 map 91 // int -> INT32 map 93 // int -> QUANT8_ASYMM map 98 // int -> FLOAT32 map 100 // int -> INT32 map 102 // int -> QUANT8_ASYMM map 110 // int -> FLOAT32 map 112 // int -> INT32 map 114 // int -> QUANT8_ASYMM map 119 // int -> FLOAT32 map [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/modules/NeuralNetworks/tools/test_generator/tests/P_variation/ |
D | stdout.txt.expect | 64 // int -> FLOAT32 map 66 // int -> INT32 map 68 // int -> QUANT8_ASYMM map 73 // int -> FLOAT32 map 75 // int -> INT32 map 77 // int -> QUANT8_ASYMM map 139 // int -> FLOAT32 map 141 // int -> INT32 map 143 // int -> QUANT8_ASYMM map 148 // int -> FLOAT32 map [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/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/modules/NeuralNetworks/tools/test_generator/tests/P_naming/ |
D | stdout.txt.expect | 64 // int -> FLOAT32 map 66 // int -> INT32 map 68 // int -> QUANT8_ASYMM map 73 // int -> FLOAT32 map 75 // int -> INT32 map 77 // int -> QUANT8_ASYMM map 139 // int -> FLOAT32 map 141 // int -> INT32 map 143 // int -> QUANT8_ASYMM map 148 // int -> FLOAT32 map [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_implicit_variation/ |
D | stdout.txt.expect | 64 // int -> FLOAT32 map 66 // int -> INT32 map 68 // int -> QUANT8_ASYMM map 73 // int -> FLOAT32 map 75 // int -> INT32 map 77 // int -> QUANT8_ASYMM map 139 // int -> FLOAT32 map 141 // int -> INT32 map 143 // int -> QUANT8_ASYMM map 148 // int -> FLOAT32 map [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/ |
D | stdout.txt.expect | 134 // int -> FLOAT32 map 136 // int -> INT32 map 138 // int -> QUANT8_ASYMM map 143 // int -> FLOAT32 map 145 // int -> INT32 map 147 // int -> QUANT8_ASYMM map 282 // int -> FLOAT32 map 284 // int -> INT32 map 286 // int -> QUANT8_ASYMM map 291 // int -> FLOAT32 map [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_naming/ |
D | stdout.txt.expect | 134 // int -> FLOAT32 map 136 // int -> INT32 map 138 // int -> QUANT8_ASYMM map 143 // int -> FLOAT32 map 145 // int -> INT32 map 147 // int -> QUANT8_ASYMM map 282 // int -> FLOAT32 map 284 // int -> INT32 map 286 // int -> QUANT8_ASYMM map 291 // int -> FLOAT32 map [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_vts_implicit_variation/ |
D | stdout.txt.expect | 134 // int -> FLOAT32 map 136 // int -> INT32 map 138 // int -> QUANT8_ASYMM map 143 // int -> FLOAT32 map 145 // int -> INT32 map 147 // int -> QUANT8_ASYMM map 282 // int -> FLOAT32 map 284 // int -> INT32 map 286 // int -> QUANT8_ASYMM map 291 // int -> FLOAT32 map [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | ScreenManager.java | 91 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = in createBaseScreenMap() local 93 map.put(LANDING, LandingActivity.class); in createBaseScreenMap() 94 map.put(PRE_PROVISIONING, PreProvisioningActivity.class); in createBaseScreenMap() 95 map.put(PROVISIONING, ProvisioningActivity.class); in createBaseScreenMap() 96 map.put(ADMIN_INTEGRATED_PREPARE, AdminIntegratedFlowPrepareActivity.class); in createBaseScreenMap() 97 map.put(RESET_AND_RETURN_DEVICE, ResetAndReturnDeviceActivity.class); in createBaseScreenMap() 98 map.put(WEB, WebActivity.class); in createBaseScreenMap() 99 map.put(ENCRYPT, EncryptDeviceActivity.class); in createBaseScreenMap() 100 map.put(POST_ENCRYPT, PostEncryptionActivity.class); in createBaseScreenMap() 101 map.put(FINALIZATION_INSIDE_SUW, FinalizationInsideSuwActivity.class); in createBaseScreenMap() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/wifi/ |
D | WifiConfigurationProvider.java | 77 Map<String, Integer> map = new HashMap<>(); in buildEapMethodsMap() local 78 map.put("PEAP", WifiEnterpriseConfig.Eap.PEAP); in buildEapMethodsMap() 79 map.put("TLS", WifiEnterpriseConfig.Eap.TLS); in buildEapMethodsMap() 80 map.put("TTLS", WifiEnterpriseConfig.Eap.TTLS); in buildEapMethodsMap() 81 map.put("PWD", WifiEnterpriseConfig.Eap.PWD); in buildEapMethodsMap() 82 map.put("SIM", WifiEnterpriseConfig.Eap.SIM); in buildEapMethodsMap() 83 map.put("AKA", WifiEnterpriseConfig.Eap.AKA); in buildEapMethodsMap() 84 map.put("AKA_PRIME", WifiEnterpriseConfig.Eap.AKA_PRIME); in buildEapMethodsMap() 85 return map; in buildEapMethodsMap() 89 Map<String, Integer> map = new HashMap<>(); in buildPhase2AuthMap() local [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/pm/ |
D | CarPackageManagerServiceTest.java | 74 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_SingleActivity() local 76 mService.parseConfigList(config, map); in testParseConfigList_SingleActivity() 78 assertThat(map.get("com.android.test")).containsExactly(".TestActivity"); in testParseConfigList_SingleActivity() 84 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_Package() local 86 mService.parseConfigList(config, map); in testParseConfigList_Package() 88 assertThat(map.get("com.android.test")).isEmpty(); in testParseConfigList_Package() 94 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_MultipleActivities() local 96 mService.parseConfigList(config, map); in testParseConfigList_MultipleActivities() 98 assertThat(map.get("com.android.test")).containsExactly(".TestActivity0", ".TestActivity1"); in testParseConfigList_MultipleActivities() 104 Map<String, Set<String>> map = new HashMap<>(); in testParseConfigList_PackageAndActivity() local [all …]
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | PlaybackErrorsHelper.java | 43 Map<Integer, Integer> map = new HashMap<>(); 44 map.put(PlaybackStateCompat.ERROR_CODE_APP_ERROR, R.string.error_code_app_error); in map.put() 45 map.put(PlaybackStateCompat.ERROR_CODE_NOT_SUPPORTED, R.string.error_code_not_supported); in map.put() 46 map.put(PlaybackStateCompat.ERROR_CODE_AUTHENTICATION_EXPIRED, in map.put() 48 map.put(PlaybackStateCompat.ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED, in map.put() 50 map.put(PlaybackStateCompat.ERROR_CODE_CONCURRENT_STREAM_LIMIT, in map.put() 52 map.put(PlaybackStateCompat.ERROR_CODE_PARENTAL_CONTROL_RESTRICTED, in map.put() 54 map.put(PlaybackStateCompat.ERROR_CODE_NOT_AVAILABLE_IN_REGION, in map.put() 56 map.put(PlaybackStateCompat.ERROR_CODE_CONTENT_ALREADY_PLAYING, in map.put() 58 map.put(PlaybackStateCompat.ERROR_CODE_SKIP_LIMIT_REACHED, in map.put() [all …]
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/include_legacy/ |
D | TestHarness.h | 60 typedef std::map<int, std::vector<uint32_t>> OperandDimensions; 61 typedef std::map<int, std::vector<float>> Float32Operands; 62 typedef std::map<int, std::vector<int32_t>> Int32Operands; 63 typedef std::map<int, std::vector<uint8_t>> Quant8AsymmOperands; 64 typedef std::map<int, std::vector<int16_t>> Quant16SymmOperands; 65 typedef std::map<int, std::vector<_Float16>> Float16Operands; 66 typedef std::map<int, std::vector<bool8>> Bool8Operands; 67 typedef std::map<int, std::vector<int8_t>> Quant8ChannelOperands; 68 typedef std::map<int, std::vector<uint16_t>> Quant16AsymmOperands; 69 typedef std::map<int, std::vector<int8_t>> Quant8SymmOperands; [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 147 private static void addMapping(Map<String, String> map, String column) { in addMapping() argument 148 if (!map.containsKey(column)) { in addMapping() 149 map.put(column, column); in addMapping() 153 private static void addMapping(Map<String, String> map, String column, String rawColumn) { in addMapping() argument 154 if (!map.containsKey(column)) { in addMapping() 155 map.put(column, rawColumn + " AS " + column); in addMapping() 161 final Map<String, String> map = sDownloadsMap; 164 addMapping(map, DownloadManager.COLUMN_ID, in addMapping() argument 166 addMapping(map, DownloadManager.COLUMN_LOCAL_FILENAME, in addMapping() argument 168 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ |
D | ScreenManagerTest.java | 179 .map(activityInfo -> activityInfo.name) in getManagedProvisioningActivityNames() 185 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = new HashMap<>(); in createTestScreenToActivityMap() local 186 map.put(LANDING, Activity.class); in createTestScreenToActivityMap() 187 map.put(PRE_PROVISIONING, Activity.class); in createTestScreenToActivityMap() 188 map.put(PROVISIONING, Activity.class); in createTestScreenToActivityMap() 189 map.put(ADMIN_INTEGRATED_PREPARE, Activity.class); in createTestScreenToActivityMap() 190 map.put(RESET_AND_RETURN_DEVICE, Activity.class); in createTestScreenToActivityMap() 191 map.put(WEB, Activity.class); in createTestScreenToActivityMap() 192 map.put(ENCRYPT, Activity.class); in createTestScreenToActivityMap() 193 map.put(POST_ENCRYPT, Activity.class); in createTestScreenToActivityMap() [all …]
|
/packages/modules/NeuralNetworks/runtime/ |
D | ExecutionPlan.h | 208 std::map<SourceOperandIndex, InternalLocationAndShape> mSourceOperandToTemporary; 211 std::map<uint32_t, std::vector<SourceOperandIndex>> mStepIndexToSourceOperandIndexes; 213 std::map<uint32_t, std::unique_ptr<MemoryAshmem>> mStepIndexToMemory; 299 const std::map<SourceOperandIndex, StaticTemporaryLocation>& 302 const std::map<SourceOperandIndex, uint32_t>& sourceOperandToInputIndex, 303 const std::map<SourceOperandIndex, uint32_t>& sourceOperandToOutputIndex, 304 const std::map<SourceOperandIndex, ConstantReferenceLocation>& 605 std::map<SourceOperandIndex, StaticTemporaryLocation> 607 std::map<SourceOperandIndex, StaticTemporaryLocation> 610 std::map<SourceOperandIndex, uint32_t> sourceOperandToInputIndex, [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/Car/SystemUI/src/com/android/systemui/car/systembar/ |
D | CarSystemBarViewFactory.java | 43 ArrayMap<Type, Integer> map = new ArrayMap<>(); in setupLayoutMapping() local 44 map.put(Type.TOP, R.layout.car_top_system_bar); in setupLayoutMapping() 45 map.put(Type.TOP_UNPROVISIONED, R.layout.car_top_system_bar_unprovisioned); in setupLayoutMapping() 46 map.put(Type.BOTTOM, R.layout.car_bottom_system_bar); in setupLayoutMapping() 47 map.put(Type.BOTTOM_UNPROVISIONED, R.layout.car_bottom_system_bar_unprovisioned); in setupLayoutMapping() 48 map.put(Type.LEFT, R.layout.car_left_system_bar); in setupLayoutMapping() 49 map.put(Type.LEFT_UNPROVISIONED, R.layout.car_left_system_bar_unprovisioned); in setupLayoutMapping() 50 map.put(Type.RIGHT, R.layout.car_right_system_bar); in setupLayoutMapping() 51 map.put(Type.RIGHT_UNPROVISIONED, R.layout.car_right_system_bar_unprovisioned); in setupLayoutMapping() 52 return map; in setupLayoutMapping()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | SQLiteQueryBuilderTest.java | 731 final HashMap<String, String> map = new HashMap<>(); in assertEnforceStrictGrammarRelaxedByTargetSdk() local 732 map.put("_data", "_data"); in assertEnforceStrictGrammarRelaxedByTargetSdk() 733 map.put("date_added", "date_added"); in assertEnforceStrictGrammarRelaxedByTargetSdk() 734 map.put("date_modified", "date_modified"); in assertEnforceStrictGrammarRelaxedByTargetSdk() 735 map.put("media_type", "media_type"); in assertEnforceStrictGrammarRelaxedByTargetSdk() 736 builder.setProjectionMap(map); in assertEnforceStrictGrammarRelaxedByTargetSdk() 779 final HashMap<String, String> map = new HashMap<>(); in testStrict_158537159() local 780 map.put("bucket_id", "bucket_id"); in testStrict_158537159() 781 builder.setProjectionMap(map); in testStrict_158537159() 798 final HashMap<String, String> map = new HashMap<>(); in testStrictCustomCollator() local [all …]
|