Home
last modified time | relevance | path

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

123

/frameworks/base/core/jni/
Dandroid_view_InputDevice.cpp39 jobject android_view_InputDevice_create(JNIEnv* env, const InputDeviceInfo& deviceInfo) { in android_view_InputDevice_create() argument
40 ScopedLocalRef<jstring> nameObj(env, env->NewStringUTF(deviceInfo.getDisplayName().c_str())); in android_view_InputDevice_create()
46 env->NewStringUTF(deviceInfo.getIdentifier().descriptor.c_str())); in android_view_InputDevice_create()
52 android_view_KeyCharacterMap_create(env, deviceInfo.getId(), in android_view_InputDevice_create()
53 deviceInfo.getKeyCharacterMap())); in android_view_InputDevice_create()
58 const InputDeviceIdentifier& ident = deviceInfo.getIdentifier(); in android_view_InputDevice_create()
61 jboolean hasMic = deviceInfo.hasMic() ? JNI_TRUE : JNI_FALSE; in android_view_InputDevice_create()
64 gInputDeviceClassInfo.ctor, deviceInfo.getId(), deviceInfo.getGeneration(), in android_view_InputDevice_create()
65 deviceInfo.getControllerNumber(), nameObj.get(), in android_view_InputDevice_create()
67 descriptorObj.get(), deviceInfo.isExternal(), deviceInfo.getSources(), in android_view_InputDevice_create()
[all …]
Dandroid_view_InputDevice.h27 extern jobject android_view_InputDevice_create(JNIEnv* env, const InputDeviceInfo& deviceInfo);
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java237 DisplayDeviceInfo deviceInfo = mPrimaryDisplayDevice.getDisplayDeviceInfoLocked(); in updateLocked() local
238 if (!Objects.equals(mPrimaryDisplayDeviceInfo, deviceInfo)) { in updateLocked()
241 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_SUPPORTS_PROTECTED_BUFFERS) != 0) { in updateLocked()
244 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_SECURE) != 0) { in updateLocked()
247 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_PRIVATE) != 0) { in updateLocked()
252 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_DESTROY_CONTENT_ON_REMOVAL) != 0) { in updateLocked()
255 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_PRESENTATION) != 0) { in updateLocked()
258 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_ROUND) != 0) { in updateLocked()
261 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_CAN_SHOW_WITH_INSECURE_KEYGUARD) != 0) { in updateLocked()
264 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_SHOULD_SHOW_SYSTEM_DECORATIONS) != 0) { in updateLocked()
[all …]
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiControlManager.java477 public void powerOffDevice(@NonNull HdmiDeviceInfo deviceInfo) { in powerOffDevice() argument
478 Preconditions.checkNotNull(deviceInfo); in powerOffDevice()
481 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOffDevice()
494 public void powerOffRemoteDevice(@NonNull HdmiDeviceInfo deviceInfo) { in powerOffRemoteDevice() argument
495 Preconditions.checkNotNull(deviceInfo); in powerOffRemoteDevice()
498 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOffRemoteDevice()
514 public void powerOnDevice(HdmiDeviceInfo deviceInfo) { in powerOnDevice() argument
515 Preconditions.checkNotNull(deviceInfo); in powerOnDevice()
518 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOnDevice()
531 public void powerOnRemoteDevice(HdmiDeviceInfo deviceInfo) { in powerOnRemoteDevice() argument
[all …]
DIHdmiDeviceEventListener.aidl39 void onStatusChanged(in HdmiDeviceInfo deviceInfo, in int status); in onStatusChanged() argument
/frameworks/base/media/java/android/media/midi/
DMidiDeviceStatus.java38 public MidiDeviceStatus(MidiDeviceInfo deviceInfo, boolean inputPortOpen[], in MidiDeviceStatus() argument
41 mDeviceInfo = deviceInfo; in MidiDeviceStatus()
55 public MidiDeviceStatus(MidiDeviceInfo deviceInfo) { in MidiDeviceStatus() argument
56 mDeviceInfo = deviceInfo; in MidiDeviceStatus()
57 mInputPortOpen = new boolean[deviceInfo.getInputPortCount()]; in MidiDeviceStatus()
58 mOutputPortOpenCount = new int[deviceInfo.getOutputPortCount()]; in MidiDeviceStatus()
118 MidiDeviceInfo deviceInfo = in.readParcelable(classLoader);
121 return new MidiDeviceStatus(deviceInfo, inputPortOpen, outputPortOpenCount);
DMidiDeviceService.java75 MidiDeviceInfo deviceInfo = mMidiManager.getServiceDeviceInfo(getPackageName(), in onCreate() local
77 if (deviceInfo == null) { in onCreate()
81 mDeviceInfo = deviceInfo; in onCreate()
86 server = new MidiDeviceServer(mMidiManager, inputPortReceivers, deviceInfo, mCallback); in onCreate()
DMidiManager.java246 public void openDevice(MidiDeviceInfo deviceInfo, OnDeviceOpenedListener listener, in openDevice() argument
248 final MidiDeviceInfo deviceInfoF = deviceInfo; in openDevice()
266 mService.openDevice(mToken, deviceInfo, callback); in openDevice()
294 MidiDeviceInfo deviceInfo = server.getDeviceInfo(); in openBluetoothDevice()
295 device = new MidiDevice(deviceInfo, server, mService, mToken, deviceToken); in openBluetoothDevice()
318 MidiDeviceInfo deviceInfo = mService.registerDeviceServer(server.getBinderInterface(), in createDeviceServer() local
321 if (deviceInfo == null) { in createDeviceServer()
DMidiDeviceServer.java323 public void setDeviceInfo(MidiDeviceInfo deviceInfo) {
330 mDeviceInfo = deviceInfo;
372 MidiDeviceInfo deviceInfo, Callback callback) { in MidiDeviceServer() argument
373 this(midiManager, inputPortReceivers, deviceInfo.getOutputPortCount(), callback); in MidiDeviceServer()
374 mDeviceInfo = deviceInfo; in MidiDeviceServer()
DIMidiDeviceServer.aidl36 oneway void setDeviceInfo(in MidiDeviceInfo deviceInfo); in setDeviceInfo() argument
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp52 CameraMetadata deviceInfo; in setupTestMapper() local
54 deviceInfo.update(ANDROID_SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE, in setupTestMapper()
57 deviceInfo.update(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE, in setupTestMapper()
60 deviceInfo.update(ANDROID_LENS_INTRINSIC_CALIBRATION, in setupTestMapper()
63 deviceInfo.update(ANDROID_LENS_DISTORTION, in setupTestMapper()
66 m->setupStaticInfo(deviceInfo); in setupTestMapper()
70 CameraMetadata deviceInfo; in TEST() local
72 ASSERT_FALSE(DistortionMapper::isDistortionSupported(deviceInfo)); in TEST()
79 deviceInfo.update(ANDROID_DISTORTION_CORRECTION_AVAILABLE_MODES, in TEST()
82 ASSERT_FALSE(DistortionMapper::isDistortionSupported(deviceInfo)); in TEST()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DCameraProviderManager.cpp157 for (auto& deviceInfo : provider->mDevices) { in isValidDeviceLocked() local
158 if (deviceInfo->mId == id && deviceInfo->mVersion.get_major() == majorVersion) { in isValidDeviceLocked()
169 auto deviceInfo = findDeviceInfoLocked(id); in hasFlashUnit() local
170 if (deviceInfo == nullptr) return false; in hasFlashUnit()
172 return deviceInfo->hasFlashUnit(); in hasFlashUnit()
179 auto deviceInfo = findDeviceInfoLocked(id); in getResourceCost() local
180 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getResourceCost()
182 *cost = deviceInfo->mResourceCost; in getResourceCost()
190 auto deviceInfo = findDeviceInfoLocked(id); in getCameraInfo() local
191 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getCameraInfo()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDeviceAudioSystem.java234 protected HdmiDeviceInfo addDeviceInfo(HdmiDeviceInfo deviceInfo) { in addDeviceInfo() argument
236 HdmiDeviceInfo oldDeviceInfo = getCecDeviceInfo(deviceInfo.getLogicalAddress()); in addDeviceInfo()
238 removeDeviceInfo(deviceInfo.getId()); in addDeviceInfo()
240 mDeviceInfos.append(deviceInfo.getId(), deviceInfo); in addDeviceInfo() local
255 HdmiDeviceInfo deviceInfo = mDeviceInfos.get(id); in removeDeviceInfo() local
256 if (deviceInfo != null) { in removeDeviceInfo()
260 return deviceInfo; in removeDeviceInfo()
447 HdmiDeviceInfo deviceInfo = getCecDeviceInfo(source); in handleSetOsdName() local
449 if (deviceInfo == null) { in handleSetOsdName()
460 if (deviceInfo.getDisplayName().equals(osdName)) { in handleSetOsdName()
[all …]
DNewDeviceAction.java175 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo( in addDeviceInfo() local
179 tv().addCecDevice(deviceInfo); in addDeviceInfo()
186 tv().onNewAvrAdded(deviceInfo); in addDeviceInfo()
DHdmiCecLocalDeviceTv.java565 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo(address, path, getPortId(path), type, in handleReportPhysicalAddress() local
567 addCecDevice(deviceInfo); in handleReportPhysicalAddress()
718 HdmiDeviceInfo deviceInfo = getCecDeviceInfo(source); in handleSetOsdName() local
720 if (deviceInfo == null) { in handleSetOsdName()
732 if (deviceInfo.getDisplayName().equals(osdName)) { in handleSetOsdName()
737 addCecDevice(new HdmiDeviceInfo(deviceInfo.getLogicalAddress(), in handleSetOsdName()
738 deviceInfo.getPhysicalAddress(), deviceInfo.getPortId(), in handleSetOsdName()
739 deviceInfo.getDeviceType(), deviceInfo.getVendorId(), osdName)); in handleSetOsdName()
1225 private HdmiDeviceInfo addDeviceInfo(HdmiDeviceInfo deviceInfo) { in addDeviceInfo() argument
1227 HdmiDeviceInfo oldDeviceInfo = getCecDeviceInfo(deviceInfo.getLogicalAddress()); in addDeviceInfo()
[all …]
/frameworks/base/media/native/midi/
Damidi.cpp131 MidiDeviceInfo deviceInfo; in AMIDI_getDeviceInfo() local
132 Status txResult = device->server->getDeviceInfo(&deviceInfo); in AMIDI_getDeviceInfo()
138 outDeviceInfoPtr->type = deviceInfo.getType(); in AMIDI_getDeviceInfo()
139 outDeviceInfoPtr->inputPortCount = deviceInfo.getInputPortNames().size(); in AMIDI_getDeviceInfo()
140 outDeviceInfoPtr->outputPortCount = deviceInfo.getOutputPortNames().size(); in AMIDI_getDeviceInfo()
180 if (AMIDI_getDeviceInfo(devicePtr, &devicePtr->deviceInfo) != AMEDIA_OK) { in AMidiDevice_fromJava()
224 return device->deviceInfo.type; in AMidiDevice_getType()
231 return device->deviceInfo.inputPortCount; in AMidiDevice_getNumInputPorts()
238 return device->deviceInfo.outputPortCount; in AMidiDevice_getNumOutputPorts()
Damidi_internal.h38 AMidiDeviceInfo deviceInfo; /* Attributes of the device. */ member
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java196 MidiDeviceInfo deviceInfo = device.getDeviceInfo(); in deviceAdded()
199 listener.onDeviceAdded(deviceInfo); in deviceAdded()
210 MidiDeviceInfo deviceInfo = device.getDeviceInfo(); in deviceRemoved()
213 listener.onDeviceRemoved(deviceInfo); in deviceRemoved()
304 public Device(IMidiDeviceServer server, MidiDeviceInfo deviceInfo, in Device() argument
306 mDeviceInfo = deviceInfo; in Device()
309 mBluetoothDevice = (BluetoothDevice)deviceInfo.getProperties().getParcelable( in Device()
362 public void setDeviceInfo(MidiDeviceInfo deviceInfo) { in setDeviceInfo() argument
363 mDeviceInfo = deviceInfo; in setDeviceInfo()
652 public void openDevice(IBinder token, MidiDeviceInfo deviceInfo, in openDevice() argument
[all …]
/frameworks/base/media/java/android/media/tv/
DITvInputService.aidl39 void notifyHdmiDeviceAdded(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceAdded() argument
40 void notifyHdmiDeviceRemoved(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceRemoved() argument
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java188 HdmiDeviceInfo deviceInfo = it.next(); in onDeviceUnavailable() local
189 if (deviceInfo.getPortId() == info.getHdmiPortId()) { in onDeviceUnavailable()
191 deviceInfo).sendToTarget(); in onDeviceUnavailable()
491 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; in processPendingHdmiDeviceEventsLocked() local
493 findHardwareInfoForHdmiPortLocked(deviceInfo.getPortId()); in processPendingHdmiDeviceEventsLocked()
1213 public void onStatusChanged(HdmiDeviceInfo deviceInfo, int status) { in onStatusChanged() argument
1214 if (!deviceInfo.isSourceType()) return; in onStatusChanged()
1220 if (findHdmiDeviceInfo(deviceInfo.getId()) == null) { in onStatusChanged()
1221 mHdmiDeviceList.add(deviceInfo); in onStatusChanged()
1223 Slog.w(TAG, "The list already contains " + deviceInfo + "; ignoring."); in onStatusChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java466 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectA2dp()
467 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP) { in disconnectA2dp()
468 toRemove.add(deviceInfo.mDeviceAddress); in disconnectA2dp()
486 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectA2dpSink()
487 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_IN_BLUETOOTH_A2DP) { in disconnectA2dpSink()
488 toRemove.add(deviceInfo.mDeviceAddress); in disconnectA2dpSink()
499 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectHearingAid()
500 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_OUT_HEARING_AID) { in disconnectHearingAid()
501 toRemove.add(deviceInfo.mDeviceAddress); in disconnectHearingAid()
655 final DeviceInfo deviceInfo = mConnectedDevices.get(deviceKey); in makeA2dpDeviceUnavailableLater() local
[all …]
/frameworks/base/media/jni/
Dandroid_mtp_MtpDevice.cpp227 std::unique_ptr<MtpDeviceInfo> deviceInfo(device->getDeviceInfo()); in android_mtp_MtpDevice_get_device_info() local
228 if (!deviceInfo) { in android_mtp_MtpDevice_get_device_info()
238 if (deviceInfo->mManufacturer) in android_mtp_MtpDevice_get_device_info()
240 env->NewStringUTF(deviceInfo->mManufacturer)); in android_mtp_MtpDevice_get_device_info()
241 if (deviceInfo->mModel) in android_mtp_MtpDevice_get_device_info()
243 env->NewStringUTF(deviceInfo->mModel)); in android_mtp_MtpDevice_get_device_info()
244 if (deviceInfo->mVersion) in android_mtp_MtpDevice_get_device_info()
246 env->NewStringUTF(deviceInfo->mVersion)); in android_mtp_MtpDevice_get_device_info()
247 if (deviceInfo->mSerial) in android_mtp_MtpDevice_get_device_info()
249 env->NewStringUTF(deviceInfo->mSerial)); in android_mtp_MtpDevice_get_device_info()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.h41 static bool isDistortionSupported(const CameraMetadata &deviceInfo);
46 status_t setupStaticInfo(const CameraMetadata &deviceInfo);
/frameworks/rs/rsov/driver/
DrsovContext.cpp85 VkDeviceCreateInfo deviceInfo = { in Initialize() local
93 res = vkCreateDevice(mGPU, &deviceInfo, nullptr, &mDevice); in Initialize()
/frameworks/base/media/java/android/media/
DAudioRouting.java35 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo); in setPreferredDevice() argument

123