Home
last modified time | relevance | path

Searched refs:deviceInfo (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDeviceInfoHelper.java87 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoId() local
88 long rowId = getDeviceInfoMap().getOrDefault(deviceInfo, DEFAULT_LONG); in populateDeviceInfoId()
90 rowId = insertIfNotPresent(deviceInfo); in populateDeviceInfoId()
102 DeviceInfo deviceInfo = getIdDeviceInfoMap().get(deviceInfoId); in populateRecordWithValue() local
103 if (deviceInfo != null) { in populateRecordWithValue()
104 record.setDeviceType(deviceInfo.mDeviceType); in populateRecordWithValue()
105 record.setManufacturer(deviceInfo.mManufacturer); in populateRecordWithValue()
106 record.setModel(deviceInfo.mModel); in populateRecordWithValue()
135 DeviceInfo deviceInfo = new DeviceInfo(manufacturer, model, deviceType); in populateDeviceInfoMap() local
136 deviceInfoMap.put(deviceInfo, rowId); in populateDeviceInfoMap()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioDeviceInfoTest.java76 HalAudioDeviceInfo deviceInfo = new HalAudioDeviceInfo(audioPort); in constructor_succeeds() local
79 .that(deviceInfo.getId()) in constructor_succeeds()
82 .that(deviceInfo.getName()) in constructor_succeeds()
85 .that(deviceInfo.getGainMinValue()) in constructor_succeeds()
88 .that(deviceInfo.getGainMaxValue()) in constructor_succeeds()
91 .that(deviceInfo.getGainDefaultValue()) in constructor_succeeds()
94 .that(deviceInfo.getGainStepValue()) in constructor_succeeds()
97 .that(deviceInfo.getType()) in constructor_succeeds()
100 .that(deviceInfo.getConnection()) in constructor_succeeds()
103 .that(deviceInfo.getAddress()) in constructor_succeeds()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/dvb/
DDvbTunerHal.java57 for (DvbDeviceInfoWrapper deviceInfo : deviceInfoList) { in openFirstAvailable()
58 if (!sUsedDvbDevices.contains(deviceInfo)) { in openFirstAvailable()
59 if (DEBUG) Log.d(TAG, "Available device info: " + deviceInfo); in openFirstAvailable()
60 mDvbDeviceInfo = deviceInfo; in openFirstAvailable()
61 sUsedDvbDevices.add(deviceInfo); in openFirstAvailable()
78 protected boolean open(DvbDeviceInfoWrapper deviceInfo) { in open() argument
79 if (deviceInfo == null) { in open()
93 if (deviceInfoWrapper.compareTo(deviceInfo) == 0) { in open()
95 if (sUsedDvbDevices.contains(deviceInfo)) { in open()
96 Log.e(TAG, deviceInfo + " is already taken"); in open()
[all …]
DDvbDeviceAccessor.java120 DvbDeviceInfoWrapper deviceInfo, @DvbDevice int device) { in openDvbDevice() argument
126 mTvInputManager, deviceInfo.getDvbDeviceInfo(), device); in openDvbDevice()
/packages/modules/ImsMedia/test/app/ImsMediaTestingApp/app/src/main/java/com/example/imsmediatestingapp/
DHandshakeReceiver.java35 DeviceInfo deviceInfo = null; in run() local
51 deviceInfo = (DeviceInfo) dataReceived; in run()
52 if (verifyHandshakePacket(deviceInfo)) { in run()
54 receivedDeviceInfo = deviceInfo; in run()
83 DeviceInfo deviceInfo = null; in deserializePacket() local
90 deviceInfo = (DeviceInfo) readObject; in deserializePacket()
91 return (T) deviceInfo; in deserializePacket()
122 private boolean verifyHandshakePacket(DeviceInfo deviceInfo) { in verifyHandshakePacket() argument
123 if (deviceInfo.getHandshakePort() == -1 || deviceInfo.getAudioRtpPort() == -1) { in verifyHandshakePacket()
/packages/modules/NeuralNetworks/shim_and_sl/
DNeuralNetworksShim.cpp94 int ANeuralNetworksShimDeviceInfo_create(ANeuralNetworksShimDeviceInfo** deviceInfo, in ANeuralNetworksShimDeviceInfo_create() argument
96 if (deviceInfo != nullptr) { in ANeuralNetworksShimDeviceInfo_create()
97 *deviceInfo = nullptr; in ANeuralNetworksShimDeviceInfo_create()
113 *deviceInfo = reinterpret_cast<ANeuralNetworksShimDeviceInfo*>(result); in ANeuralNetworksShimDeviceInfo_create()
117 void ANeuralNetworksShimDeviceInfo_free(ANeuralNetworksShimDeviceInfo* deviceInfo) { in ANeuralNetworksShimDeviceInfo_free() argument
118 delete reinterpret_cast<ShimDeviceInfo*>(deviceInfo); in ANeuralNetworksShimDeviceInfo_free()
156 const ANeuralNetworksShimDeviceInfo* deviceInfo) { in ANeuralNetworksShimRegistrationParams_addDeviceInfo() argument
161 if (deviceInfo == nullptr) { in ANeuralNetworksShimRegistrationParams_addDeviceInfo()
167 auto info = reinterpret_cast<const ShimDeviceInfo*>(deviceInfo); in ANeuralNetworksShimRegistrationParams_addDeviceInfo()
/packages/modules/NeuralNetworks/driver/sample_shim/
DShimServiceSample.cpp33 ANeuralNetworksShimDeviceInfo* deviceInfo; in main() local
34 ANeuralNetworksShimDeviceInfo_create(&deviceInfo, in main()
38 [deviceInfo] { ANeuralNetworksShimDeviceInfo_free(deviceInfo); }); in main()
44 ANeuralNetworksShimRegistrationParams_addDeviceInfo(params, deviceInfo); in main()
DShellServiceSample.cpp102 ANeuralNetworksShimDeviceInfo* deviceInfo; in registerDevices() local
103 ANeuralNetworksShimDeviceInfo_create(&deviceInfo, device.driverName.c_str(), in registerDevices()
106 [deviceInfo] { ANeuralNetworksShimDeviceInfo_free(deviceInfo); }); in registerDevices()
108 ANeuralNetworksShimRegistrationParams_addDeviceInfo(params, deviceInfo); in registerDevices()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioDeviceInfoTest.java227 AudioDeviceInfo deviceInfo = getMockAudioDeviceInfo(); in getSampleRate_withMultipleSampleRates_returnsMax() local
229 when(deviceInfo.getSampleRates()).thenReturn(sampleRates); in getSampleRate_withMultipleSampleRates_returnsMax()
231 info.setAudioDeviceInfo(deviceInfo); in getSampleRate_withMultipleSampleRates_returnsMax()
318 AudioDeviceInfo deviceInfo = getMockAudioDeviceInfo(); in getChannelCount_withMultipleChannels_returnsHighestCount() local
319 when(deviceInfo.getChannelMasks()).thenReturn(new int[]{CHANNEL_OUT_STEREO, in getChannelCount_withMultipleChannels_returnsHighestCount()
322 info.setAudioDeviceInfo(deviceInfo); in getChannelCount_withMultipleChannels_returnsHighestCount()
350 AudioDeviceInfo deviceInfo = getMockAudioDeviceInfo(); in getEncodingFormat_withMultipleLinearPcmEncodings_returnsMax() local
352 when(deviceInfo.getEncodings()).thenReturn(encodings); in getEncodingFormat_withMultipleLinearPcmEncodings_returnsMax()
354 info.setAudioDeviceInfo(deviceInfo); in getEncodingFormat_withMultipleLinearPcmEncodings_returnsMax()
363 AudioDeviceInfo deviceInfo = getMockAudioDeviceInfo(); in getEncodingFormat_withoutLinearPcmEncodings_returnsDefault() local
[all …]
DCarAudioUtilsTest.java191 AudioDeviceInfo deviceInfo = Mockito.mock(AudioDeviceInfo.class); in isMicrophoneInputDevice_forMicrophoneDevice() local
192 when(deviceInfo.getType()).thenReturn(TYPE_BUILTIN_MIC); in isMicrophoneInputDevice_forMicrophoneDevice()
193 expectWithMessage("Microphone device").that(isMicrophoneInputDevice(deviceInfo)).isTrue(); in isMicrophoneInputDevice_forMicrophoneDevice()
198 AudioDeviceInfo deviceInfo = Mockito.mock(AudioDeviceInfo.class); in isMicrophoneInputDevice_forNonMicrophoneDevice() local
199 when(deviceInfo.getType()).thenReturn(TYPE_FM_TUNER); in isMicrophoneInputDevice_forNonMicrophoneDevice()
201 .that(isMicrophoneInputDevice(deviceInfo)).isFalse(); in isMicrophoneInputDevice_forNonMicrophoneDevice()
519 AudioDeviceInfo deviceInfo = Mockito.mock(AudioDeviceInfo.class); in getTestAudioDeviceInfo() local
520 when(deviceInfo.getAddress()).thenReturn(address); in getTestAudioDeviceInfo()
521 return deviceInfo; in getTestAudioDeviceInfo()
/packages/modules/NeuralNetworks/shim_and_sl/public/
DNeuralNetworksShim.h106 ANeuralNetworksShimDeviceInfo* _Nullable* _Nonnull deviceInfo,
117 void ANeuralNetworksShimDeviceInfo_free(ANeuralNetworksShimDeviceInfo* _Nonnull deviceInfo)
160 const ANeuralNetworksShimDeviceInfo* _Nonnull deviceInfo) __INTRODUCED_IN(31);
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/
DOutputDevicesFragment.java240 Bundle deviceInfo = new Bundle(); in openDeviceSettings() local
241 deviceInfo.putString("uri", uri); in openDeviceSettings()
242 deviceInfo.putCharSequence("title", title); in openDeviceSettings()
243 deviceInfo.putCharSequence("subtitle", subtitle); in openDeviceSettings()
244 deviceInfo.putString("deviceId", id); in openDeviceSettings()
245 fragmentManager.setFragmentResult("deviceSettings", deviceInfo); in openDeviceSettings()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
DKeyboardFragment.java233 for (PhysicalKeyboardHelper.DeviceInfo deviceInfo : in updatePhysicalKeyboards()
236 + deviceInfo.mDeviceIdentifier.getDescriptor(); in updatePhysicalKeyboards()
246 pref.setSummary(deviceInfo.getSummary()); in updatePhysicalKeyboards()
248 deviceInfo.mDeviceIdentifier, in updatePhysicalKeyboards()
249 deviceInfo.mDeviceName, in updatePhysicalKeyboards()
250 deviceInfo.mDeviceId, in updatePhysicalKeyboards()
251 deviceInfo.mCurrentLayoutDescriptor); in updatePhysicalKeyboards()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/interfaces/
DSystemInterface.java121 DeviceInfo deviceInfo = new DeviceInfo(); in generateCsr() local
125 challenge, deviceInfo, protectedData); in generateCsr()
137 return CborUtils.buildCertificateRequest(deviceInfo.deviceInfo, in generateCsr()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/media/
DAudioManagerHelper.java83 AudioDeviceInfo deviceInfo = getAudioDeviceInfo(audioManager, address, isOutput); in setAudioDeviceGain() local
85 AudioGain audioGain = getAudioGain(deviceInfo.getPort()); in setAudioDeviceGain()
98 return AudioManager.setAudioPortGain(deviceInfo.getPort(), audioGainConfig) in setAudioDeviceGain()
158 public static AudioGainInfo getAudioGainInfo(@NonNull AudioDeviceInfo deviceInfo) { in getAudioGainInfo() argument
159 Objects.requireNonNull(deviceInfo, "Audio device gain info can not be null"); in getAudioGainInfo()
160 return new AudioGainInfo(getAudioGain(deviceInfo.getPort())); in getAudioGainInfo()
/packages/services/Telecomm/src/com/android/server/telecom/
DAudioRoute.java294 for (AudioDeviceInfo deviceInfo : devices) { in onDestRouteAsPendingRoute()
304 deviceInfo.getType())); in onDestRouteAsPendingRoute()
306 .equals(deviceInfo.getAddress()) in onDestRouteAsPendingRoute()
308 mInfo = deviceInfo; in onDestRouteAsPendingRoute()
310 if (deviceInfo.equals(mInfo)) { in onDestRouteAsPendingRoute()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java638 for (AudioDeviceInfo deviceInfo : removedDevices) { in onAudioDevicesRemoved()
639 if (deviceInfo.getType() == AudioDeviceInfo.TYPE_HEARING_AID) { in onAudioDevicesRemoved()
640 Log.d(TAG, " onAudioDevicesRemoved: device type: " + deviceInfo.getType()); in onAudioDevicesRemoved()
656 for (AudioDeviceInfo deviceInfo : addedDevices) { in onAudioDevicesAdded()
657 if (deviceInfo.getType() == AudioDeviceInfo.TYPE_HEARING_AID) { in onAudioDevicesAdded()
658 Log.d(TAG, " onAudioDevicesAdded: device type: " + deviceInfo.getType()); in onAudioDevicesAdded()
/packages/modules/RemoteKeyProvisioning/util/src/com/android/rkpdapp/
DRkpRegistrationCheck.java293 DeviceInfo deviceInfo = new DeviceInfo(); in generateCsr() local
297 eekResponse.getChallenge(), deviceInfo, protectedData); in generateCsr()
302 .add(decodeCbor(deviceInfo.deviceInfo)) in generateCsr()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/
DA2dpService.java1016 for (AudioDeviceInfo deviceInfo : addedDevices) { in onAudioDevicesAdded()
1017 if (deviceInfo.getType() != AudioDeviceInfo.TYPE_BLUETOOTH_A2DP) { in onAudioDevicesAdded()
1021 String address = deviceInfo.getAddress(); in onAudioDevicesAdded()
1034 + deviceInfo.getType()); in onAudioDevicesAdded()
1070 for (AudioDeviceInfo deviceInfo : removedDevices) { in onAudioDevicesRemoved()
1071 if (deviceInfo.getType() != AudioDeviceInfo.TYPE_BLUETOOTH_A2DP) { in onAudioDevicesRemoved()
1075 String address = deviceInfo.getAddress(); in onAudioDevicesRemoved()
1087 + deviceInfo.getType() in onAudioDevicesRemoved()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DKeyboardSettingsPreferenceControllerTest.java89 HardKeyboardDeviceInfo deviceInfo = in handlePreferenceTreeClick_expected() local
97 keyboards.add(deviceInfo); in handlePreferenceTreeClick_expected()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java127 MtpDeviceInfo deviceInfo = mDevice.getDeviceInfo(); in setDevice() local
128 if (deviceInfo == null) { in setDevice()
132 mDevicePrettyName = deviceInfo.getModel(); in setDevice()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java775 AudioDeviceInfo deviceInfo = null; in setCommunicationDeviceForAddress() local
786 deviceInfo = device; in setCommunicationDeviceForAddress()
791 if (deviceInfo == null) { in setCommunicationDeviceForAddress()
795 if (deviceInfo.equals(mAudioManager.getCommunicationDevice())) { in setCommunicationDeviceForAddress()
799 boolean success = mAudioManager.setCommunicationDevice(deviceInfo); in setCommunicationDeviceForAddress()
801 + "AudioManager#setCommunicationDevice(%s)=%b", deviceInfo, success); in setCommunicationDeviceForAddress()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioDynamicRouting.java192 private static void addMix(AudioPolicy.Builder builder, AudioDeviceInfo deviceInfo, in addMix() argument
196 .setDevice(deviceInfo) in addMix()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDppManager.java487 IBinder binder, @Nullable String deviceInfo, in startDppAsEnrolleeResponder() argument
523 logd("Interface " + mClientIfaceName + " Product Info: " + deviceInfo in startDppAsEnrolleeResponder()
526 String info = deviceInfo == null ? "" : deviceInfo; in startDppAsEnrolleeResponder()
531 mWifiNative.generateDppBootstrapInfoForResponder(mClientIfaceName, deviceInfo, in startDppAsEnrolleeResponder()
/packages/apps/Car/Settings/src/com/android/car/settings/sound/
DAudioRoutesManager.java165 AudioDeviceInfo deviceInfo = in updateAudioRoutesList() local
167 mActiveDeviceAddress = deviceInfo.getAddress(); in updateAudioRoutesList()

123