/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 226 DisplayDeviceInfo deviceInfo = mPrimaryDisplayDevice.getDisplayDeviceInfoLocked(); in updateLocked() local 227 if (!Objects.equal(mPrimaryDisplayDeviceInfo, deviceInfo)) { in updateLocked() 230 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_SUPPORTS_PROTECTED_BUFFERS) != 0) { in updateLocked() 233 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_SECURE) != 0) { in updateLocked() 236 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_PRIVATE) != 0) { in updateLocked() 241 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_PRESENTATION) != 0) { in updateLocked() 244 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_ROUND) != 0) { in updateLocked() 247 if ((deviceInfo.flags & DisplayDeviceInfo.FLAG_CAN_SHOW_WITH_INSECURE_KEYGUARD) != 0) { in updateLocked() 250 mBaseDisplayInfo.type = deviceInfo.type; in updateLocked() 251 mBaseDisplayInfo.address = deviceInfo.address; in updateLocked() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 39 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().string())); in android_view_InputDevice_create() 46 env->NewStringUTF(deviceInfo.getIdentifier().descriptor.string())); 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 …]
|
D | android_view_InputDevice.h | 27 extern jobject android_view_InputDevice_create(JNIEnv* env, const InputDeviceInfo& deviceInfo);
|
/frameworks/base/media/java/android/media/midi/ |
D | MidiDeviceStatus.java | 38 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);
|
D | MidiDeviceService.java | 75 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()
|
D | MidiManager.java | 243 public void openDevice(MidiDeviceInfo deviceInfo, OnDeviceOpenedListener listener, in openDevice() argument 245 final MidiDeviceInfo deviceInfoF = deviceInfo; in openDevice() 263 mService.openDevice(mToken, deviceInfo, callback); in openDevice() 291 MidiDeviceInfo deviceInfo = server.getDeviceInfo(); in openBluetoothDevice() 292 device = new MidiDevice(deviceInfo, server, mService, mToken, deviceToken); in openBluetoothDevice() 315 MidiDeviceInfo deviceInfo = mService.registerDeviceServer(server.getBinderInterface(), in createDeviceServer() local 318 if (deviceInfo == null) { in createDeviceServer()
|
D | MidiDeviceServer.java | 323 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()
|
D | IMidiDeviceServer.aidl | 34 void setDeviceInfo(in MidiDeviceInfo deviceInfo); in setDeviceInfo() argument
|
D | MidiDevice.java | 114 /* package */ MidiDevice(MidiDeviceInfo deviceInfo, IMidiDeviceServer server, in MidiDevice() argument 116 mDeviceInfo = deviceInfo; in MidiDevice()
|
D | IMidiManager.aidl | 56 MidiDeviceStatus getDeviceStatus(in MidiDeviceInfo deviceInfo); in getDeviceStatus() argument
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | CameraProviderManager.cpp | 127 for (auto& deviceInfo : provider->mDevices) { in isValidDeviceLocked() local 128 if (deviceInfo->mId == id && deviceInfo->mVersion.get_major() == majorVersion) { in isValidDeviceLocked() 139 auto deviceInfo = findDeviceInfoLocked(id); in hasFlashUnit() local 140 if (deviceInfo == nullptr) return false; in hasFlashUnit() 142 return deviceInfo->hasFlashUnit(); in hasFlashUnit() 149 auto deviceInfo = findDeviceInfoLocked(id); in getResourceCost() local 150 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getResourceCost() 152 *cost = deviceInfo->mResourceCost; in getResourceCost() 160 auto deviceInfo = findDeviceInfoLocked(id); in getCameraInfo() local 161 if (deviceInfo == nullptr) return NAME_NOT_FOUND; in getCameraInfo() [all …]
|
/frameworks/base/media/native/midi/ |
D | midi.cpp | 84 MidiDeviceInfo deviceInfo; in AMIDI_getDeviceInfo() local 85 Status txResult = device->server->getDeviceInfo(&deviceInfo); in AMIDI_getDeviceInfo() 91 deviceInfoPtr->type = deviceInfo.getType(); in AMIDI_getDeviceInfo() 92 deviceInfoPtr->uid = deviceInfo.getUid(); in AMIDI_getDeviceInfo() 93 deviceInfoPtr->isPrivate = deviceInfo.isPrivate(); in AMIDI_getDeviceInfo() 94 deviceInfoPtr->inputPortCount = deviceInfo.getInputPortNames().size(); in AMIDI_getDeviceInfo() 95 deviceInfoPtr->outputPortCount = deviceInfo.getOutputPortNames().size(); in AMIDI_getDeviceInfo()
|
/frameworks/base/services/midi/java/com/android/server/midi/ |
D | MidiService.java | 196 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() 365 public void setDeviceInfo(MidiDeviceInfo deviceInfo) { in setDeviceInfo() argument 366 mDeviceInfo = deviceInfo; in setDeviceInfo() 655 public void openDevice(IBinder token, MidiDeviceInfo deviceInfo, in openDevice() argument [all …]
|
/frameworks/base/media/tests/NativeMidiDemo/jni/ |
D | nativemidi-jni.cpp | 251 AMIDI_DeviceInfo deviceInfo; in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi() local 252 int result = AMIDI_getDeviceInfo(midiDevice, &deviceInfo); in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi() 255 deviceInfo.uid, deviceInfo.type, deviceInfo.isPrivate, in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi() 256 (int)deviceInfo.inputPortCount, (int)deviceInfo.outputPortCount); in Java_com_example_android_nativemididemo_NativeMidi_startReadingMidi()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputHardwareManager.java | 191 HdmiDeviceInfo deviceInfo = it.next(); in onDeviceUnavailable() local 192 if (deviceInfo.getPortId() == info.getHdmiPortId()) { in onDeviceUnavailable() 194 deviceInfo).sendToTarget(); in onDeviceUnavailable() 494 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; in processPendingHdmiDeviceEventsLocked() local 496 findHardwareInfoForHdmiPortLocked(deviceInfo.getPortId()); in processPendingHdmiDeviceEventsLocked() 1230 public void onStatusChanged(HdmiDeviceInfo deviceInfo, int status) { in onStatusChanged() argument 1231 if (!deviceInfo.isSourceType()) return; in onStatusChanged() 1237 if (findHdmiDeviceInfo(deviceInfo.getId()) == null) { in onStatusChanged() 1238 mHdmiDeviceList.add(deviceInfo); in onStatusChanged() 1240 Slog.w(TAG, "The list already contains " + deviceInfo + "; ignoring."); in onStatusChanged() [all …]
|
/frameworks/base/media/java/android/media/tv/ |
D | ITvInputService.aidl | 39 void notifyHdmiDeviceAdded(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceAdded() argument 40 void notifyHdmiDeviceRemoved(in HdmiDeviceInfo deviceInfo); in notifyHdmiDeviceRemoved() argument
|
D | TvInputService.java | 167 public void notifyHdmiDeviceAdded(HdmiDeviceInfo deviceInfo) { in onBind() argument 169 deviceInfo).sendToTarget(); in onBind() 173 public void notifyHdmiDeviceRemoved(HdmiDeviceInfo deviceInfo) { in onBind() argument 175 deviceInfo).sendToTarget(); in onBind() 243 public TvInputInfo onHdmiDeviceAdded(HdmiDeviceInfo deviceInfo) { 257 public String onHdmiDeviceRemoved(HdmiDeviceInfo deviceInfo) { 2119 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; 2120 TvInputInfo inputInfo = onHdmiDeviceAdded(deviceInfo); 2122 broadcastAddHdmiInput(deviceInfo.getId(), inputInfo); 2127 HdmiDeviceInfo deviceInfo = (HdmiDeviceInfo) msg.obj; [all …]
|
/frameworks/base/media/jni/ |
D | android_mtp_MtpDevice.cpp | 227 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/hdmi/ |
D | NewDeviceAction.java | 175 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo( in addDeviceInfo() local 179 tv().addCecDevice(deviceInfo); in addDeviceInfo() 186 tv().onNewAvrAdded(deviceInfo); in addDeviceInfo()
|
D | HdmiCecLocalDeviceTv.java | 584 HdmiDeviceInfo deviceInfo = new HdmiDeviceInfo(address, path, getPortId(path), type, in handleReportPhysicalAddress() local 586 addCecDevice(deviceInfo); in handleReportPhysicalAddress() 738 HdmiDeviceInfo deviceInfo = getCecDeviceInfo(source); in handleSetOsdName() local 740 if (deviceInfo == null) { in handleSetOsdName() 752 if (deviceInfo.getDisplayName().equals(osdName)) { in handleSetOsdName() 757 addCecDevice(new HdmiDeviceInfo(deviceInfo.getLogicalAddress(), in handleSetOsdName() 758 deviceInfo.getPhysicalAddress(), deviceInfo.getPortId(), in handleSetOsdName() 759 deviceInfo.getDeviceType(), deviceInfo.getVendorId(), osdName)); in handleSetOsdName() 1233 private HdmiDeviceInfo addDeviceInfo(HdmiDeviceInfo deviceInfo) { in addDeviceInfo() argument 1235 HdmiDeviceInfo oldDeviceInfo = getCecDeviceInfo(deviceInfo.getLogicalAddress()); in addDeviceInfo() [all …]
|
/frameworks/rs/rsov/driver/ |
D | rsovContext.cpp | 85 VkDeviceCreateInfo deviceInfo = { in Initialize() local 93 res = vkCreateDevice(mGPU, &deviceInfo, nullptr, &mDevice); in Initialize()
|
/frameworks/base/core/java/android/hardware/hdmi/ |
D | IHdmiDeviceEventListener.aidl | 39 void onStatusChanged(in HdmiDeviceInfo deviceInfo, in int status); in onStatusChanged() argument
|
/frameworks/base/media/java/android/media/ |
D | AudioRouting.java | 35 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo); in setPreferredDevice() argument
|
D | AudioRecord.java | 1612 public boolean setPreferredDevice(AudioDeviceInfo deviceInfo) { in setPreferredDevice() argument 1614 if (deviceInfo != null && !deviceInfo.isSource()) { in setPreferredDevice() 1618 int preferredDeviceId = deviceInfo != null ? deviceInfo.getId() : 0; in setPreferredDevice() 1622 mPreferredDevice = deviceInfo; in setPreferredDevice()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbMidiDevice.java | 79 MidiDeviceInfo deviceInfo = status.getDeviceInfo(); 80 int inputPorts = deviceInfo.getInputPortCount(); 81 int outputPorts = deviceInfo.getOutputPortCount();
|