Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 766) sorted by relevance

12345678910>>...31

/frameworks/rs/cpp/
DrsDispatch.cpp26 bool loadSymbols(void* handle, dispatchTable& dispatchTab, int targetApiLevel) { in loadSymbols() argument
29 dispatchTab.SetNativeLibDir = (SetNativeLibDirFnPtr)dlsym(handle, "rsaContextSetNativeLibDir"); in loadSymbols()
36 dispatchTab.Allocation1DData = (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData"); in loadSymbols()
37 …dispatchTab.Allocation1DElementData = (Allocation1DElementDataFnPtr)dlsym(handle, "rsAllocation1DE… in loadSymbols()
38 dispatchTab.Allocation1DRead = (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead"); in loadSymbols()
39 dispatchTab.Allocation2DData = (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData"); in loadSymbols()
40 dispatchTab.Allocation2DRead = (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead"); in loadSymbols()
41 dispatchTab.Allocation3DData = (Allocation3DDataFnPtr)dlsym(handle, "rsAllocation3DData"); in loadSymbols()
42 dispatchTab.Allocation3DRead = (Allocation3DReadFnPtr)dlsym(handle, "rsAllocation3DRead"); in loadSymbols()
43 …dispatchTab.AllocationAdapterCreate = (AllocationAdapterCreateFnPtr)dlsym(handle, "rsAllocationAda… in loadSymbols()
[all …]
/frameworks/av/media/libmediametrics/
DMediaMetrics.cpp44 void mediametrics_delete(mediametrics_handle_t handle) { in mediametrics_delete() argument
45 Item *item = (Item *) handle; in mediametrics_delete()
50 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle) { in mediametrics_getKey() argument
51 Item *item = (Item *) handle; in mediametrics_getKey()
57 void mediametrics_setUid(mediametrics_handle_t handle, uid_t uid) { in mediametrics_setUid() argument
58 Item *item = (Item *) handle; in mediametrics_setUid()
65 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt32() argument
67 Item *item = (Item *) handle; in mediametrics_setInt32()
71 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt64() argument
73 Item *item = (Item *) handle; in mediametrics_setInt64()
[all …]
/frameworks/av/media/libmediametrics/include/media/
DMediaMetrics.h38 void mediametrics_delete(mediametrics_handle_t handle);
40 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle);
44 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
46 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
48 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
50 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
52 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
57 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
59 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
61 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
[all …]
/frameworks/native/services/sensorservice/
DBatteryService.h36 void enableSensorImpl(uid_t uid, int handle);
37 void disableSensorImpl(uid_t uid, int handle);
38 void noteWakeupSensorEventImpl(int64_t elapsedNanos, uid_t uid, int handle);
42 int handle; member
44 Info() : uid(0), handle(0), count(0) { } in Info()
45 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
47 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
54 bool addSensor(uid_t uid, int handle);
55 bool removeSensor(uid_t uid, int handle);
59 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument
[all …]
DSensorDirectConnection.cpp53 if (mMem.handle != nullptr) { in destroy()
54 native_handle_close_with_tag(mMem.handle); in destroy()
55 native_handle_delete(const_cast<struct native_handle*>(mMem.handle)); in destroy()
118 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
121 UNUSED(handle); in enableDisable()
130 int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument
132 UNUSED(handle); in setEventRate()
142 int32_t SensorService::SensorDirectConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument
144 if (handle == -1 && rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
154 std::shared_ptr<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in configureChannel()
[all …]
DSensorDevice.cpp126 mActivationCount.add(list[i].handle, model); in initializeSensorList()
131 mHalWrapper->activate(list[i].handle, 0 /* enabled */); in initializeSensorList()
195 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
207 ALOGI("Sensor %s (handle %d) did not exist before", newSensor.name, newSensor.handle); in sensorHandlesChanged()
216 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
235 int handle = mSensorList[i].handle; in reactivateSensors() local
236 ssize_t activationIndex = previousActivations.indexOfKey(handle); in reactivateSensors()
244 status_t res = batchLocked(info.batchParams.keyAt(j), handle, 0 /* flags */, in reactivateSensors()
248 activateLocked(info.batchParams.keyAt(j), handle, true /* enabled */); in reactivateSensors()
254 void SensorDevice::handleDynamicSensorConnection(int handle, bool connected) { in handleDynamicSensorConnection() argument
[all …]
DBatteryService.cpp36 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
38 Info key(uid, handle); in addSensor()
48 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
50 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
58 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
60 if (addSensor(uid, handle)) { in enableSensorImpl()
62 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl()
67 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument
69 if (removeSensor(uid, handle)) { in disableSensorImpl()
71 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl()
[all …]
/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp26 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument
28 : IonBuffer(handle, width, height, kDefaultGraphicBufferLayerCount, stride, in IonBuffer()
31 IonBuffer::IonBuffer(buffer_handle_t handle, uint32_t width, uint32_t height, in IonBuffer() argument
38 handle, width, height, layer_count, stride, format, usage); in IonBuffer()
39 if (handle != 0) { in IonBuffer()
40 Import(handle, width, height, layer_count, stride, format, usage); in IonBuffer()
48 handle(), width(), height(), stride(), format(), usage()); in ~IonBuffer()
57 ALOGD_IF(TRACE, "IonBuffer::operator=: handle_=%p other.handle_=%p", handle(), in operator =()
58 other.handle()); in operator =()
91 void IonBuffer::Reset(buffer_handle_t handle, uint32_t width, uint32_t height, in Reset() argument
[all …]
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DSoundTriggerHalConcurrentCaptureHandlerTest.java63 int handle = mHandler.loadSoundModel(TestUtil.createGenericSoundModel(), callback); in testBasic() local
66 mHandler.startRecognition(handle, 101, 102, TestUtil.createRecognitionConfig()); in testBasic()
67 verify(mUnderlying).startRecognition(eq(handle), eq(101), eq(102), any()); in testBasic()
70 verify(mUnderlying).stopRecognition(handle); in testBasic()
74 verify(callback).recognitionCallback(eq(handle), eventCaptor.capture()); in testBasic()
94 int handle = mHandler.loadSoundModel(TestUtil.createGenericSoundModel(), callback); in testStopBeforeActive() local
97 mHandler.startRecognition(handle, 101, 102, TestUtil.createRecognitionConfig()); in testStopBeforeActive()
98 verify(mUnderlying).startRecognition(eq(handle), eq(101), eq(102), any()); in testStopBeforeActive()
99 mHandler.stopRecognition(handle); in testStopBeforeActive()
100 verify(mUnderlying).stopRecognition(handle); in testStopBeforeActive()
[all …]
DSoundTriggerMiddlewareImplTest.java83 int handle = module.loadModel(model); in loadGenericModel() local
87 return new Pair<>(handle, new SoundTriggerHwCallback(callbackCaptor.getValue())); in loadGenericModel()
102 int handle = module.loadPhraseModel(model); in loadPhraseModel() local
106 return new Pair<>(handle, new SoundTriggerHwCallback(callbackCaptor.getValue())); in loadPhraseModel()
109 private void unloadModel(ISoundTriggerModule module, int handle, int hwHandle) in unloadModel() argument
111 module.unloadModel(handle); in unloadModel()
116 private void startRecognition(ISoundTriggerModule module, int handle, int hwHandle) in startRecognition() argument
123 module.startRecognition(handle, config); in startRecognition()
128 private void stopRecognition(ISoundTriggerModule module, int handle, int hwHandle) in stopRecognition() argument
130 module.stopRecognition(handle); in stopRecognition()
[all …]
/frameworks/av/media/mtp/tests/MtpFuzzer/
DMtpMockDatabase.cpp72 void MtpMockDatabase::endSendObject(MtpObjectHandle handle, bool succeeded) { in endSendObject() argument
73 ALOGD("MockDatabase %s: ohandle=%u succeeded=%d\n", __func__, handle, succeeded); in endSendObject()
77 void MtpMockDatabase::rescanFile(const char* path, MtpObjectHandle handle, MtpObjectFormat format) { in rescanFile() argument
78 ALOGD("MockDatabase %s: path=%s ohandle=%u, oformat=0x%04x\n", __func__, path, handle, format); in rescanFile()
115 MtpResponseCode MtpMockDatabase::getObjectPropertyValue(MtpObjectHandle handle, in getObjectPropertyValue() argument
118 ALOGD("MockDatabase %s: ohandle=%u property=%s\n", __func__, handle, in getObjectPropertyValue()
123 MtpResponseCode MtpMockDatabase::setObjectPropertyValue(MtpObjectHandle handle, in setObjectPropertyValue() argument
126 ALOGD("MockDatabase %s: ohandle=%u property=%s\n", __func__, handle, in setObjectPropertyValue()
148 MtpResponseCode MtpMockDatabase::getObjectPropertyList(MtpObjectHandle handle, uint32_t format, in getObjectPropertyList() argument
153 __func__, handle, MtpDebug::getFormatCodeName(format), in getObjectPropertyList()
[all …]
DMtpMockDatabase.h53 void endSendObject(MtpObjectHandle handle, bool succeeded);
56 void rescanFile(const char* path, MtpObjectHandle handle, MtpObjectFormat format);
70 MtpResponseCode getObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property,
73 MtpResponseCode setObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property,
82 MtpResponseCode getObjectPropertyList(MtpObjectHandle handle, uint32_t format,
86 MtpResponseCode getObjectInfo(MtpObjectHandle handle, MtpObjectInfo& info);
88 void* getThumbnail(MtpObjectHandle handle, size_t& outThumbSize);
90 MtpResponseCode getObjectFilePath(MtpObjectHandle handle, MtpStringBuffer& outFilePath,
95 MtpResponseCode beginDeleteObject(MtpObjectHandle handle);
96 void endDeleteObject(MtpObjectHandle handle, bool succeeded);
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBufferBase.h88 mWrapper->handle = this; in wrap()
90 mWrapper->release = [](void *handle) -> void { in wrap()
91 ((MediaBufferBase*)handle)->release(); in wrap()
94 mWrapper->data = [](void *handle) -> void * { in wrap()
95 return ((MediaBufferBase*)handle)->data(); in wrap()
98 mWrapper->size = [](void *handle) -> size_t { in wrap()
99 return ((MediaBufferBase*)handle)->size(); in wrap()
102 mWrapper->range_offset = [](void *handle) -> size_t { in wrap()
103 return ((MediaBufferBase*)handle)->range_offset(); in wrap()
106 mWrapper->range_length = [](void *handle) -> size_t { in wrap()
[all …]
/frameworks/native/libs/binder/
Dlibbinder_rpc_unstable.cpp49 static void freeObjectHandle(A* handle) { in freeObjectHandle() argument
50 LOG_ALWAYS_FATAL_IF(handle == nullptr, "Handle cannot be null"); in freeObjectHandle()
51 auto ref = reinterpret_cast<T*>(handle); in freeObjectHandle()
56 static sp<T> handleToStrongPointer(A* handle) { in handleToStrongPointer() argument
57 LOG_ALWAYS_FATAL_IF(handle == nullptr, "Handle cannot be null"); in handleToStrongPointer()
58 auto ref = reinterpret_cast<T*>(handle); in handleToStrongPointer()
160 ARpcServer* handle, const ARpcSession_FileDescriptorTransportMode modes[], in ARpcServer_setSupportedFileDescriptorTransportModes() argument
162 auto server = handleToStrongPointer<RpcServer>(handle); in ARpcServer_setSupportedFileDescriptorTransportModes()
170 void ARpcServer_start(ARpcServer* handle) { in ARpcServer_start() argument
171 handleToStrongPointer<RpcServer>(handle)->start(); in ARpcServer_start()
[all …]
/frameworks/av/include/media/
DMediaExtractorPluginApi.h33 ssize_t (*readAt)(void *handle, off64_t offset, void *data, size_t size);
34 status_t (*getSize)(void *handle, off64_t *size);
35 uint32_t (*flags)(void *handle );
36 bool (*getUri)(void *handle, char *uriString, size_t bufferSize);
37 void *handle; member
55 void *handle; member
56 void (*release)(void *handle);
57 void* (*data)(void *handle);
58 size_t (*size)(void *handle);
59 size_t (*range_offset)(void *handle);
[all …]
/frameworks/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp66 for (const auto& handle : handles) { in addOnCommitCallbackHandles() local
67 if (!containsOnCommitCallbacks(handle->callbackIds)) { in addOnCommitCallbackHandles()
68 outRemainingHandles.push_back(handle); in addOnCommitCallbackHandles()
71 status_t err = addCallbackHandle(handle, jankData); in addOnCommitCallbackHandles()
85 for (const auto& handle : handles) { in addCallbackHandles() local
86 status_t err = addCallbackHandle(handle, jankData); in addCallbackHandles()
112 status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>& handle, in addCallbackHandle() argument
118 findOrCreateTransactionStats(handle->listener, handle->callbackIds, &transactionStats); in addCallbackHandle()
123 transactionStats->latchTime = handle->latchTime; in addCallbackHandle()
127 sp<IBinder> surfaceControl = handle->surfaceControl.promote(); in addCallbackHandle()
[all …]
/frameworks/av/services/oboeservice/
DAAudioStreamTracker.cpp72 aaudio_handle_t AAudioStreamTracker::bumpHandle(aaudio_handle_t handle) { in bumpHandle() argument
73 handle++; in bumpHandle()
75 if (handle <= 0) { in bumpHandle()
76 handle = 1; in bumpHandle()
78 return handle; in bumpHandle()
84 aaudio_handle_t handle = mPreviousHandle; in addStreamForHandle() local
87 handle = bumpHandle(handle); in addStreamForHandle()
88 sp<AAudioServiceStreamBase> oldServiceStream = mStreamsByHandle[handle]; in addStreamForHandle()
92 mStreamsByHandle[handle] = serviceStream; in addStreamForHandle()
96 mPreviousHandle = handle; in addStreamForHandle()
[all …]
/frameworks/av/media/mtp/
DIMtpDatabase.h40 virtual void endSendObject(MtpObjectHandle handle,
45 MtpObjectHandle handle,
63 virtual MtpResponseCode getObjectPropertyValue(MtpObjectHandle handle,
67 virtual MtpResponseCode setObjectPropertyValue(MtpObjectHandle handle,
79 virtual MtpResponseCode getObjectPropertyList(MtpObjectHandle handle,
84 virtual MtpResponseCode getObjectInfo(MtpObjectHandle handle,
87 virtual void* getThumbnail(MtpObjectHandle handle, size_t& outThumbSize) = 0;
89 virtual MtpResponseCode getObjectFilePath(MtpObjectHandle handle,
96 virtual MtpResponseCode beginDeleteObject(MtpObjectHandle handle) = 0;
97 virtual void endDeleteObject(MtpObjectHandle handle, bool succeeded) = 0;
[all …]
DMtpDevice.h104 MtpObjectInfo* getObjectInfo(MtpObjectHandle handle);
105 void* getThumbnail(MtpObjectHandle handle, int& outLength);
107 bool sendObject(MtpObjectHandle handle, uint32_t size, int srcFD);
108 bool deleteObject(MtpObjectHandle handle);
109 MtpObjectHandle getParent(MtpObjectHandle handle);
110 MtpStorageID getStorageID(MtpObjectHandle handle);
119 bool getObjectPropValue(MtpObjectHandle handle, MtpProperty* property);
121 bool readObject(MtpObjectHandle handle, ReadObjectCallback callback,
123 bool readObject(MtpObjectHandle handle, const char* destPath, int group,
125 bool readObject(MtpObjectHandle handle, int fd);
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel.cpp20 bool GetLocalFileHandle(int index, LocalHandle* handle) { in GetLocalFileHandle()
22 handle->Reset(index); in GetLocalFileHandle()
24 *handle = std::move(response.file_descriptors[index]); in GetLocalFileHandle()
31 bool GetLocalChannelHandle(int index, LocalChannelHandle* handle) { in GetLocalChannelHandle()
33 *handle = LocalChannelHandle{nullptr, index}; in GetLocalChannelHandle()
36 *handle = ChannelManager::Get().CreateHandle( in GetLocalChannelHandle()
46 FileReference PushFileHandle(BorrowedHandle handle) { in PushFileHandle()
47 if (!handle) in PushFileHandle()
48 return handle.Get(); in PushFileHandle()
49 request.file_descriptors.push_back(std::move(handle)); in PushFileHandle()
[all …]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h26 explicit NativeHandleWrapper(const native_handle_t* handle) { in NativeHandleWrapper() argument
27 const int fd_count = handle->numFds; in NativeHandleWrapper()
28 const int int_count = handle->numInts; in NativeHandleWrapper()
33 fds_.emplace_back(FileHandleType::AsDuplicate(handle->data[i])); in NativeHandleWrapper()
36 ints_.push_back(handle->data[fd_count + i]); in NativeHandleWrapper()
77 native_handle_t* handle = native_handle_create(fds.size(), ints.size()); in FromFdsAndInts() local
78 if (!handle) { in FromFdsAndInts()
84 for (int i = 0; i < handle->numFds; i++) { in FromFdsAndInts()
85 handle->data[i] = fds[i].Release(); in FromFdsAndInts()
87 memcpy(&handle->data[handle->numFds], ints.data(), in FromFdsAndInts()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DWebViewFunctorManagerTests.cpp47 auto handle = WebViewFunctorManager::instance().handleFor(functor); in TEST() local
48 ASSERT_TRUE(handle); in TEST()
61 handle->sync(syncData); in TEST()
68 handle->sync(syncData); in TEST()
73 handle.clear(); in TEST()
88 auto handle = WebViewFunctorManager::instance().handleFor(functor); in TEST() local
89 ASSERT_TRUE(handle); in TEST()
95 handle->sync(syncData); in TEST()
97 handle->drawGl(drawInfo); in TEST()
98 handle->drawGl(drawInfo); in TEST()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dutility.h155 Status<FileReference> PushFileHandle(const LocalHandle& handle) override {
156 return handle.Get();
159 Status<FileReference> PushFileHandle(const BorrowedHandle& handle) override {
160 return handle.Get();
163 Status<FileReference> PushFileHandle(const RemoteHandle& handle) override {
164 return handle.Get();
168 const LocalChannelHandle& handle) override {
169 return handle.value();
173 const BorrowedChannelHandle& handle) override {
174 return handle.value();
[all …]
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp285 void* handle = OpenNativeLibrary(env, in loadNativeCode_native() local
294 if (handle == nullptr) { in loadNativeCode_native()
306 funcPtr = NativeBridgeGetTrampoline(handle, funcStr, NULL, 0); in loadNativeCode_native()
308 funcPtr = dlsym(handle, funcStr); in loadNativeCode_native()
311 code.reset(new NativeCode(handle, (ANativeActivity_createFunc*)funcPtr)); in loadNativeCode_native()
400 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) in unloadNativeCode_native() argument
405 if (handle != 0) { in unloadNativeCode_native()
406 NativeCode* code = (NativeCode*)handle; in unloadNativeCode_native()
412 onStart_native(JNIEnv* env, jobject clazz, jlong handle) in onStart_native() argument
417 if (handle != 0) { in onStart_native()
[all …]
/frameworks/av/media/utils/
DAImageReaderUtils.cpp28 const native_handle_t *handle) { in convertNativeHandleToHGBP() argument
32 reinterpret_cast<uint8_t *>(const_cast<int *>(&(handle->data[1]))), in convertNativeHandleToHGBP()
33 handle->data[0]); in convertNativeHandleToHGBP()
40 const native_handle_t *handle) { in AImageReader_getHGBPFromHandle() argument
41 if (handle == nullptr) { in AImageReader_getHGBPFromHandle()
44 if (handle->numFds != 0 || in AImageReader_getHGBPFromHandle()
45 handle->numInts < std::ceil(sizeof(size_t) / sizeof(int))) { in AImageReader_getHGBPFromHandle()
48 return convertNativeHandleToHGBP(handle); in AImageReader_getHGBPFromHandle()

12345678910>>...31