Home
last modified time | relevance | path

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

123

/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/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/core/java/android/hardware/hdmi/
DHdmiControlManager.java474 public void powerOffDevice(@NonNull HdmiDeviceInfo deviceInfo) { in powerOffDevice() argument
475 Preconditions.checkNotNull(deviceInfo); in powerOffDevice()
478 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOffDevice()
491 public void powerOffRemoteDevice(@NonNull HdmiDeviceInfo deviceInfo) { in powerOffRemoteDevice() argument
492 Preconditions.checkNotNull(deviceInfo); in powerOffRemoteDevice()
495 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOffRemoteDevice()
511 public void powerOnDevice(HdmiDeviceInfo deviceInfo) { in powerOnDevice() argument
512 Preconditions.checkNotNull(deviceInfo); in powerOnDevice()
515 deviceInfo.getLogicalAddress(), deviceInfo.getDevicePowerStatus()); in powerOnDevice()
528 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);
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()
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()
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()
/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.cpp178 for (auto& deviceInfo : provider->mDevices) { in isValidDeviceLocked() local
179 if (deviceInfo->mId == id && deviceInfo->mVersion.get_major() == majorVersion) { in isValidDeviceLocked()
190 auto deviceInfo = findDeviceInfoLocked(id); in hasFlashUnit() local
191 if (deviceInfo == nullptr) return false; in hasFlashUnit()
193 return deviceInfo->hasFlashUnit(); in hasFlashUnit()
200 auto deviceInfo = findDeviceInfoLocked(id); in getResourceCost() local
201 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getResourceCost()
203 *cost = deviceInfo->mResourceCost; in getResourceCost()
211 auto deviceInfo = findDeviceInfoLocked(id); in getCameraInfo() local
212 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.java567 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo(address, path, getPortId(path), type, in handleReportPhysicalAddress() local
569 addCecDevice(deviceInfo); in handleReportPhysicalAddress()
720 HdmiDeviceInfo deviceInfo = getCecDeviceInfo(source); in handleSetOsdName() local
722 if (deviceInfo == null) { in handleSetOsdName()
734 if (deviceInfo.getDisplayName().equals(osdName)) { in handleSetOsdName()
739 addCecDevice(new HdmiDeviceInfo(deviceInfo.getLogicalAddress(), in handleSetOsdName()
740 deviceInfo.getPhysicalAddress(), deviceInfo.getPortId(), in handleSetOsdName()
741 deviceInfo.getDeviceType(), deviceInfo.getVendorId(), osdName)); in handleSetOsdName()
1232 private HdmiDeviceInfo addDeviceInfo(HdmiDeviceInfo deviceInfo) { in addDeviceInfo() argument
1234 HdmiDeviceInfo oldDeviceInfo = getCecDeviceInfo(deviceInfo.getLogicalAddress()); in addDeviceInfo()
[all …]
/frameworks/base/media/java/android/media/
DAudioDeviceAddress.java79 public AudioDeviceAddress(@NonNull AudioDeviceInfo deviceInfo) { in AudioDeviceAddress() argument
80 Objects.requireNonNull(deviceInfo); in AudioDeviceAddress()
81 mRole = deviceInfo.isSink() ? ROLE_OUTPUT : ROLE_INPUT; in AudioDeviceAddress()
82 mType = deviceInfo.getType(); in AudioDeviceAddress()
83 mAddress = deviceInfo.getAddress(); in AudioDeviceAddress()
DMediaRecorder.java1402 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice() argument
1403 if (deviceInfo != null && !deviceInfo.isSource()) { in setPreferredDevice()
1406 int preferredDeviceId = deviceInfo != null ? deviceInfo.getId() : 0; in setPreferredDevice()
1410 mPreferredDevice = deviceInfo; in setPreferredDevice()
/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()
/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
41 void notifyHdmiDeviceUpdated(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceUpdated() argument
DTvInputService.java166 public void notifyHdmiDeviceAdded(HdmiDeviceInfo deviceInfo) { in onBind() argument
168 deviceInfo).sendToTarget(); in onBind()
172 public void notifyHdmiDeviceRemoved(HdmiDeviceInfo deviceInfo) { in onBind() argument
174 deviceInfo).sendToTarget(); in onBind()
178 public void notifyHdmiDeviceUpdated(HdmiDeviceInfo deviceInfo) { in onBind() argument
180 deviceInfo).sendToTarget(); in onBind()
248 public TvInputInfo onHdmiDeviceAdded(HdmiDeviceInfo deviceInfo) {
262 public String onHdmiDeviceRemoved(HdmiDeviceInfo deviceInfo) {
281 public void onHdmiDeviceUpdated(@NonNull HdmiDeviceInfo deviceInfo) {
2144 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj;
[all …]
/frameworks/native/services/inputflinger/reader/
DInputDevice.cpp68 InputDeviceInfo deviceInfo; in dump() local
69 getDeviceInfo(&deviceInfo); in dump()
71 dump += StringPrintf(INDENT "Device %d: %s\n", deviceInfo.getId(), in dump()
72 deviceInfo.getDisplayName().c_str()); in dump()
82 dump += StringPrintf(INDENT2 "Sources: 0x%08x\n", deviceInfo.getSources()); in dump()
83 dump += StringPrintf(INDENT2 "KeyboardType: %d\n", deviceInfo.getKeyboardType()); in dump()
85 const std::vector<InputDeviceInfo::MotionRange>& ranges = deviceInfo.getMotionRanges(); in dump()
/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()
495 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; in processPendingHdmiDeviceEventsLocked() local
497 findHardwareInfoForHdmiPortLocked(deviceInfo.getPortId()); in processPendingHdmiDeviceEventsLocked()
1217 public void onStatusChanged(HdmiDeviceInfo deviceInfo, int status) { in onStatusChanged() argument
1218 if (!deviceInfo.isSourceType()) return; in onStatusChanged()
1224 if (findHdmiDeviceInfo(deviceInfo.getId()) == null) { in onStatusChanged()
1225 mHdmiDeviceList.add(deviceInfo); in onStatusChanged()
1227 Slog.w(TAG, "The list already contains " + deviceInfo + "; ignoring."); in onStatusChanged()
[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/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java468 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectA2dp()
469 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_OUT_BLUETOOTH_A2DP) { in disconnectA2dp()
470 toRemove.add(deviceInfo.mDeviceAddress); in disconnectA2dp()
488 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectA2dpSink()
489 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_IN_BLUETOOTH_A2DP) { in disconnectA2dpSink()
490 toRemove.add(deviceInfo.mDeviceAddress); in disconnectA2dpSink()
501 mConnectedDevices.values().forEach(deviceInfo -> { in disconnectHearingAid()
502 if (deviceInfo.mDeviceType == AudioSystem.DEVICE_OUT_HEARING_AID) { in disconnectHearingAid()
503 toRemove.add(deviceInfo.mDeviceAddress); in disconnectHearingAid()
659 final DeviceInfo deviceInfo = mConnectedDevices.get(deviceKey); in makeA2dpDeviceUnavailableLater() local
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.h41 static bool isDistortionSupported(const CameraMetadata &deviceInfo);
46 status_t setupStaticInfo(const CameraMetadata &deviceInfo);

123