/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 38 private final HashMap<String, WifiP2pDevice> mDevices = new HashMap<String, WifiP2pDevice>(); field in WifiP2pDeviceList 47 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList() 56 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList() 76 if (mDevices.isEmpty()) return false; in clear() 77 mDevices.clear(); in clear() 90 mDevices.get(device.deviceAddress).status = device.status; in update() 96 WifiP2pDevice d = mDevices.get(device.deviceAddress); in updateSupplicantDetails() 108 mDevices.put(device.deviceAddress, device); in updateSupplicantDetails() 114 WifiP2pDevice d = mDevices.get(deviceAddress); in updateGroupCapability() 123 WifiP2pDevice d = mDevices.get(deviceAddress); in updateStatus() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 94 private final ArrayList<DeviceInfo> mDevices = new ArrayList<>(); field in DeviceDiscoveryAction 124 mDevices.clear(); in start() 152 mDevices.add(info); in allocateDevices() 164 Slog.v(TAG, "Start [Physical Address Stage]:" + mDevices.size()); in startPhysicalAddressStage() 197 Slog.v(TAG, "Start [Osd Name Stage]:" + mDevices.size()); in startOsdNameStage() 220 Slog.v(TAG, "Start [Vendor Id Stage]:" + mDevices.size()); in startVendorIdStage() 245 Slog.v(TAG, "Start [Power Status Stage]:" + mDevices.size()); in startPowerStatusStage() 323 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); in handleReportPhysicalAddress() 325 DeviceInfo current = mDevices.get(mProcessedDeviceCount); in handleReportPhysicalAddress() 353 Preconditions.checkState(mProcessedDeviceCount < mDevices.size()); [all …]
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 59 private final HashMap<String, MtpDevice> mDevices = new HashMap<String, MtpDevice>(); field in MtpClient 70 synchronized (mDevices) { 71 MtpDevice mtpDevice = mDevices.get(deviceName); 84 mDevices.remove(deviceName); 180 mDevices.put(usbDevice.getDeviceName(), mtpDevice); in openDeviceLocked() 203 synchronized (mDevices) { in addListener() 216 synchronized (mDevices) { in removeListener() 229 synchronized (mDevices) { in getDevice() 230 return mDevices.get(deviceName); in getDevice() 242 synchronized (mDevices) { in getDevice() [all …]
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciExtensionTest.cpp | 79 mDevices = {fibonacciDevice, cpuDevice}; in SetUp() 98 mModel.getHandle(), mDevices.data(), mDevices.size(), supported), in checkSupportedOperations() 107 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in prepareForExecution() 108 mDevices.size(), &mCompilation), in prepareForExecution() 115 std::vector<ANeuralNetworksDevice*> mDevices; member in android::nn::__anon5ee120420111::FibonacciExtensionTest 244 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 245 mDevices.size(), &mCompilation), in TEST_F() 255 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 256 mDevices.size(), &mCompilation), in TEST_F() 292 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() [all …]
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Hid.java | 40 private final SparseArray<Device> mDevices; field in Hid 70 mDevices = new SparseArray<Device>(); in Hid() 88 for (int i = 0; i < mDevices.size(); i++) { in run() 89 mDevices.valueAt(i).close(); in run() 94 final int index = mDevices.indexOfKey(e.getId()); in process() 96 Device d = mDevices.valueAt(index); in process() 123 mDevices.append(id, d); in registerDevice()
|
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/ |
D | TestMtpManager.java | 38 private final SparseArray<MtpDeviceRecord> mDevices = new SparseArray<>(); field in TestMtpManager 50 mDevices.put(device.deviceId, device); in addValidDevice() 79 final MtpDeviceRecord[] result = new MtpDeviceRecord[mDevices.size()]; in getDevices() 80 for (int i = 0; i < mDevices.size(); i++) { in getDevices() 81 final MtpDeviceRecord device = mDevices.valueAt(i); in getDevices() 95 final MtpDeviceRecord device = mDevices.get(deviceId); in openDevice() 102 mDevices.put(deviceId, record); in openDevice() 108 final MtpDeviceRecord device = mDevices.get(deviceId); in closeDevice() 112 mDevices.put( in closeDevice()
|
/frameworks/ml/nn/runtime/ |
D | Manager.h | 88 return mDevices; in getDrivers() 129 std::vector<std::shared_ptr<Device>> forTest_getDevices() const { return mDevices; } in forTest_getDevices() 133 mDevices = std::move(devices); in forTest_setDevices() 143 mDevices.clear(); in forTest_reInitializeDeviceList() 166 std::vector<std::shared_ptr<Device>> mDevices; variable
|
D | CompilationBuilder.cpp | 38 mDevices(devices), in CompilationBuilder() 55 int n = mModel->partitionTheWork(mDevices, mPreference, &mPlan); in finish()
|
D | CompilationBuilder.h | 78 std::vector<std::shared_ptr<Device>> mDevices; variable
|
D | Manager.cpp | 398 mDevices.push_back(CpuDevice::get()); in findAvailableDevices() 405 mDevices.push_back(d); in registerDevice()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/ |
D | BluetoothMediaManagerTest.java | 164 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() local 166 mDevices.add(cachedDevice); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() 168 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mDevices); in starScan_a2dpAndHapProfileNotReady_shouldRegisterCallback() 179 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() local 181 mDevices.add(cachedDevice); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() 183 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mDevices); in starScan_a2dpAndHapProfileReady_shouldNotRegisterCallback() 194 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() local 196 mDevices.add(cachedDevice); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() 198 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mDevices); in onServiceConnected_a2dpAndHapProfileNotReady_doNothing() 210 final Collection<CachedBluetoothDevice> mDevices = new ArrayList<>(); in onDeviceAttributesChanged_a2dpAndHapProfileReady_shouldUnregisterCallback() local [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 63 private List<CachedBluetoothDevice> mDevices; field in BluetoothControllerImplTest 69 mDevices = new ArrayList<>(); in setup() 71 when(mMockDeviceManager.getCachedDevicesCopy()).thenReturn(mDevices); in setup() 89 mDevices.add(device); in testNoConnectionWithDevices() 213 mDevices.add(device); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbHostManager.java | 73 private final HashMap<String, UsbDevice> mDevices = new HashMap<>(); field in UsbHostManager 382 if (mDevices.get(deviceAddress) != null) { in usbDeviceAdded() 401 mDevices.put(deviceAddress, newDevice); in usbDeviceAdded() 443 UsbDevice device = mDevices.remove(deviceAddress); in usbDeviceRemoved() 481 for (String name : mDevices.keySet()) { in getDeviceList() 482 devices.putParcelable(name, mDevices.get(name)); in getDeviceList() 494 UsbDevice device = mDevices.get(deviceAddress); in openDevice() 520 for (String name : mDevices.keySet()) { in dump() 521 writeDevice(dump, "devices", UsbHostManagerProto.DEVICES, mDevices.get(name)); in dump()
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpManager.java | 70 private final SparseArray<MtpDevice> mDevices = new SparseArray<>(); field in MtpManager 110 mDevices.put(deviceId, device); in openDevice() 116 mDevices.remove(deviceId); in closeDevice() 245 mDevices.get(deviceId), in getDevice() 267 final MtpDevice mtpDevice = mDevices.get(device.getDeviceId()); in createDeviceRecord()
|
/frameworks/native/services/inputflinger/ |
D | EventHub.cpp | 763 size_t size = mDevices.size(); in getDeviceByDescriptorLocked() 765 Device* device = mDevices.valueAt(i); in getDeviceByDescriptorLocked() 777 ssize_t index = mDevices.indexOfKey(deviceId); in getDeviceLocked() 778 return index >= 0 ? mDevices.valueAt(index) : NULL; in getDeviceLocked() 782 for (size_t i = 0; i < mDevices.size(); i++) { in getDeviceByPathLocked() 783 Device* device = mDevices.valueAt(i); in getDeviceByPathLocked() 799 for (size_t i = 0; i < mDevices.size(); i++) { in getDeviceByFdLocked() 800 Device* device = mDevices.valueAt(i); in getDeviceByFdLocked() 1093 if (mDevices.indexOfKey(ReservedInputDeviceId::VIRTUAL_KEYBOARD_ID) < 0) { in scanDevicesLocked() 1521 for (size_t i = 0; i < mDevices.size(); i++) { in openVideoDeviceLocked() [all …]
|
D | InputReader.cpp | 281 for (size_t i = 0; i < mDevices.size(); i++) { in ~InputReader() 282 delete mDevices.valueAt(i); in ~InputReader() 389 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in addDeviceLocked() 411 mDevices.add(deviceId, device); in addDeviceLocked() 421 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in removeDeviceLocked() 427 device = mDevices.valueAt(deviceIndex); in removeDeviceLocked() 428 mDevices.removeItemsAt(deviceIndex, 1); in removeDeviceLocked() 524 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in processEventsForDeviceLocked() 530 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked() 540 for (size_t i = 0; i < mDevices.size(); i++) { in timeoutExpiredLocked() [all …]
|
D | EventHub.h | 448 KeyedVector<int32_t, Device*> mDevices; variable
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 169 mDevices.emplace(name, device); in SetUpTestCase() 216 ASSERT_TRUE(mDevices.find(name) != mDevices.end()); in computeAndVerifyResultsForDevice() 217 const auto device = mDevices[name]; in computeAndVerifyResultsForDevice() 319 for (auto& pair : mDevices) { in testRandomGraph() 355 static std::map<std::string, ANeuralNetworksDevice*> mDevices; member in android::nn::fuzzing_test::RandomGraphTest 371 std::map<std::string, ANeuralNetworksDevice*> RandomGraphTest::mDevices; member in android::nn::fuzzing_test::RandomGraphTest
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioOutputDescriptor.h | 153 virtual DeviceVector devices() const { return mDevices; } in devices() 155 virtual DeviceVector supportedDevices() const { return mDevices; } in supportedDevices() 288 DeviceVector mDevices; /**< current devices this output is routed to */ variable 319 void setDevices(const DeviceVector &devices) { mDevices = devices; } in setDevices()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LocalDisplayAdapter.java | 64 private final LongSparseArray<LocalDisplayDevice> mDevices = field in LocalDisplayAdapter 116 LocalDisplayDevice device = mDevices.get(physicalDisplayId); in tryConnectDisplayLocked() 119 final boolean isInternal = mDevices.size() == 0; in tryConnectDisplayLocked() 123 mDevices.put(physicalDisplayId, device); in tryConnectDisplayLocked() 138 LocalDisplayDevice device = mDevices.get(physicalDisplayId); in tryDisconnectDisplayLocked() 141 mDevices.remove(physicalDisplayId); in tryDisconnectDisplayLocked() 882 LocalDisplayDevice device = mDevices.get(physicalDisplayId);
|
/frameworks/ml/nn/runtime/test/ |
D | TestIntrospectionControl.cpp | 142 mDevices.push_back(device); in selectDeviceByName() 155 modelHandle, mDevices.data(), mDevices.size(), supported), in isSupportedOpListExpected() 162 int result = ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in prepareForExecution() 163 mDevices.size(), &mCompilation); in prepareForExecution() 179 std::vector<ANeuralNetworksDevice*> mDevices; member in __anon062581700111::IntrospectionControlTest 776 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in TEST_F() 777 mDevices.size(), &mCompilation), in TEST_F()
|
D | TestExecution.cpp | 342 std::vector<ANeuralNetworksDevice*> mDevices; in TestIntrospectionCompilation() local 353 mDevices.push_back(device); in TestIntrospectionCompilation() 360 EXPECT_EQ(mDevices.size(), (uint32_t)1); in TestIntrospectionCompilation() 363 model->getHandle(), mDevices.data(), mDevices.size(), &mCompilation); in TestIntrospectionCompilation()
|
D | TestValidation.cpp | 1609 EXPECT_EQ(ANeuralNetworks_getDevice(0, &mDevices[0]), ANEURALNETWORKS_NO_ERROR); in SetUp() 1610 EXPECT_EQ(ANeuralNetworks_getDevice(1, &mDevices[1]), ANEURALNETWORKS_NO_ERROR); in SetUp() 1613 EXPECT_EQ(ANeuralNetworksModel_getSupportedOperationsForDevices(mModel, mDevices, 2, in SetUp() 1617 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel, mDevices, 2, in SetUp() 1629 ANeuralNetworksDevice* mDevices[2] = {nullptr, nullptr}; member in __anonbabfd9c90111::ValidationTestCompilationForDevices_2
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.cpp | 157 for (auto& deviceInfo : provider->mDevices) { in isValidDeviceLocked() 222 for (auto& deviceInfo : provider->mDevices) { in getHighestSupportedVersion() 468 for (auto& deviceInfo : provider->mDevices) { in findDeviceInfoLocked() 485 for (auto& deviceInfo : provider->mDevices) { in getProviderTagIdLocked() 1050 for (auto& deviceInfo : provider->mDevices) { in isHiddenPhysicalCamera() 1060 for (auto& deviceInfo : provider->mDevices) { in isHiddenPhysicalCamera() 1130 removedDeviceIds.reserve((*it)->mDevices.size()); in removeProvider() 1131 for (auto& deviceInfo : (*it)->mDevices) { in removeProvider() 1291 mProviderName.c_str(), mDevices.size()); in initialize() 1390 mDevices.push_back(std::move(deviceInfo)); in addDevice() [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioOutputDescriptor.cpp | 281 return mDevices; in devices() 454 mDevices = devices; in open() 486 mDevices.toString().c_str(), mProfile.get(), mProfile->getName().string()); in open() 495 LOG_ALWAYS_FATAL_IF(mDevices.types() != device, in open() 497 __FUNCTION__, mDevices.types(), device); in open()
|