/frameworks/av/services/camera/libcameraservice/device1/ |
D | CameraHardwareInterface.h | 77 mDevice(nullptr), in CameraHardwareInterface() 93 if(mDevice) { in ~CameraHardwareInterface() 94 int rc = mDevice->common.close(&mDevice->common); in ~CameraHardwareInterface() 115 (hw_device_t **)&mDevice); in initialize() 117 rc = module->open(mName.string(), (hw_device_t **)&mDevice); in initialize() 131 if (mDevice->ops->set_preview_window) { in setPreviewWindow() 144 return mDevice->ops->set_preview_window(mDevice, in setPreviewWindow() 184 if (mDevice->ops->set_callbacks) { in setCallbacks() 185 mDevice->ops->set_callbacks(mDevice, in setCallbacks() 206 if (mDevice->ops->enable_msg_type) in enableMsgType() [all …]
|
/frameworks/native/libs/ui/ |
D | Gralloc1.cpp | 33 mShimDevice.mDevice, mDeviceId); in ~Descriptor() 42 int32_t intError = mShimDevice.mFunctions.setDimensions(mShimDevice.mDevice, in setDimensions() 77 mShimDevice.mDevice, mDeviceId, format, &mFormat); in setFormat() 83 mShimDevice.mDevice, mDeviceId, usage, &mProducerUsage); in setProducerUsage() 89 mShimDevice.mDevice, mDeviceId, usage, &mConsumerUsage); in setConsumerUsage() 93 : mDevice(device), in Device() 111 mFunctions.dump(mDevice, &length, nullptr); in dump() 115 mFunctions.dump(mDevice, &length, output.data()); in dump() 123 int32_t intError = mFunctions.createDescriptor(mDevice, &descriptorId); in createDescriptor() 134 int32_t intError = mFunctions.getStride(mDevice, buffer, outStride); in getStride() [all …]
|
D | GraphicBufferMapper.cpp | 48 mDevice(mLoader->getDevice()) {} in ANDROID_SINGLETON_STATIC_INSTANCE() 56 gralloc1_error_t error = mDevice->retain(handle); in registerBuffer() 67 gralloc1_error_t error = mDevice->retain(buffer); in registerBuffer() 78 gralloc1_error_t error = mDevice->release(handle); in unregisterBuffer() 124 gralloc1_error_t error = mDevice->lock(handle, in lockAsync() 165 if (mDevice->hasCapability(GRALLOC1_CAPABILITY_ON_ADAPTER)) { in lockAsyncYCbCr() 166 gralloc1_error_t error = mDevice->lockYCbCr(handle, in lockAsyncYCbCr() 176 gralloc1_error_t error = mDevice->getNumFlexPlanes(handle, &numPlanes); in lockAsyncYCbCr() 191 error = mDevice->lockFlex(handle, in lockAsyncYCbCr() 280 gralloc1_error_t error = mDevice->unlock(handle, &fence); in unlockAsync()
|
D | Gralloc1On0Adapter.cpp | 41 mDevice(nullptr) in Gralloc1On0Adapter() 46 int error = ::gralloc_open(&(mModule->common), &mDevice); in Gralloc1On0Adapter() 50 ALOGV("Opened gralloc0 device %p", mDevice); in Gralloc1On0Adapter() 56 if (mDevice) { in ~Gralloc1On0Adapter() 57 ALOGV("Closing gralloc0 device %p", mDevice); in ~Gralloc1On0Adapter() 58 ::gralloc_close(mDevice); in ~Gralloc1On0Adapter() 126 if (mDevice != nullptr) { in doGetFunction() 170 if (!mDevice->dump) { in dump() 179 mDevice->dump(mDevice, buffer, BUFFER_LENGTH); in dump() 245 ALOGV("Calling alloc(%p, %u, %u, %i, %u)", mDevice, descriptor->width, in allocate() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 52 private final BluetoothDevice mDevice; field in CachedBluetoothDevice 116 sb.append("Address:").append(mDevice); in describe() 137 profile.setPreferred(mDevice, true); in onProfileStateChanged() 142 ((PanProfile) profile).isLocalRoleNap(mDevice)) { in onProfileStateChanged() 149 profile.setPreferred(mDevice, false); in onProfileStateChanged() 151 ((PanProfile) profile).isLocalRoleNap(mDevice) && in onProfileStateChanged() 167 mDevice = device; in CachedBluetoothDevice() 180 if (PbapProfile.getConnectionStatus(mDevice) == BluetoothProfile.STATE_CONNECTED) in disconnect() 182 PbapProfile.disconnect(mDevice); in disconnect() 187 if (profile.disconnect(mDevice)) { in disconnect() [all …]
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | HWC2.cpp | 454 : mDevice(device), in Display() 466 mDevice.destroyVirtualDisplay(mId); in ~Display() 501 int32_t intError = mDevice.mAcceptDisplayChanges(mDevice.mHwcDevice, mId); in acceptChanges() 508 int32_t intError = mDevice.mCreateLayer(mDevice.mHwcDevice, mId, &layerId); in createLayer() 525 int32_t intError = mDevice.mGetActiveConfig(mDevice.mHwcDevice, mId, in getActiveConfig() 550 int32_t intError = mDevice.mGetChangedCompositionTypes(mDevice.mHwcDevice, in getChangedCompositionTypes() 559 intError = mDevice.mGetChangedCompositionTypes(mDevice.mHwcDevice, mId, in getChangedCompositionTypes() 587 int32_t intError = mDevice.mGetColorModes(mDevice.mHwcDevice, mId, in getColorModes() 595 intError = mDevice.mGetColorModes(mDevice.mHwcDevice, mId, &numModes, in getColorModes() 621 int32_t intError = mDevice.mGetDisplayName(mDevice.mHwcDevice, mId, &size, in getName() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothGatt.java | 47 private BluetoothDevice mDevice; field in BluetoothGatt 163 mService.clientConnect(mClientIf, mDevice.getAddress(), 178 if (!address.equals(mDevice.getAddress())) { 212 if (!address.equals(mDevice.getAddress())) { 218 s.setDevice(mDevice); 230 BluetoothGattService includedService = getService(mDevice, 259 if (!address.equals(mDevice.getAddress())) { 283 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice, handle); 307 if (!address.equals(mDevice.getAddress())) { 315 BluetoothGattCharacteristic characteristic = getCharacteristicById(mDevice, handle); [all …]
|
/frameworks/base/core/java/android/bluetooth/le/ |
D | ScanResult.java | 31 private BluetoothDevice mDevice; field in ScanResult 53 mDevice = device; in ScanResult() 65 if (mDevice != null) { in writeToParcel() 67 mDevice.writeToParcel(dest, flags); in writeToParcel() 83 mDevice = BluetoothDevice.CREATOR.createFromParcel(in); in readFromParcel() 101 return mDevice; in getDevice() 128 return Objects.hash(mDevice, mRssi, mScanRecord, mTimestampNanos); in hashCode() 140 return Objects.equals(mDevice, other.mDevice) && (mRssi == other.mRssi) && in equals() 147 return "ScanResult{" + "mDevice=" + mDevice + ", mScanRecord=" in toString()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | UiBot.java | 37 private final UiDevice mDevice; field in UiBot 41 mDevice = device; in UiBot() 52 boolean opened = mDevice.openNotification(); in getNotification() 54 boolean gotIt = mDevice.wait(Until.hasObject(By.pkg(SYSTEMUI_PACKAGE)), mTimeout); in getNotification() 76 boolean gotIt = mDevice.wait(Until.hasObject(By.text(text)), mTimeout); in getObject() 87 boolean gotIt = mDevice.wait(Until.hasObject(By.res(id)), mTimeout); in getObjectById() 98 UiObject uiObject = mDevice.findObject(new UiSelector().text(text)); in getVisibleObject() 109 UiObject uiObject = mDevice.findObject(new UiSelector().resourceId(id)); in getVisibleObjectById() 146 boolean gotIt = mDevice.wait(Until.hasObject(By.text(shareText)), mTimeout); in chooseActivity() 175 boolean gotIt = mDevice.wait(Until.hasObject(By.res("android", "button_once")), mTimeout); in clickJustOnce() [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_hdmi_HdmiCecController.cpp | 77 hdmi_cec_device_t* mDevice; member in android::HdmiCecController 188 mDevice(device), in HdmiCecController() 194 mDevice->register_event_callback(mDevice, HdmiCecController::onReceived, this); in init() 199 return mDevice->send_message(mDevice, &message); in sendMessage() 203 return mDevice->add_logical_address(mDevice, address); in addLogicalAddress() 207 mDevice->clear_logical_address(mDevice); in clearLogicaladdress() 212 if (!mDevice->get_physical_address(mDevice, &addr)) { in getPhysicalAddress() 220 mDevice->get_version(mDevice, &version); in getVersion() 226 mDevice->get_vendor_id(mDevice, &vendorId); in getVendorId() 242 mDevice->get_port_info(mDevice, &ports, &numPorts); in getPortInfos() [all …]
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/ |
D | BaseBot.java | 35 final UiDevice mDevice; field in BaseBot 40 mDevice = device; in BaseBot() 49 UiObject2 candidate = mDevice.findObject(By.res(resourceName)); in assertHasFocus() 55 mDevice.wait(Until.findObject(selector), mTimeout); in find() 56 return mDevice.findObject(selector); in find() 61 return mDevice.findObject(object); in findObject() 68 return mDevice.findObject(selector); in findObject() 72 mDevice.waitForIdle(mTimeout); in waitForIdle()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbResolverActivity.java | 45 private UsbDevice mDevice; field in UsbResolverActivity 66 if (mDevice == null) { in onCreate() 73 mDevice = (UsbDevice)target.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 74 if (mDevice != null) { in onCreate() 75 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice); in onCreate() 104 if (mDevice != null) { in onTargetSelected() 106 service.grantDevicePermission(mDevice, uid); in onTargetSelected() 109 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); in onTargetSelected() 111 service.setDevicePackage(mDevice, null, userId); in onTargetSelected()
|
D | UsbConfirmActivity.java | 52 private UsbDevice mDevice; field in UsbConfirmActivity 63 mDevice = (UsbDevice) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 73 if (mDevice == null) { in onCreate() 78 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice); in onCreate() 90 if (mDevice == null) { in onCreate() 122 if (mDevice != null) { in onClick() 124 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice); in onClick() 127 service.grantDevicePermission(mDevice, uid); in onClick() 131 mDevice, mResolveInfo.activityInfo.packageName, userId); in onClick() 133 service.setDevicePackage(mDevice, null, userId); in onClick()
|
D | UsbPermissionActivity.java | 53 private UsbDevice mDevice; field in UsbPermissionActivity 66 mDevice = (UsbDevice)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE); in onCreate() 86 if (mDevice == null) { in onCreate() 91 mDisconnectedReceiver = new UsbDisconnectedReceiver(this, mDevice); in onCreate() 103 if (mDevice == null) { in onCreate() 125 if (mDevice != null) { in onDestroy() 126 intent.putExtra(UsbManager.EXTRA_DEVICE, mDevice); in onDestroy() 128 service.grantDevicePermission(mDevice, mUid); in onDestroy() 131 service.setDevicePackage(mDevice, mPackageName, userId); in onDestroy()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DelayedMessageBuffer.java | 30 private final HdmiCecLocalDevice mDevice; field in DelayedMessageBuffer 33 mDevice = device; in DelayedMessageBuffer() 91 mDevice.onMessage(message); in processAllMessages() 116 && !mDevice.isInputReady(HdmiDeviceInfo.idForCecDevice(address))) { in processMessagesForDevice() 120 mDevice.onMessage(message); in processMessagesForDevice() 142 mDevice.onMessage(message); in processActiveSource()
|
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/ |
D | BlockingCameraManager.java | 181 private CameraDevice mDevice = null; field in BlockingCameraManager.OpenListener 200 assertEquals(null, mDevice); in assertInitialState() 216 mDevice = camera; in onOpened() 239 mDevice = camera; in onDisconnected() 265 mDevice = camera; in onError() 305 if (!mSuccess && mDevice != null) { in blockUntilOpen() 306 mDevice.close(); in blockUntilOpen() 310 return mDevice; in blockUntilOpen()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
D | WifiP2pServiceResponse.java | 60 protected WifiP2pDevice mDevice; field in WifiP2pServiceResponse 123 mDevice = device; in WifiP2pServiceResponse() 176 return mDevice; in getSrcDevice() 182 this.mDevice = dev; in setSrcDevice() 298 sbuf.append(" srcAddr:").append(mDevice.deviceAddress); in toString() 316 equals(req.mDevice.deviceAddress, mDevice.deviceAddress) && in equals() 335 result = 31 * result + (mDevice.deviceAddress == null ? in hashCode() 336 0 : mDevice.deviceAddress.hashCode()); in hashCode() 351 dest.writeParcelable(mDevice, flags); in writeToParcel()
|
/frameworks/native/libs/binder/ |
D | MemoryHeapBase.cpp | 40 mDevice(NULL), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 46 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 63 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 75 mDevice = device; in MemoryHeapBase() 82 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase() 98 mDevice = device; in init() 170 return mDevice; in getDevice()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | CameraDeviceClient.cpp | 96 mFrameProcessor = new FrameProcessorBase(mDevice); in initialize() 136 if (!mDevice.get()) { in submitRequestList() 228 … err = mDevice->setStreamingRequestList(metadataRequestList, &(submitInfo->mLastFrameNumber)); in submitRequestList() 241 err = mDevice->captureList(metadataRequestList, &(submitInfo->mLastFrameNumber)); in submitRequestList() 271 if (!mDevice.get()) { in cancelRequest() 283 err = mDevice->clearStreamingRequest(lastFrameNumber); in cancelRequest() 313 if (!mDevice.get()) { in endConfigure() 319 CameraMetadata staticInfo = mDevice->info(); in endConfigure() 339 status_t err = mDevice->configureStreams(isConstrainedHighSpeed); in endConfigure() 364 if (!mDevice.get()) { in deleteStream() [all …]
|
/frameworks/av/services/camera/libcameraservice/common/ |
D | Camera2ClientBase.cpp | 65 mDevice = new Camera3Device(cameraId); in Camera2ClientBase() 66 LOG_ALWAYS_FATAL_IF(mDevice == 0, "Device should never be NULL here."); in Camera2ClientBase() 94 if (mDevice == NULL) { in initialize() 100 res = mDevice->initialize(module); in initialize() 108 res = mDevice->setNotifyCallback(weakThis); in initialize() 153 if (!mDevice.get()) { in dumpDevice() 159 status_t res = mDevice->dump(fd, args); in dumpDevice() 196 if (mDevice == 0) return; in detachDevice() 197 mDevice->disconnect(); in detachDevice() 199 mDevice.clear(); in detachDevice() [all …]
|
/frameworks/av/services/camera/libcameraservice/ |
D | CameraFlashlight.cpp | 502 mDevice = device; in connectCameraDevice() 508 if (mDevice != NULL) { in disconnectCameraDevice() 509 mDevice->disconnect(); in disconnectCameraDevice() 510 mDevice.clear(); in disconnectCameraDevice() 562 res = mDevice->createDefaultRequest( in submitTorchEnabledRequest() 580 res = mDevice->setStreamingRequest(*mMetadata); in submitTorchEnabledRequest() 582 res = mDevice->capture(*mMetadata); in submitTorchEnabledRequest() 608 if (mDevice != NULL && cameraId != mCameraId) { in setTorchMode() 611 } else if (mDevice == NULL || cameraId != mCameraId) { in setTorchMode() 623 if (mDevice == NULL) { in setTorchMode() [all …]
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbAudioDevice.java | 24 public int mDevice; field in UsbAudioDevice 45 mDevice = device; in UsbAudioDevice() 54 sb.append(", device: " + mDevice); in toString() 63 return "[card:" + mCard + " device:" + mDevice + " " + mDeviceName + "]"; in toShortString()
|
/frameworks/av/camera/ndk/impl/ |
D | ACameraDevice.h | 68 ServiceCallback(CameraDevice* device) : mDevice(device) {} in ServiceCallback() 79 const wp<CameraDevice> mDevice; 279 mDevice(new CameraDevice(id, cb, std::move(chars), this)) {} in ACameraDevice() 286 inline const char* getId() const { return mDevice->getId(); } in getId() 291 return mDevice->createCaptureRequest(templateId, request); in createCaptureRequest() 298 return mDevice->createCaptureSession(outputs, callbacks, session); in createCaptureSession() 305 return mDevice->getServiceCallback(); in getServiceCallback() 310 mDevice->setRemoteDevice(remote); in setRemoteDevice() 314 android::sp<android::CameraDevice> mDevice;
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
D | NotificationStressTest.java | 63 private UiDevice mDevice = null; field in NotificationStressTest 69 mDevice = UiDevice.getInstance(getInstrumentation()); in setUp() 73 mDevice.setOrientationNatural(); in setUp() 79 mDevice.unfreezeRotation(); in tearDown() 81 mDevice.waitForIdle(); in tearDown() 96 mDevice.openNotification(); in testNotificationsWithShadeStress()
|
/frameworks/native/include/binder/ |
D | MemoryHeapBase.h | 77 if (mDevice == 0) in setDevice() 78 mDevice = device; in setDevice() 79 return mDevice ? NO_ERROR : ALREADY_EXISTS; in setDevice() 95 const char* mDevice; variable
|