Home
last modified time | relevance | path

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

12345678910>>...29

/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.h33 void enableSensorImpl(uid_t uid, int handle);
34 void disableSensorImpl(uid_t uid, int handle);
38 int handle; member
40 Info() : uid(0), handle(0), count(0) { } in Info()
41 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
43 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
49 bool addSensor(uid_t uid, int handle);
50 bool removeSensor(uid_t uid, int handle);
54 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument
55 BatteryService::getInstance().enableSensorImpl(uid, handle); in enableSensor()
[all …]
DSensorDevice.cpp127 mActivationCount.add(list[i].handle, model); in initializeSensorList()
132 mHalWrapper->activate(list[i].handle, 0 /* enabled */); in initializeSensorList()
196 if (prevSensor.handle == newSensor.handle) { in sensorHandlesChanged()
208 ALOGI("Sensor %s (handle %d) did not exist before", newSensor.name, newSensor.handle); in sensorHandlesChanged()
217 if (prevSensor.handle != newSensor.handle || in sensorIsEquivalent()
236 int handle = mSensorList[i].handle; in reactivateSensors() local
237 ssize_t activationIndex = previousActivations.indexOfKey(handle); in reactivateSensors()
245 status_t res = batchLocked(info.batchParams.keyAt(j), handle, 0 /* flags */, in reactivateSensors()
249 activateLocked(info.batchParams.keyAt(j), handle, true /* enabled */); in reactivateSensors()
255 void SensorDevice::handleDynamicSensorConnection(int handle, bool connected) { in handleDynamicSensorConnection() argument
[all …]
DSensorDirectConnection.cpp53 if (mMem.handle != nullptr) { in destroy()
54 native_handle_close(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 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in configureChannel()
[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/servicestests/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()
93 int handle = mHandler.loadSoundModel(TestUtil.createGenericSoundModel(), callback); in testStopBeforeActive() local
96 mHandler.startRecognition(handle, 101, 102, TestUtil.createRecognitionConfig()); in testStopBeforeActive()
97 verify(mUnderlying).startRecognition(eq(handle), eq(101), eq(102), any()); in testStopBeforeActive()
98 mHandler.stopRecognition(handle); in testStopBeforeActive()
99 verify(mUnderlying).stopRecognition(handle); in testStopBeforeActive()
[all …]
DSoundTriggerMiddlewareImplTest.java82 int handle = module.loadModel(model); in loadGenericModel() local
86 return new Pair<>(handle, new SoundTriggerHwCallback(callbackCaptor.getValue())); in loadGenericModel()
101 int handle = module.loadPhraseModel(model); in loadPhraseModel() local
105 return new Pair<>(handle, new SoundTriggerHwCallback(callbackCaptor.getValue())); in loadPhraseModel()
108 private void unloadModel(ISoundTriggerModule module, int handle, int hwHandle) in unloadModel() argument
110 module.unloadModel(handle); in unloadModel()
115 private void startRecognition(ISoundTriggerModule module, int handle, int hwHandle) in startRecognition() argument
122 module.startRecognition(handle, config); in startRecognition()
127 private void stopRecognition(ISoundTriggerModule module, int handle, int hwHandle) in stopRecognition() argument
129 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/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()
96 const sp<CallbackHandle>& handle) { in registerUnpresentedCallbackHandle() argument
97 return addCallbackHandle(handle, std::vector<JankData>()); in registerUnpresentedCallbackHandle()
117 status_t TransactionCallbackInvoker::addCallbackHandle(const sp<CallbackHandle>& handle, in addCallbackHandle() argument
123 findOrCreateTransactionStats(handle->listener, handle->callbackIds, &transactionStats); in addCallbackHandle()
[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/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()
83 aaudio_handle_t handle = mPreviousHandle; in addStreamForHandle() local
86 handle = bumpHandle(handle); in addStreamForHandle()
87 sp<AAudioServiceStreamBase> oldServiceStream = mStreamsByHandle[handle]; in addStreamForHandle()
91 mStreamsByHandle[handle] = serviceStream; in addStreamForHandle()
95 mPreviousHandle = handle; in addStreamForHandle()
[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/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/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/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/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/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()
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java569 for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) { in removeUser()
570 destroyWeaverSlot(handle, userId); in removeUser()
571 destroySPBlobKey(getKeyName(handle)); in removeUser()
582 int getCredentialType(long handle, int userId) { in getCredentialType() argument
583 byte[] passwordData = loadState(PASSWORD_DATA_NAME, handle, userId); in getCredentialType()
705 private int loadWeaverSlot(long handle, int userId) { in loadWeaverSlot() argument
707 byte[] data = loadState(WEAVER_SLOT_NAME, handle, userId); in loadWeaverSlot()
715 Slog.e(TAG, "Invalid weaver slot version of handle " + handle); in loadWeaverSlot()
721 private void saveWeaverSlot(int slot, long handle, int userId) { in saveWeaverSlot() argument
725 saveState(WEAVER_SLOT_NAME, buffer.array(), handle, userId); in saveWeaverSlot()
[all …]
/frameworks/av/services/audioflinger/
DDeviceEffectManager.cpp35 void AudioFlinger::DeviceEffectManager::createAudioPatch(audio_patch_handle_t handle, in createAudioPatch() argument
38 __func__, handle, patch.mHalHandle, in createAudioPatch()
42 mCommandThread->createAudioPatchCommand(handle, patch); in createAudioPatch()
45 void AudioFlinger::DeviceEffectManager::onCreateAudioPatch(audio_patch_handle_t handle, in onCreateAudioPatch() argument
48 __func__, handle, patch.mHalHandle, in onCreateAudioPatch()
52 status_t status = effect.second->onCreatePatch(handle, patch); in onCreateAudioPatch()
58 void AudioFlinger::DeviceEffectManager::releaseAudioPatch(audio_patch_handle_t handle) { in releaseAudioPatch() argument
60 mCommandThread->releaseAudioPatchCommand(handle); in releaseAudioPatch()
63 void AudioFlinger::DeviceEffectManager::onReleaseAudioPatch(audio_patch_handle_t handle) { in onReleaseAudioPatch() argument
67 effect.second->onReleasePatch(handle); in onReleaseAudioPatch()
[all …]

12345678910>>...29