Home
last modified time | relevance | path

Searched refs:handles (Results 1 – 25 of 80) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java716 final ArrayList<UserHandle> handles = new ArrayList<>(); in openTileIntent_profileSelectionDialog_shouldShow() local
717 handles.add(new UserHandle(0)); in openTileIntent_profileSelectionDialog_shouldShow()
718 handles.add(new UserHandle(10)); in openTileIntent_profileSelectionDialog_shouldShow()
719 tile.userHandle = handles; in openTileIntent_profileSelectionDialog_shouldShow()
733 final ArrayList<UserHandle> handles = new ArrayList<>(); in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow() local
734 handles.add(new UserHandle(0)); in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow()
735 handles.add(new UserHandle(10)); in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow()
736 tile.userHandle = handles; in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow()
750 final ArrayList<UserHandle> handles = new ArrayList<>(); in openTileIntent_profileSelectionDialog_shouldNotShow() local
751 handles.add(new UserHandle(0)); in openTileIntent_profileSelectionDialog_shouldNotShow()
[all …]
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/
Dbattery_service.rs43 handles: HashMap<RawAddress, i32>, field
109 let handles = HashMap::new(); in new() localVariable
123 handles, in new()
191 self.handles.insert(addr, handle.clone()); in handle_action()
202 match self.handles.get(&addr) { in handle_action()
275 if self.handles.contains_key(&remote_address) { in drop_device()
284 self.handles.remove(&remote_address); in drop_device()
329 self.handles.keys().for_each(|&addr| { in refresh_all_devices()
339 let handle = match self.handles.get(&remote_address) { in refresh_device()
/packages/modules/Bluetooth/system/bta/vc/
Dvc_test.cc394 for (auto const& handles : handle_pairs) { in TestSubscribeNotifications() local
395 EXPECT_CALL(gatt_queue, WriteDescriptor(conn_id, handles.second, in TestSubscribeNotifications()
399 RegisterForNotifications(gatt_if, address, handles.first)) in TestSubscribeNotifications()
408 std::vector<uint16_t> handles) { in TestReadCharacteristic() argument
416 for (auto const& handle : handles) { in TestReadCharacteristic()
887 std::map<uint16_t, uint16_t> handles({{0x0021, 0x0022}}); in TEST_F() local
888 TestSubscribeNotifications(GetTestAddress(0), 1, handles); in TEST_F()
892 std::map<uint16_t, uint16_t> handles({{0x0072, 0x0073}, {0x0082, 0x0083}}); in TEST_F() local
893 TestSubscribeNotifications(GetTestAddress(0), 1, handles); in TEST_F()
897 std::map<uint16_t, uint16_t> handles({{0x0085, 0x0086}}); in TEST_F() local
[all …]
Ddevice.cc307 for (auto const& handles : handle_pairs) { in EnqueueRemainingRequests() local
308 if (GATT_HANDLE_IS_VALID(handles.second)) { in EnqueueRemainingRequests()
309 subscribe_for_notifications(gatt_if, handles.first, handles.second, in EnqueueRemainingRequests()
313 BtaGattQueue::ReadCharacteristic(connection_id, handles.first, chrc_read_cb, in EnqueueRemainingRequests()
/packages/modules/Bluetooth/system/bta/gatt/
Dbta_gattc_queue.cc124 tBTA_GATTC_MULTI& handles, in gatt_read_multi_op_finished() argument
137 tmp_cb(conn_id, status, handles, len, value, tmp_cb_data); in gatt_read_multi_op_finished()
211 BTA_GATTC_ReadMultiple(conn_id, op.handles, op.variable_len, in gatt_execute_next_op()
278 tBTA_GATTC_MULTI& handles, in ReadMultiCharacteristic() argument
283 .handles = handles, in ReadMultiCharacteristic()
Dbta_gattc_act.cc1039 if (p_data->api_read_multi.handles.num_attr > GATT_MAX_READ_MULTI_HANDLES) { in bta_gattc_read_multi()
1048 p_data->api_read_multi.handles.num_attr; in bta_gattc_read_multi()
1051 memcpy(&read_param.read_multiple.handles, in bta_gattc_read_multi()
1052 p_data->api_read_multi.handles.handles, in bta_gattc_read_multi()
1053 sizeof(uint16_t) * p_data->api_read_multi.handles.num_attr); in bta_gattc_read_multi()
1162 tBTA_GATTC_MULTI handles = p_clcb->p_q_cmd->api_read_multi.handles; in bta_gattc_read_cmpl() local
1167 cb(p_clcb->bta_conn_id, p_data->status, handles, in bta_gattc_read_cmpl()
/packages/modules/NeuralNetworks/runtime/test/
DTestCompilationCaching.cpp248 void writeToCache(const hardware::hidl_vec<hardware::hidl_handle>& handles, in writeToCache() argument
250 for (uint32_t i = 0; i < handles.size(); ++i) { in writeToCache()
251 ASSERT_EQ(handles[i]->numFds, 1); in writeToCache()
252 EXPECT_EQ(write(handles[i]->data[0], cache.data(), kCacheSize), in writeToCache()
257 void readFromCache(const hardware::hidl_vec<hardware::hidl_handle>& handles, in readFromCache() argument
259 for (uint32_t i = 0; i < handles.size(); ++i) { in readFromCache()
260 ASSERT_EQ(handles[i]->numFds, 1); in readFromCache()
262 EXPECT_EQ(read(handles[i]->data[0], actual.data(), kCacheSize), in readFromCache()
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgatt.py96 self.handles = []
139 self.handles = []
383 handles = re.findall("'([a0-Z9]*)'O", description)
396 stringHandleToInt(handles[0]), stringHandleToInt(handles[1]), uuid)
441 handles = re.findall("'([a0-Z9]*)'O", description)
444 stringHandleToInt(handles[0]), stringHandleToInt(handles[1]))
1244 self.handles.append(handle)
1259 for handle in self.handles:
1275 self.handles.append(handle)
1290 for handle in self.handles:
/packages/modules/Bluetooth/floss/hcidoc/src/groups/
Dinformational.rs483 handles: HashMap<ConnectionHandle, Address>, field
496 handles: HashMap::new(), in new()
521 if !self.handles.contains_key(&handle) { in get_or_allocate_connection()
526 let address = &self.handles.get(handle).unwrap().clone(); in get_or_allocate_connection()
554 self.handles.insert(handle, *address); in report_connection_start()
605 if let Some(address) = self.handles.get(&handle) { in report_connection_end()
609 self.handles.remove(&handle); in report_connection_end()
622 let handles: Vec<ConnectionHandle> = self.handles.keys().cloned().collect(); in report_reset() localVariable
623 for handle in handles { in report_reset()
Dconnections.rs859 handles: HashMap<ConnectionHandle, Address>, field
875 handles: HashMap::new(), in new()
906 if let Some(address) = self.handles.get(&handle) { in process_handle_auth()
934 .handles in process_encryption_change()
956 self.handles.clear(); in process_reset()
967 self.handles.insert(ev.get_connection_handle(), ev.get_bd_addr()); in process()
981 self.handles.remove(&ev.get_connection_handle()); in process()
993 self.handles.insert(ev.get_connection_handle(), ev.get_peer_address()); in process()
998 self.handles.insert(ev.get_connection_handle(), ev.get_peer_address()); in process()
1021 self.handles.remove(&cmd.get_connection_handle()); in process()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java376 int[] handles = device.getObjectHandles(storageId, 0, objectHandle); in getObjectList() local
377 if (handles == null) { in getObjectList()
381 int length = handles.length; in getObjectList()
384 MtpObjectInfo info = device.getObjectInfo(handles[i]); in getObjectList()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcTag.java785 int[] handles = mTechHandles; in findAndReadNdef() local
795 if (handles[i] == handles[techIndex]) { in findAndReadNdef()
884 int[] handles = mTechHandles; in findNdef() local
889 if (currHandle != handles[techIndex]) { in findNdef()
890 currHandle = handles[techIndex]; in findNdef()
/packages/modules/NeuralNetworks/runtime/
DCompilationBuilder.cpp149 std::vector<SharedHandle> handles; in createCacheHandleVec() local
150 handles.reserve(numFds); in createCacheHandleVec()
152 handles.push_back(NN_TRY(createCacheHandle(fds[i]))); in createCacheHandleVec()
154 return handles; in createCacheHandleVec()
/packages/services/Car/tests/carservice_unit_test/src/android/car/media/
DCarAudioPatchHandleUnitTest.java87 CarAudioPatchHandle[] handles = CarAudioPatchHandle.CREATOR.newArray(/* size= */ 3); in newArray() local
89 expectWithMessage("Car audio patch handles size").that(handles).hasLength(3); in newArray()
/packages/apps/Dialer/java/com/android/dialer/notification/
DVoicemailChannelUtils.java169 List<PhoneAccountHandle> handles = new ArrayList<>(); in getAllEligableAccounts() local
173 handles.add(handle); in getAllEligableAccounts()
176 return handles; in getAllEligableAccounts()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java241 List<PhoneAccountHandle> handles = in getNumberWithoutInCallService() local
243 while (handles.iterator().hasNext()) { in getNumberWithoutInCallService()
244 account = mTelecomManager.getPhoneAccount(handles.iterator().next()); in getNumberWithoutInCallService()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_profile_storage.cc682 std::vector<uint8_t> handles; in btif_storage_leaudio_update_handles_bin() local
684 if (LeAudioClient::GetHandlesForStorage(addr, handles)) { in btif_storage_leaudio_update_handles_bin()
686 [](const RawAddress& bd_addr, std::vector<uint8_t> handles) { in btif_storage_leaudio_update_handles_bin() argument
689 handles.data(), handles.size()); in btif_storage_leaudio_update_handles_bin()
691 addr, std::move(handles))); in btif_storage_leaudio_update_handles_bin()
829 std::vector<uint8_t> handles(buffer_size); in btif_storage_load_bonded_leaudio() local
832 handles.data(), &buffer_size); in btif_storage_load_bonded_leaudio()
864 std::move(handles), std::move(sink_pacs), std::move(source_pacs), in btif_storage_load_bonded_leaudio()
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorSimCallManager.java201 List<PhoneAccountHandle> handles; in getSystemPhoneAccountHandle() local
203 handles = telecomManager.getCallCapablePhoneAccounts(); in getSystemPhoneAccountHandle()
207 for (PhoneAccountHandle handle : handles) { in getSystemPhoneAccountHandle()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRemoteTargetGluer.java94 RemoteTargetHandle[] handles = new RemoteTargetHandle[numHandles]; in createHandles() local
99 handles[i] = new RemoteTargetHandle(tvs, transformParams); in createHandles()
101 return handles; in createHandles()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/telephony/
DCallInfoTest.java268 List<PhoneAccountHandle> handles = new ArrayList<>(); in getBestPhoneAccount() local
270 handles.add(testHandle); in getBestPhoneAccount()
272 .thenReturn(handles); in getBestPhoneAccount()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DVisualVoicemailNotifier.java301 List<PhoneAccountHandle> handles = TelecomUtil.getCallCapablePhoneAccounts(context); in getFallbackAccount() local
302 if (!handles.isEmpty()) { in getFallbackAccount()
303 handle = handles.get(0); in getFallbackAccount()
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothGattService.java278 public void setHandles(int handles) { in setHandles() argument
279 mHandles = handles; in setHandles()
/packages/modules/Virtualization/vmlauncher_app/
DAndroid.bp12 // TODO(b/331708504): will be removed when AVF framework handles surface
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/glide/
DPhotopickerModelLoader.kt62 override fun handles(model: GlideLoadable): Boolean { in handles() method in com.android.photopicker.core.glide.PhotopickerModelLoader
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DDrawableResourceDecoder.java40 public boolean handles(Drawable source, Options options) throws IOException { in handles() method in DrawableResourceDecoder

1234