Home
last modified time | relevance | path

Searched refs:mDevice (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h78 mDevice = 0; in CameraHardwareInterface()
85 if(mDevice) { in ~CameraHardwareInterface()
86 int rc = mDevice->common.close(&mDevice->common); in ~CameraHardwareInterface()
96 (hw_device_t **)&mDevice); in initialize()
110 if (mDevice->ops->set_preview_window) { in setPreviewWindow()
115 return mDevice->ops->set_preview_window(mDevice, in setPreviewWindow()
134 if (mDevice->ops->set_callbacks) { in setCallbacks()
135 mDevice->ops->set_callbacks(mDevice, in setCallbacks()
156 if (mDevice->ops->enable_msg_type) in enableMsgType()
157 mDevice->ops->enable_msg_type(mDevice, msgType); in enableMsgType()
[all …]
/frameworks/av/services/camera/libcameraservice/api_pro/
DProCamera2Client.cpp64 mFrameProcessor = new FrameProcessorBase(mDevice); in initialize()
85 if (!mDevice.get()) return PERMISSION_DENIED; in exclusiveTryLock()
116 if (!mDevice.get()) return PERMISSION_DENIED; in exclusiveLock()
197 if (!mDevice.get()) return DEAD_OBJECT; in submitRequest()
210 return mDevice->setStreamingRequest(metadata); in submitRequest()
212 return mDevice->capture(metadata); in submitRequest()
226 if (!mDevice.get()) return DEAD_OBJECT; in cancelRequest()
246 if (!mDevice.get()) return DEAD_OBJECT; in deleteStream()
247 mDevice->clearStreamingRequest(); in deleteStream()
250 if ((code = mDevice->waitUntilDrained()) != OK) { in deleteStream()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothGatt.java60 private BluetoothDevice mDevice; field in BluetoothGatt
147 mService.clientConnect(mClientIf, mDevice.getAddress(),
162 if (!address.equals(mDevice.getAddress())) {
199 if (!address.equals(mDevice.getAddress())) {
202 mServices.add(new BluetoothGattService(mDevice, srvcUuid.getUuid(),
218 if (!address.equals(mDevice.getAddress())) {
221 BluetoothGattService service = getService(mDevice,
223 BluetoothGattService includedService = getService(mDevice,
244 if (!address.equals(mDevice.getAddress())) {
247 BluetoothGattService service = getService(mDevice, srvcUuid.getUuid(),
[all …]
DBluetoothGattService.java46 protected BluetoothDevice mDevice; field in BluetoothGattService
97 mDevice = null; in BluetoothGattService()
111 mDevice = device; in BluetoothGattService()
124 return mDevice; in getDevice()
DBluetoothSocket.java107 private BluetoothDevice mDevice; /* remote device */ field in BluetoothSocket
163 mDevice = device; in BluetoothSocket()
203 as.mDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(RemoteAddr); in acceptSocket()
245 return mDevice; in getRemoteDevice()
302 if (mDevice == null) throw new IOException("Connect is called on null device"); in connect()
308 mPfd = bluetoothProxy.connectSocket(mDevice, mType, in connect()
/frameworks/av/services/camera/libcameraservice/api2/
DCameraDeviceClient.cpp78 mFrameProcessor = new FrameProcessorBase(mDevice); in initialize()
104 if (!mDevice.get()) return DEAD_OBJECT; in submitRequest()
166 res = mDevice->setStreamingRequest(metadata); in submitRequest()
174 res = mDevice->capture(metadata); in submitRequest()
199 if (!mDevice.get()) return DEAD_OBJECT; in cancelRequest()
215 res = mDevice->clearStreamingRequest(); in cancelRequest()
235 if (!mDevice.get()) return DEAD_OBJECT; in deleteStream()
253 res = mDevice->deleteStream(streamId); in deleteStream()
280 if (!mDevice.get()) return DEAD_OBJECT; in createStream()
351 CameraMetadata staticInfo = mDevice->info(); in createStream()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbResolverActivity.java45 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()
103 if (mDevice != null) { in onIntentSelected()
105 service.grantDevicePermission(mDevice, uid); in onIntentSelected()
108 service.setDevicePackage(mDevice, ri.activityInfo.packageName, userId); in onIntentSelected()
110 service.setDevicePackage(mDevice, null, userId); in onIntentSelected()
DUsbConfirmActivity.java52 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()
DUsbPermissionActivity.java53 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()
DUsbDisconnectedReceiver.java32 private UsbDevice mDevice; field in UsbDisconnectedReceiver
37 mDevice = device; in UsbDisconnectedReceiver()
56 if (device != null && device.equals(mDevice)) { in onReceive()
/frameworks/base/media/java/android/mtp/
DMtpDevice.java34 private final UsbDevice mDevice; field in MtpDevice
46 mDevice = device; in MtpDevice()
59 boolean result = native_open(mDevice.getDeviceName(), connection.getFileDescriptor()); in open()
92 return mDevice.getDeviceName(); in getDeviceName()
103 return mDevice.getDeviceId(); in getDeviceId()
108 return mDevice.getDeviceName(); in toString()
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp59 mDevice = CameraDeviceFactory::createDevice(cameraId); in Camera2ClientBase()
60 LOG_ALWAYS_FATAL_IF(mDevice == 0, "Device should never be NULL here."); in Camera2ClientBase()
88 if (mDevice == NULL) { in initialize()
94 res = mDevice->initialize(module); in initialize()
101 res = mDevice->setNotifyCallback(this); in initialize()
144 if (!mDevice.get()) { in dumpDevice()
150 status_t res = mDevice->dump(fd, args); in dumpDevice()
184 if (mDevice == 0) return; in detachDevice()
185 mDevice->disconnect(); in detachDevice()
187 mDevice.clear(); in detachDevice()
[all …]
DFrameProcessorBase.cpp32 mDevice(device) { in FrameProcessorBase()
84 device = mDevice.promote(); in threadLoop()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java60 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/
DMemoryHeapBase.cpp45 mDevice(NULL), mNeedUnmap(false), mOffset(0) in MemoryHeapBase()
51 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase()
68 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase()
80 mDevice = device; in MemoryHeapBase()
87 mDevice(0), mNeedUnmap(false), mOffset(0) in MemoryHeapBase()
103 mDevice = device; in init()
184 return mDevice; in getDevice()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCameraManager.java181 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()
325 if (!mSuccess && mDevice != null) { in blockUntilOpen()
326 mDevice.close(); in blockUntilOpen()
330 return mDevice; in blockUntilOpen()
/frameworks/native/include/binder/
DMemoryHeapBase.h77 if (mDevice == 0) in setDevice()
78 mDevice = device; in setDevice()
79 return mDevice ? NO_ERROR : ALREADY_EXISTS; in setDevice()
95 const char* mDevice; variable
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayAdapter.java270 private OverlayDisplayDevice mDevice; field in OverlayDisplayAdapter.OverlayDisplayHandle
294 mDevice = new OverlayDisplayDevice(displayToken, mName, in onWindowCreated()
297 sendDisplayDeviceEventLocked(mDevice, DISPLAY_DEVICE_EVENT_ADDED); in onWindowCreated()
305 if (mDevice != null) { in onWindowDestroyed()
306 mDevice.destroyLocked(); in onWindowDestroyed()
307 sendDisplayDeviceEventLocked(mDevice, DISPLAY_DEVICE_EVENT_REMOVED); in onWindowDestroyed()
/frameworks/base/services/input/tests/
DInputReader_test.cpp1194 InputDevice* mDevice; member in android::InputDeviceTest
1205 mDevice = new InputDevice(mFakeContext, DEVICE_ID, DEVICE_GENERATION, in SetUp()
1210 delete mDevice; in TearDown()
1227 ASSERT_EQ(DEVICE_ID, mDevice->getId()); in TEST_F()
1228 ASSERT_STREQ(DEVICE_NAME, mDevice->getName()); in TEST_F()
1229 ASSERT_EQ(DEVICE_CLASSES, mDevice->getClasses()); in TEST_F()
1235 mDevice->configure(ARBITRARY_TIME, &config, 0); in TEST_F()
1238 mDevice->reset(ARBITRARY_TIME); in TEST_F()
1246 ASSERT_TRUE(mDevice->isIgnored()); in TEST_F()
1247 ASSERT_EQ(AINPUT_SOURCE_UNKNOWN, mDevice->getSources()); in TEST_F()
[all …]
/frameworks/av/media/mtp/
DMtpDevice.cpp179 : mDevice(device), in MtpDevice()
223 if (mDevice) { in close()
224 usb_device_release_interface(mDevice, mInterface); in close()
225 usb_device_close(mDevice); in close()
226 mDevice = NULL; in close()
273 if (mDevice) in getDeviceName()
274 return usb_device_get_name(mDevice); in getDeviceName()
633 mData.readDataWait(mDevice); in readObject()
642 int read = mData.readDataWait(mDevice); in readObject()
734 mData.readDataWait(mDevice); in readObject()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/client2/
DStreamingProcessor.cpp43 mDevice(client->getCameraDevice()), in StreamingProcessor()
84 sp<CameraDeviceBase> device = mDevice.promote(); in updatePreviewRequest()
125 sp<CameraDeviceBase> device = mDevice.promote(); in updatePreviewStream()
193 sp<CameraDeviceBase> device = mDevice.promote(); in deletePreviewStream()
269 sp<CameraDeviceBase> device = mDevice.promote(); in updateRecordingRequest()
309 sp<CameraDeviceBase> device = mDevice.promote(); in updateRecordingStream()
387 sp<CameraDeviceBase> device = mDevice.promote(); in deleteRecordingStream()
421 sp<CameraDeviceBase> device = mDevice.promote(); in startStream()
478 sp<CameraDeviceBase> device = mDevice.promote(); in togglePauseStream()
528 sp<CameraDeviceBase> device = mDevice.promote(); in stopStream()
DJpegProcessor.cpp42 mDevice(client->getCameraDevice()), in JpegProcessor()
69 sp<CameraDeviceBase> device = mDevice.promote(); in updateStream()
154 sp<CameraDeviceBase> device = mDevice.promote(); in deleteStream()
DJpegProcessor.h59 wp<CameraDeviceBase> mDevice; variable
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java32 private final UsbDevice mDevice; field in UsbDeviceConnection
42 mDevice = device; in UsbDeviceConnection()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DSinkActivity.java76 private UsbDevice mDevice; field in SinkActivity
154 if (mConnected && device.equals(mDevice)) { in onDeviceDetached()
223 mDevice = device; in connect()
274 mLogger.log("Disconnecting from device: " + mDevice); in disconnect()
280 mDevice = null; in disconnect()

12