Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 100) sorted by relevance

1234

/frameworks/av/camera/ndk/impl/
DACameraCaptureSession.cpp26 sp<acam::CameraDevice> dev = getDeviceSp(); in ~ACameraCaptureSession() local
27 if (dev != nullptr && !dev->isClosed()) { in ~ACameraCaptureSession()
28 dev->lockDeviceForSessionOps(); in ~ACameraCaptureSession()
31 dev->notifySessionEndOfLifeLocked(this); in ~ACameraCaptureSession()
33 dev->unlockDevice(); in ~ACameraCaptureSession()
53 sp<acam::CameraDevice> dev = getDeviceSp(); in closeByApp() local
54 if (dev != nullptr) { in closeByApp()
55 dev->lockDeviceForSessionOps(); in closeByApp()
61 if (!mIsClosed && dev != nullptr) { in closeByApp()
62 camera_status_t ret = dev->stopRepeatingLocked(); in closeByApp()
[all …]
DACameraDevice.cpp935 ACameraDevice* dev; in onMessageReceived() local
936 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
937 if (!found || dev == nullptr) { in onMessageReceived()
950 (*onDisconnected)(context, dev); in onMessageReceived()
955 ACameraDevice* dev; in onMessageReceived() local
956 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
957 if (!found || dev == nullptr) { in onMessageReceived()
976 (*onError)(context, dev, errorCode); in onMessageReceived()
1404 sp<CameraDevice> dev = mDevice.promote(); in onDeviceError() local
1405 if (dev == nullptr) { in onDeviceError()
[all …]
DACameraCaptureSession.inc33 sp<acam::CameraDevice> dev = getDeviceSp();
34 if (dev == nullptr) {
40 dev->lockDeviceForSessionOps();
43 ret = dev->setRepeatingRequestsLocked(
46 dev->unlockDevice();
55 sp<acam::CameraDevice> dev = getDeviceSp();
56 if (dev == nullptr) {
61 dev->lockDeviceForSessionOps();
64 ret = dev->captureLocked(this, cbs, numRequests, requests, captureSequenceId);
66 dev->unlockDevice();
/frameworks/base/tests/JankBench/scripts/
Drunall.py22 dev = DEVICES[device]
23 adbutil.root(dev)
24 adbutil.pm(dev, "clear", "com.android.benchmark")
26 for name, dev in DEVICES.iteritems():
28 adbutil.root(dev)
29 adbutil.pm(dev, "clear", "com.android.benchmark")
31 def start_device(name, dev): argument
34 adbutil.am(dev, "force-stop", "com.android.benchmark")
35 adbutil.wake(dev)
36 adbutil.am(dev, "start",
[all …]
/frameworks/av/media/libaudiohal/impl/
DDevicesFactoryHalLocal.cpp31 static status_t load_audio_interface(const char *if_name, audio_hw_device_t **dev) in load_audio_interface() argument
42 rc = audio_hw_device_open(mod, dev); in load_audio_interface()
48 if ((*dev)->common.version < AUDIO_DEVICE_API_VERSION_MIN) { in load_audio_interface()
49 ALOGE("%s wrong audio hw device version %04x", __func__, (*dev)->common.version); in load_audio_interface()
51 audio_hw_device_close(*dev); in load_audio_interface()
57 *dev = NULL; in load_audio_interface()
62 audio_hw_device_t *dev; in openDevice() local
63 status_t rc = load_audio_interface(name, &dev); in openDevice()
65 *device = new DeviceHalLocal(dev); in openDevice()
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraDevice.cpp934 ACameraDevice* dev; in onMessageReceived() local
935 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
936 if (!found || dev == nullptr) { in onMessageReceived()
949 (*onDisconnected)(context, dev); in onMessageReceived()
954 ACameraDevice* dev; in onMessageReceived() local
955 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
956 if (!found || dev == nullptr) { in onMessageReceived()
975 (*onError)(context, dev, errorCode); in onMessageReceived()
1418 sp<CameraDevice> dev = mDevice.promote(); in onDeviceError() local
1419 if (dev == nullptr) { in onDeviceError()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceResponse.java180 public void setSrcDevice(WifiP2pDevice dev) { in setSrcDevice() argument
181 if (dev == null) return; in setSrcDevice()
182 this.mDevice = dev; in setSrcDevice()
198 WifiP2pDevice dev = new WifiP2pDevice(); in newInstance() local
199 dev.deviceAddress = srcAddr; in newInstance()
228 transId, dev, null)); in newInstance()
242 transId, dev, data); in newInstance()
245 transId, dev, data); in newInstance()
247 resp = new WifiP2pServiceResponse(type, status, transId, dev, data); in newInstance()
360 WifiP2pDevice dev = (WifiP2pDevice)in.readParcelable(null);
[all …]
DWifiP2pDnsSdServiceResponse.java153 int tranId, WifiP2pDevice dev, byte[] data) { in WifiP2pDnsSdServiceResponse() argument
155 status, tranId, dev, data); in WifiP2pDnsSdServiceResponse()
296 int transId, WifiP2pDevice dev, byte[] data) { in newInstance() argument
299 transId, dev, null); in newInstance()
303 transId, dev, data); in newInstance()
/frameworks/native/vulkan/libvulkan/
Dapi_gen.cpp189 VkDevice dev, in InitDispatchTable() argument
192 auto& data = GetData(dev); in InitDispatchTable()
196 INIT_PROC(true, dev, GetDeviceProcAddr); in InitDispatchTable()
197 INIT_PROC(true, dev, DestroyDevice); in InitDispatchTable()
198 INIT_PROC(true, dev, GetDeviceQueue); in InitDispatchTable()
199 INIT_PROC(true, dev, QueueSubmit); in InitDispatchTable()
200 INIT_PROC(true, dev, QueueWaitIdle); in InitDispatchTable()
201 INIT_PROC(true, dev, DeviceWaitIdle); in InitDispatchTable()
202 INIT_PROC(true, dev, AllocateMemory); in InitDispatchTable()
203 INIT_PROC(true, dev, FreeMemory); in InitDispatchTable()
[all …]
Ddriver_gen.cpp548 bool InitDriverTable(VkDevice dev, in InitDriverTable() argument
551 auto& data = GetData(dev); in InitDriverTable()
555 INIT_PROC(true, dev, GetDeviceProcAddr); in InitDriverTable()
556 INIT_PROC(true, dev, DestroyDevice); in InitDriverTable()
557 INIT_PROC(true, dev, GetDeviceQueue); in InitDriverTable()
558 INIT_PROC(true, dev, CreateImage); in InitDriverTable()
559 INIT_PROC(true, dev, DestroyImage); in InitDriverTable()
560 INIT_PROC(true, dev, AllocateCommandBuffers); in InitDriverTable()
561 INIT_PROC(false, dev, BindImageMemory2); in InitDriverTable()
562 INIT_PROC(false, dev, GetDeviceQueue2); in InitDriverTable()
[all …]
/frameworks/base/native/
Dcopy-to-ndk.sh26 if diff $src $dst >/dev/null; then
27 echo "$i: has not changed from $j" >/dev/null
31 echo "$i: has changed from $j" >/dev/null
42 if diff $SRC_LIB_ANDROID $DST_LIB_ANDROID >/dev/null; then
/frameworks/rs/
DrsApiDevice.cpp32 extern "C" void rsDeviceDestroy(RsDevice dev) { in rsDeviceDestroy() argument
39 extern "C" void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value) { in rsDeviceSetConfig() argument
40 Device * d = static_cast<Device *>(dev); in rsDeviceSetConfig()
DrsApiContext.cpp31 Device * dev = static_cast<Device *>(vdev); in rsContextCreateVendor() local
32 Context *rsc = Context::createContext(dev, nullptr, ct, flags, vendorDriverName); in rsContextCreateVendor()
59 Device * dev = static_cast<Device *>(vdev); in rsContextCreateGL() local
60 Context *rsc = Context::createContext(dev, &sc); in rsContextCreateGL()
Drs.h42 RsContext rsContextCreateGL(RsDevice dev, uint32_t version,
57 void rsDeviceDestroy(RsDevice dev);
58 void rsDeviceSetConfig(RsDevice dev, RsDeviceParam p, int32_t value);
59 RsContext rsContextCreate(RsDevice dev, uint32_t version, uint32_t sdkVersion,
/frameworks/native/services/sensorservice/
DSensorDirectConnection.cpp128 SensorDevice& dev(SensorDevice::getInstance()); in configureChannel() local
129 int ret = dev.configureDirectChannel(handle, getHalChannelHandle(), &config); in configureChannel()
153 SensorDevice& dev(SensorDevice::getInstance()); in stopAll() local
155 dev.configureDirectChannel(i.first, getHalChannelHandle(), &config); in stopAll()
168 SensorDevice& dev(SensorDevice::getInstance()); in recoverAll() local
179 dev.configureDirectChannel(i.first, getHalChannelHandle(), &config); in recoverAll()
DSensorService.cpp146 SensorDevice& dev(SensorDevice::getInstance()); in onFirstRef() local
150 if (dev.initCheck() == NO_ERROR) { in onFirstRef()
152 ssize_t count = dev.getSensorList(&list); in onFirstRef()
359 SensorDevice& dev(SensorDevice::getInstance()); in dump() local
389 dev.disableAllSensors(); in dump()
390 status_t err = dev.setMode(DATA_INJECTION); in dump()
395 dev.enableAllSensors(); in dump()
442 SensorDevice& dev = SensorDevice::getInstance(); in dump() local
445 if (dev.isSensorActive(handle)) { in dump()
514 SensorDevice& dev(SensorDevice::getInstance()); in disableAllSensorsLocked() local
[all …]
/frameworks/base/startop/apps/ColorChanging/
Dgradlew16 if expr "$link" : '/.*' > /dev/null; then
23 cd "`dirname \"$PRG\"`/" >/dev/null
25 cd "$SAVED" >/dev/null
85 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
119 ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
/frameworks/base/tests/backup/
Dbackup_stress_test.sh48 echo "FAILED iteration $i of $iterations; $failures failures so far" > /dev/stderr
51 printf "Iteration %d:\tPASS; remaining: %d\n" $i $(($iterations - $i - 1)) > /dev/stderr
59 echo "DONE: $iterations iterations with $failures failures." > /dev/stderr
/frameworks/base/tools/hiddenapi/
Dsort_api.sh4 source_list=/dev/stdin
5 dest_list=/dev/stdout
/frameworks/native/cmds/servicemanager/
Dvndservicemanager.rc1 service vndservicemanager /vendor/bin/vndservicemanager /dev/vndbinder
5 writepid /dev/cpuset/system-background/tasks
/frameworks/rs/perf-test-scripts/
Dswitch-device47 . build/envsetup.sh > /dev/null
48 lunch $LUNCH_TYPE > /dev/null
/frameworks/base/core/jni/
Druntime_native_boot-flags-test.sh50 adb wait-for-device >/dev/null
97 adb root >/dev/null
99 adb unroot >/dev/null
244 adb shell device_config delete "$namespace" "$flag" >/dev/null
/frameworks/base/tests/TouchLatency/
Dgradlew57 if expr "$link" : '/.*' > /dev/null; then
86 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
119 ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/
Dgradlew57 if expr "$link" : '/.*' > /dev/null; then
86 …which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be foun…
119 ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
/frameworks/rs/tests/java_api/RSUnitTests/
Dfind_versions.sh19 …-o $TMP -p $TMP -I $version/include/ -I $version/clang-include/ 1> /dev/null 2> /dev/null) && (ech…

1234