Home
last modified time | relevance | path

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

12

/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pDeviceList.java37 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/
DInputReader.cpp74 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 …]
DEventHub.cpp773 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/
DDeviceDiscoveryAction.java94 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/
DMtpClient.java59 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/
DFibonacciExtensionTest.cpp79 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/
DHid.java40 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/
DTestMtpManager.java38 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/
DBluetoothMediaManagerTest.java164 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/
DManager.h126 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
DCompilationBuilder.cpp47 mDevices(devices), in CompilationBuilder()
66 int n = mModel->partitionTheWork(mDevices, mPreference, mPriority, deadline, &mPlan); in finish()
155 if (!mExplicitDeviceList || (mDevices.size() != 1)) { in setTimeoutDuration()
DCompilationBuilder.h92 std::vector<std::shared_ptr<Device>> mDevices; variable
DExecutionBuilder.cpp283 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/
DBluetoothControllerImplTest.java64 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/
DUsbHostManager.java73 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/
DMtpManager.java70 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/
DTestRandomGraph.cpp169 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/
DAudioOutputDescriptor.h155 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/
DLocalDisplayAdapter.java64 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/
DCameraProviderManager.cpp178 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/
DTestIntrospectionControl.cpp157 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()
DTestExecution.cpp589 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/
DInputReader.h129 KeyedVector<int32_t, InputDevice*> mDevices; variable
DEventHub.h444 KeyedVector<int32_t, Device*> mDevices; variable
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp299 return mDevices; in devices()
472 mDevices = devices; in open()
507 mDevices.toString().c_str(), mProfile.get(), mProfile->getName().c_str()); in open()

12