/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pDeviceList.java | 37 private final HashMap<String, WifiP2pDevice> mDevices = new HashMap<String, WifiP2pDevice>(); field in WifiP2pDeviceList 46 mDevices.put(d.deviceAddress, new WifiP2pDevice(d)); in WifiP2pDeviceList() 55 mDevices.put(device.deviceAddress, new WifiP2pDevice(device)); in WifiP2pDeviceList() 75 if (mDevices.isEmpty()) return false; in clear() 76 mDevices.clear(); in clear() 89 mDevices.get(device.deviceAddress).status = device.status; in update() 95 WifiP2pDevice d = mDevices.get(device.deviceAddress); in updateSupplicantDetails() 107 mDevices.put(device.deviceAddress, device); in updateSupplicantDetails() 113 WifiP2pDevice d = mDevices.get(deviceAddress); in updateGroupCapability() 122 WifiP2pDevice d = mDevices.get(deviceAddress); in updateStatus() [all …]
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 74 for (size_t i = 0; i < mDevices.size(); i++) { in ~InputReader() 75 delete mDevices.valueAt(i); in ~InputReader() 182 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in addDeviceLocked() 204 mDevices.add(deviceId, device); in addDeviceLocked() 214 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in removeDeviceLocked() 220 device = mDevices.valueAt(deviceIndex); in removeDeviceLocked() 221 mDevices.removeItemsAt(deviceIndex, 1); in removeDeviceLocked() 318 ssize_t deviceIndex = mDevices.indexOfKey(deviceId); in processEventsForDeviceLocked() 324 InputDevice* device = mDevices.valueAt(deviceIndex); in processEventsForDeviceLocked() 334 for (size_t i = 0; i < mDevices.size(); i++) { in timeoutExpiredLocked() [all …]
|
D | EventHub.cpp | 773 size_t size = mDevices.size(); in getDeviceByDescriptorLocked() 775 Device* device = mDevices.valueAt(i); in getDeviceByDescriptorLocked() 787 ssize_t index = mDevices.indexOfKey(deviceId); in getDeviceLocked() 788 return index >= 0 ? mDevices.valueAt(index) : NULL; in getDeviceLocked() 792 for (size_t i = 0; i < mDevices.size(); i++) { in getDeviceByPathLocked() 793 Device* device = mDevices.valueAt(i); in getDeviceByPathLocked() 809 for (size_t i = 0; i < mDevices.size(); i++) { in getDeviceByFdLocked() 810 Device* device = mDevices.valueAt(i); in getDeviceByFdLocked() 1102 if (mDevices.indexOfKey(ReservedInputDeviceId::VIRTUAL_KEYBOARD_ID) < 0) { in scanDevicesLocked() 1524 for (size_t i = 0; i < mDevices.size(); i++) { in openVideoDeviceLocked() [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 = {mFibonacciDevice, mCpuDevice}; in SetUp() 108 checkSupportedOperations(expected, mDevices); in checkSupportedOperations() 112 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in prepareForExecution() 113 mDevices.size(), &mCompilation), in prepareForExecution() 122 std::vector<ANeuralNetworksDevice*> mDevices; // Fibonacci and CPU devices. member in android::nn::__anon7b3c0b790111::FibonacciExtensionTest 251 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 252 mDevices.size(), &mCompilation), in TEST_F() 262 ASSERT_EQ(ANeuralNetworksCompilation_createForDevices(mModel.getHandle(), mDevices.data(), in TEST_F() 263 mDevices.size(), &mCompilation), in TEST_F() 299 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/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/ml/nn/runtime/ |
D | Manager.h | 126 return mDevices; in getDrivers() 163 std::vector<std::shared_ptr<Device>> forTest_getDevices() const { return mDevices; } in forTest_getDevices() 167 mDevices = std::move(devices); in forTest_setDevices() 178 mDevices.clear(); in forTest_reInitializeDeviceList() 201 std::vector<std::shared_ptr<Device>> mDevices; variable
|
D | CompilationBuilder.cpp | 47 mDevices(devices), in CompilationBuilder() 66 int n = mModel->partitionTheWork(mDevices, mPreference, mPriority, deadline, &mPlan); in finish() 155 if (!mExplicitDeviceList || (mDevices.size() != 1)) { in setTimeoutDuration()
|
D | CompilationBuilder.h | 92 std::vector<std::shared_ptr<Device>> mDevices; variable
|
D | ExecutionBuilder.cpp | 283 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in setMeasureTiming() 365 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in setTimeoutDuration() 736 if (!mCompilation->mExplicitDeviceList || (mCompilation->mDevices.size() != 1)) { in computeFenced()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BluetoothControllerImplTest.java | 64 private List<CachedBluetoothDevice> mDevices; field in BluetoothControllerImplTest 70 mDevices = new ArrayList<>(); in setup() 72 when(mMockDeviceManager.getCachedDevicesCopy()).thenReturn(mDevices); in setup() 90 mDevices.add(device); in testNoConnectionWithDevices() 214 mDevices.add(device); in testOnACLConnectionStateChange_updatesBluetoothStateOnConnection() 240 mDevices.add(device); in testOnActiveDeviceChanged_updatesAudioActive()
|
/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/ml/nn/runtime/test/fuzzing/ |
D | TestRandomGraph.cpp | 169 mDevices.emplace(name, device); in SetUpTestCase() 255 ASSERT_TRUE(mDevices.find(kRefDeviceName) != mDevices.end()); in computeGoldenResults() 256 const auto refDevice = mDevices[kRefDeviceName]; in computeGoldenResults() 285 ASSERT_TRUE(mDevices.find(name) != mDevices.end()); in computeAndVerifyResultsForDevice() 286 const auto device = mDevices[name]; in computeAndVerifyResultsForDevice() 388 for (auto& pair : mDevices) { in testRandomGraph() 432 static std::map<std::string, ANeuralNetworksDevice*> mDevices; member in android::nn::fuzzing_test::RandomGraphTest 453 std::map<std::string, ANeuralNetworksDevice*> RandomGraphTest::mDevices; member in android::nn::fuzzing_test::RandomGraphTest
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioOutputDescriptor.h | 155 virtual DeviceVector devices() const { return mDevices; } in devices() 157 virtual DeviceVector supportedDevices() const { return mDevices; } in supportedDevices() 300 DeviceVector mDevices; /**< current devices this output is routed to */ variable 330 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/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.cpp | 178 for (auto& deviceInfo : provider->mDevices) { in isValidDeviceLocked() 243 for (auto& deviceInfo : provider->mDevices) { in getHighestSupportedVersion() 489 for (auto& deviceInfo : provider->mDevices) { in findDeviceInfoLocked() 506 for (auto& deviceInfo : provider->mDevices) { in getProviderTagIdLocked() 1090 for (auto& deviceInfo : provider->mDevices) { in isHiddenPhysicalCameraInternal() 1100 for (auto& deviceInfo : provider->mDevices) { in isHiddenPhysicalCameraInternal() 1166 removedDeviceIds.reserve((*it)->mDevices.size()); in removeProvider() 1167 for (auto& deviceInfo : (*it)->mDevices) { in removeProvider() 1327 mProviderName.c_str(), mDevices.size()); in initialize() 1426 mDevices.push_back(std::move(deviceInfo)); in addDevice() [all …]
|
/frameworks/ml/nn/runtime/test/ |
D | TestIntrospectionControl.cpp | 157 mDevices.push_back(device); in selectDeviceByName() 170 modelHandle, mDevices.data(), mDevices.size(), supported), in isSupportedOpListExpected() 177 int result = ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in prepareForExecution() 178 mDevices.size(), &mCompilation); in prepareForExecution() 194 std::vector<ANeuralNetworksDevice*> mDevices; member in __anon736024e70111::IntrospectionControlTest 1230 EXPECT_EQ(ANeuralNetworksCompilation_createForDevices(modelHandle, mDevices.data(), in TEST_F() 1231 mDevices.size(), &mCompilation), in TEST_F()
|
D | TestExecution.cpp | 589 std::vector<ANeuralNetworksDevice*> mDevices; in TestIntrospectionCompilation() local 600 mDevices.push_back(device); in TestIntrospectionCompilation() 607 EXPECT_EQ(mDevices.size(), (uint32_t)1); in TestIntrospectionCompilation() 610 model->getHandle(), mDevices.data(), mDevices.size(), &mCompilation); in TestIntrospectionCompilation()
|
/frameworks/native/services/inputflinger/reader/include/ |
D | InputReader.h | 129 KeyedVector<int32_t, InputDevice*> mDevices; variable
|
D | EventHub.h | 444 KeyedVector<int32_t, Device*> mDevices; variable
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioOutputDescriptor.cpp | 299 return mDevices; in devices() 472 mDevices = devices; in open() 507 mDevices.toString().c_str(), mProfile.get(), mProfile->getName().c_str()); in open()
|