Home
last modified time | relevance | path

Searched refs:cloned (Results 1 – 25 of 30) sorted by relevance

12

/packages/services/Car/tests/CarLibUnitTest/src/com/android/car/internal/util/
DPairSparseArrayUnitTest.java189 PairSparseArray<Integer> cloned = map.clone(); in test_clone() local
191 expectThat(cloned.get(FIRST_KEY, FIRST_KEY)).isEqualTo(VALUE_1); in test_clone()
192 expectThat(cloned.get(SECOND_KEY, FIRST_KEY)).isEqualTo(VALUE_2); in test_clone()
193 expectThat(cloned.get(SECOND_KEY, SECOND_KEY)).isEqualTo(VALUE_2); in test_clone()
195 cloned.put(SECOND_KEY, SECOND_KEY, VALUE_1); in test_clone()
197 expectThat(cloned.get(SECOND_KEY, SECOND_KEY)).isEqualTo(VALUE_1); in test_clone()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DLongArrayTest.java79 LongArray cloned = a.clone(); in testLongArray() local
80 verify(new long[]{10, 20, 50}, cloned); in testLongArray()
81 assertTrue(LongArray.elementsEqual(a, cloned)); in testLongArray()
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Duuid.rs114 ORDERED_SUPPORTED_PROFILES.iter().cloned().collect();
151 .cloned()
168 PROFILES.get(uuid).cloned() in is_known_profile()
Dbluetooth_admin.rs93 remote_uuids.iter().filter(|&&uu| !self.is_service_allowed(uu)).cloned().collect() in get_blocked_services()
249 self.allowed_services.iter().cloned().collect() in get_allowed_services()
Dbattery_manager.rs159 .cloned() in pick_best()
Dbattery_service.rs240 let level: Vec<_> = value.iter().cloned().chain(iter::repeat(0 as u8)).take(4).collect(); in set_battery_info()
369 self.battery_sets.get(&remote_address).cloned() in get_battery_info()
Dbluetooth_adv.rs275 let id: Vec<u8> = uuid_slice.iter().rev().cloned().collect();
305 let concated: Vec<u8> = uuid_slice.iter().rev().chain(data).cloned().collect(); in append_service_data()
Dbluetooth_media.rs2290 available_profiles.difference(&connected_profiles).cloned().collect::<HashSet<_>>(); in notify_media_capability_updated()
2568 .cloned() in filter_to_connected_audio_devices_from()
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/
Ddocument_test.cc115 std::unique_ptr<Document> cloned = LoadDocument(cloned_path); in TEST() local
116 compareDocuments(doc->GetPage(0), cloned->GetPage(0)); in TEST()
/packages/modules/Bluetooth/system/rust/src/gatt/
Dmtu.rs54 self.stable_mtu.try_lock().as_deref().cloned().unwrap_or_else(|_| self.previous_mtu.get()) in snapshot_or_default()
61 async move { pending_snapshot.await.as_deref().cloned() } in snapshot()
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/
Darray_utils.rs9 v.iter().chain(std::iter::repeat(&0)).take(S).cloned().collect::<Vec<u8>>().try_into().unwrap()
/packages/modules/Bluetooth/system/gd/rust/topshim/facade/src/
Dmain.rs83 let _rootcanal_port = matches.get_one::<u16>("rootcanal-port").cloned(); in async_main()
/packages/modules/Virtualization/libs/libfdt/src/
Dlib.rs652 let (cloned, zeroed) = self.buffer.split_at_mut(new_len); in clone_from()
654 cloned.clone_from_slice(&other.buffer); in clone_from()
/packages/modules/Virtualization/rialto/tests/
Dtest.rs86 let expected_response: Vec<u8> = message.as_bytes().iter().rev().cloned().collect(); in check_processing_reverse_request()
/packages/modules/Bluetooth/floss/hcidoc/src/groups/
Dinformational.rs622 let handles: Vec<ConnectionHandle> = self.handles.keys().cloned().collect(); in report_reset()
988 let mut addresses: Vec<Address> = self.devices.keys().cloned().collect(); in report()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java1646 PairSparseArray<RateInfo> cloned = new PairSparseArray<>(); in cloneState() local
1649 cloned.put(keyPair[0], keyPair[1], state.valueAt(i)); in cloneState()
1651 return cloned; in cloneState()
/packages/modules/Bluetooth/system/rust/src/connection/
Dattempt_manager.rs167 self.attempts.keys().cloned().collect() in active_attempts()
/packages/modules/Virtualization/pvmfw/src/
Ddevice_assignment.rs359 let unique_iommus: BTreeSet<_> = phys_iommus.values().cloned().collect(); in validate_physical_iommus()
976 let unique_pviommus: BTreeSet<_> = pviommus.values().cloned().collect(); in internal_parse()
1233 Ok(pviommus.iter().cloned().collect()) in collect_pviommus()
/packages/modules/Bluetooth/tools/rootcanal/rust/src/llcp/
Diso.rs367 .cloned() in get_cis_connection_handle()
1176 let Some(cis) = self.cis_connections.get(&connection_handle).cloned() else { in hci_disconnect()
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/
Dcallbacks.rs219 let bonding_device = context.lock().unwrap().bonding_attempt.as_ref().cloned(); in on_ssp_request()
275 self.context.lock().unwrap().bonding_attempt.as_ref().cloned(); in on_bond_state_changed()
Dcommand_handler.rs783 let bonding_attempt = &self.lock_context().bonding_attempt.as_ref().cloned(); in cmd_bond()
1000 (_, p) => (true, p.as_bytes().iter().cloned().collect::<Vec<u8>>()), in cmd_device()
/packages/modules/Virtualization/virtualizationmanager/src/
Dpayload.rs623 list: apex_infos_for_test.iter().map(|(_, info)| info).cloned().collect(), in test_collect_apexes()
/packages/modules/Virtualization/virtualizationservice/src/
Daidl.rs230 .cloned() in waitDisplayService()
/packages/modules/Bluetooth/system/rust/src/gatt/server/
Dgatt_database.rs312 static_data.attributes.keys().filter(|handle| in_service_pred(**handle)).max().cloned(); in remove_service_at_handle()
/packages/modules/Bluetooth/system/gd/rust/topshim/src/
Dbtif.rs483 Uuid::try_from(value.iter().rev().cloned().collect::<Vec<u8>>()) in try_from_little_endian()

12