Home
last modified time | relevance | path

Searched refs:map (Results 1 – 25 of 1613) sorted by relevance

12345678910>>...65

/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/util/
DPairSparseArrayUnitTest.java39 PairSparseArray<Integer> map = new PairSparseArray<>(); in test_sizeGetPut() local
41 assertThat(map.size()).isEqualTo(0); in test_sizeGetPut()
42 assertThat(map.get(FIRST_KEY, SECOND_KEY)).isEqualTo(null); in test_sizeGetPut()
44 map.put(FIRST_KEY, SECOND_KEY, VALUE_1); in test_sizeGetPut()
46 assertThat(map.size()).isEqualTo(1); in test_sizeGetPut()
47 assertThat(map.get(FIRST_KEY, SECOND_KEY, null)).isEqualTo(VALUE_1); in test_sizeGetPut()
52 PairSparseArray<Integer> map = new PairSparseArray<>(); in test_appendContainsRemove() local
54 map.append(FIRST_KEY, SECOND_KEY, VALUE_1); in test_appendContainsRemove()
56 assertThat(map.contains(FIRST_KEY, SECOND_KEY)).isTrue(); in test_appendContainsRemove()
57 assertThat(map.size()).isEqualTo(1); in test_appendContainsRemove()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSetMultimapTest.java32 SetMultimap<Integer, String> map = new SetMultimap<>(); in testGet_empty_returnsEmptySet() local
34 assertThat(map.get(1)).isEmpty(); in testGet_empty_returnsEmptySet()
39 SetMultimap<Integer, String> map = createFromMultimap(ImmutableMultimap.of(1, "value1")); in testGet_keyDoesNotExist_returnsEmptySet() local
41 assertThat(map.get(2)).isEmpty(); in testGet_keyDoesNotExist_returnsEmptySet()
46 SetMultimap<Integer, String> map = new SetMultimap<>(); in testGet() local
48 map.put(1, "value1"); in testGet()
49 assertThat(map.get(1)).containsExactly("value1"); in testGet()
50 map.put(1, "value2"); in testGet()
51 assertThat(map.get(1)).containsExactly("value1", "value2"); in testGet()
52 map.put(1, "value3"); in testGet()
[all …]
/packages/modules/Bluetooth/system/gd/common/
Dsync_map_count_test.cc43 void LoadStringMap(SyncMapCount<std::string>& map) { in LoadStringMap() argument
45 map.Put(*p); in LoadStringMap()
51 SyncMapCount<std::string> map; in TEST() local
52 LoadStringMap(map); in TEST()
54 ASSERT_EQ(5ul, map.Size()); in TEST()
56 auto m = map.Get(); in TEST()
63 SyncMapCount<std::string> map(2); in TEST() local
64 LoadStringMap(map); in TEST()
66 ASSERT_EQ(2ul, map.Size()); in TEST()
70 SyncMapCount<std::string> map; in TEST() local
[all …]
/packages/modules/Bluetooth/system/osi/test/
Dhash_map_utils_test.cc28 void TearDown() override { map.clear(); } in TearDown()
30 std::unordered_map<std::string, std::string> map; member in HashMapUtilsTest
35 map = hash_map_utils_new_from_string_params(params); in TEST_F()
36 EXPECT_TRUE(map.empty()); in TEST_F()
41 map = hash_map_utils_new_from_string_params(params); in TEST_F()
42 EXPECT_TRUE(map.empty()); in TEST_F()
49 map = hash_map_utils_new_from_string_params(params); in TEST_F()
50 EXPECT_EQ(1u, map.size()); in TEST_F()
51 EXPECT_EQ(value, map[key]); in TEST_F()
52 map.clear(); in TEST_F()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsMap.java97 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/
Dstdout.txt.expect52 // 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/
Dstdout.txt.expect89 // 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/
DPropertyPermissionMapping.java37 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/Bluetooth/system/gd/hci/
Daddress_with_type_test.cc167 std::map<AddressWithType, int> map; in TEST() local
175 map[address_1] = 1; in TEST()
176 map[address_2] = 2; in TEST()
178 ASSERT_EQ(2UL, map.size()); in TEST()
179 map.clear(); in TEST()
188 map[address_1] = 1; in TEST()
189 map[address_2] = 2; in TEST()
191 ASSERT_EQ(2UL, map.size()); in TEST()
192 map.clear(); in TEST()
201 map[address_1] = 1; in TEST()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DSettingsQCRegistry.java147 Map<Uri, Class<? extends SettingsQCItem>> map = new ArrayMap<>(); in createUriToQCMap() local
149 map.put(BLUETOOTH_SWITCH_URI, BluetoothSwitch.class); in createUriToQCMap()
150 map.put(PAIRED_BLUETOOTH_DEVICES_URI, PairedBluetoothDevices.class); in createUriToQCMap()
151 map.put(WIFI_TILE_URI, WifiTile.class); in createUriToQCMap()
152 map.put(HOTSPOT_TILE_URI, HotspotTile.class); in createUriToQCMap()
153 map.put(MOBILE_DATA_TILE_URI, MobileDataTile.class); in createUriToQCMap()
154 map.put(WIFI_ROW_URI, WifiRow.class); in createUriToQCMap()
155 map.put(HOTSPOT_ROW_URI, HotspotRow.class); in createUriToQCMap()
156 map.put(HOTSPOT_ROW_WITH_ACTION_URI, HotspotRowWithAction.class); in createUriToQCMap()
157 map.put(MOBILE_DATA_ROW_URI, MobileDataRow.class); in createUriToQCMap()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DScreenManager.java101 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = in createBaseScreenMap() local
103 map.put(LANDING, LandingActivity.class); in createBaseScreenMap()
104 map.put(PRE_PROVISIONING, PreProvisioningActivity.class); in createBaseScreenMap()
105 map.put(PRE_PROVISIONING_VIA_NFC, PreProvisioningActivityViaNfc.class); in createBaseScreenMap()
106 map.put(PROVISIONING, ProvisioningActivity.class); in createBaseScreenMap()
107 map.put(ADMIN_INTEGRATED_PREPARE, AdminIntegratedFlowPrepareActivity.class); in createBaseScreenMap()
108 map.put(RESET_AND_RETURN_DEVICE, ResetAndReturnDeviceActivity.class); in createBaseScreenMap()
109 map.put(RESET_DEVICE, ResetDeviceActivity.class); in createBaseScreenMap()
110 map.put(WEB, WebActivity.class); in createBaseScreenMap()
111 map.put(ENCRYPT, EncryptDeviceActivity.class); in createBaseScreenMap()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/util/
DTypedMap.kt35 class MutableTypedMap(val map: MutableMap<Key<Any>, Any> = mutableMapOf()) { constant in com.android.libraries.pcc.chronicle.util.MutableTypedMap
40 map[key as Key<Any>] = value in set()
45 @Suppress("UNCHECKED_CAST") return map[key as Key<Any>] as T in get()
54 if (map != other.map) return false in toTypedMap()
59 return map.hashCode() in hashCode()
88 private val map: MutableTypedMap = MutableTypedMap(mutableTypedMap.map.toMutableMap()) constant
91 operator fun <T> get(key: Key<T>): T? = map[key] in get()
96 if (map != other.map) return false in get()
101 return map.hashCode() in hashCode()
/packages/modules/Bluetooth/system/gd/dumpsys/
Dreflection_schema.cc37 return bundled_schema_->map()->size(); in GetNumberOfBundledSchemas()
53 …s::Vector<flatbuffers::Offset<bluetooth::dumpsys::BundledSchemaMap>>* map = bundled_schema_->map(); in FindInReflectionSchema() local
55 for (auto it = map->cbegin(); it != map->cend(); ++it) { in FindInReflectionSchema()
69 …s::Vector<flatbuffers::Offset<bluetooth::dumpsys::BundledSchemaMap>>* map = bundled_schema_->map(); in PrintReflectionSchema() local
74 for (auto it = map->cbegin(); it != map->cend(); ++it) { in PrintReflectionSchema()
80 …s::Vector<flatbuffers::Offset<bluetooth::dumpsys::BundledSchemaMap>>* map = bundled_schema_->map(); in VerifyReflectionSchema() local
82 for (auto it = map->cbegin(); it != map->cend(); ++it) { in VerifyReflectionSchema()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java17 package com.android.bluetooth.map;
49 import com.android.bluetooth.map.BluetoothMapUtils.TYPE;
307 Map<String, BluetoothMapConvoContactElement> map = Map.of(); in testSetContactList() local
309 mObserver.setContactList(map, true); in testSetContactList()
311 Assert.assertEquals(mObserver.getContactList(), map); in testSetContactList() local
316 Map<Long, BluetoothMapContentObserver.Msg> map = Map.of(); in testSetMsgListSms() local
318 mObserver.setMsgListSms(map, true); in testSetMsgListSms()
320 Assert.assertEquals(mObserver.getMsgListSms(), map); in testSetMsgListSms() local
325 Map<Long, BluetoothMapContentObserver.Msg> map = Map.of(); in testSetMsgListMsg() local
327 mObserver.setMsgListMsg(map, true); in testSetMsgListMsg()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DBufferManager.java394 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/
DBufferManager.java397 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_variation/
Dstdout.txt.expect64 // 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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/
DScreenManagerTest.java200 .map(activityInfo -> activityInfo.name) in getManagedProvisioningActivityNames()
207 Map<ManagedProvisioningScreens, Class<? extends Activity>> map = new HashMap<>(); in createTestScreenToActivityMap() local
208 map.put(LANDING, Activity.class); in createTestScreenToActivityMap()
209 map.put(PRE_PROVISIONING, Activity.class); in createTestScreenToActivityMap()
210 map.put(PRE_PROVISIONING_VIA_NFC, Activity.class); in createTestScreenToActivityMap()
211 map.put(PROVISIONING, Activity.class); in createTestScreenToActivityMap()
212 map.put(ADMIN_INTEGRATED_PREPARE, Activity.class); in createTestScreenToActivityMap()
213 map.put(RESET_AND_RETURN_DEVICE, Activity.class); in createTestScreenToActivityMap()
214 map.put(RESET_DEVICE, Activity.class); in createTestScreenToActivityMap()
215 map.put(WEB, Activity.class); in createTestScreenToActivityMap()
[all …]
/packages/modules/NeuralNetworks/tools/test_generator/tests/P_implicit_variation/
Dstdout.txt.expect64 // 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_naming/
Dstdout.txt.expect64 // 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/Dialer/java/com/android/voicemail/impl/mail/
DPackedString.java84 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/modules/NeuralNetworks/tools/test_generator/tests/P_vts_variation/
Dstdout.txt.expect134 // 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/
Dstdout.txt.expect134 // 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/
Dstdout.txt.expect134 // 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/Connectivity/staticlibs/native/bpf_headers/
DBpfMapTest.cpp70 void checkMapInvalid(BpfMap<uint32_t, uint32_t>& map) { in checkMapInvalid() argument
71 EXPECT_FALSE(map.isValid()); in checkMapInvalid()
72 EXPECT_EQ(-1, map.getMap().get()); in checkMapInvalid()
75 void checkMapValid(BpfMap<uint32_t, uint32_t>& map) { in checkMapValid() argument
76 EXPECT_LE(0, map.getMap().get()); in checkMapValid()
77 EXPECT_TRUE(map.isValid()); in checkMapValid()
80 void writeToMapAndCheck(BpfMap<uint32_t, uint32_t>& map, uint32_t key, uint32_t value) { in writeToMapAndCheck() argument
81 ASSERT_RESULT_OK(map.writeValue(key, value, BPF_ANY)); in writeToMapAndCheck()
83 ASSERT_EQ(0, findMapEntry(map.getMap(), &key, &value_read)); in writeToMapAndCheck()
92 void populateMap(uint32_t total, BpfMap<uint32_t, uint32_t>& map) { in populateMap() argument
[all …]

12345678910>>...65