Home
last modified time | relevance | path

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

12345678910>>...25

/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.cpp41 void mediametrics_delete(mediametrics_handle_t handle) { in mediametrics_delete() argument
42 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_delete()
47 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle) { in mediametrics_getKey() argument
48 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_getKey()
54 void mediametrics_setUid(mediametrics_handle_t handle, uid_t uid) { in mediametrics_setUid() argument
55 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_setUid()
62 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt32() argument
64 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_setInt32()
68 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, in mediametrics_setInt64() argument
70 android::MediaAnalyticsItem *item = (android::MediaAnalyticsItem *) handle; in mediametrics_setInt64()
[all …]
/frameworks/av/include/media/
DMediaMetrics.h35 void mediametrics_delete(mediametrics_handle_t handle);
37 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle);
41 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
43 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
45 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
47 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
49 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
54 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
56 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
58 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
[all …]
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/media/libmediametrics/include/
DMediaMetrics.h35 void mediametrics_delete(mediametrics_handle_t handle);
37 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle);
41 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr,
43 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr,
45 void mediametrics_setDouble(mediametrics_handle_t handle, attr_t attr,
47 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr,
49 void mediametrics_setCString(mediametrics_handle_t handle, attr_t attr,
54 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr,
56 void mediametrics_addInt64(mediametrics_handle_t handle, attr_t attr,
58 void mediametrics_addDouble(mediametrics_handle_t handle, attr_t attr,
[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/native/services/sensorservice/
DBatteryService.h33 void enableSensorImpl(uid_t uid, int handle);
34 void disableSensorImpl(uid_t uid, int handle);
39 int handle; member
41 Info() : uid(0), handle(0), count(0) { } in Info()
42 Info(uid_t uid, int handle) : uid(uid), handle(handle), count(0) { } in Info()
44 return (uid == rhs.uid) ? (handle < rhs.handle) : (uid < rhs.uid);
50 bool addSensor(uid_t uid, int handle);
51 bool removeSensor(uid_t uid, int handle);
55 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument
56 BatteryService::getInstance().enableSensorImpl(uid, handle); in enableSensor()
[all …]
DSensorDirectConnection.cpp48 if (mMem.handle != nullptr) { in destroy()
49 native_handle_close(mMem.handle); in destroy()
50 native_handle_delete(const_cast<struct native_handle*>(mMem.handle)); in destroy()
72 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument
75 UNUSED(handle); in enableDisable()
84 int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument
86 UNUSED(handle); in setEventRate()
96 int32_t SensorService::SensorDirectConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument
98 if (handle == -1 && rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel()
107 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in configureChannel()
[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/av/soundtrigger/
DISoundTrigger.cpp55 sound_model_handle_t *handle) in loadSoundModel() argument
57 if (modelMemory == 0 || handle == NULL) { in loadSoundModel()
69 reply.read(handle, sizeof(sound_model_handle_t)); in loadSoundModel()
74 virtual status_t unloadSoundModel(sound_model_handle_t handle) in unloadSoundModel() argument
78 data.write(&handle, sizeof(sound_model_handle_t)); in unloadSoundModel()
86 virtual status_t startRecognition(sound_model_handle_t handle, in startRecognition() argument
91 data.write(&handle, sizeof(sound_model_handle_t)); in startRecognition()
105 virtual status_t stopRecognition(sound_model_handle_t handle) in stopRecognition() argument
109 data.write(&handle, sizeof(sound_model_handle_t)); in stopRecognition()
117 virtual status_t getModelState(sound_model_handle_t handle) in getModelState() argument
[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,
94 virtual MtpResponseCode beginDeleteObject(MtpObjectHandle handle) = 0;
95 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);
118 bool getObjectPropValue(MtpObjectHandle handle, MtpProperty* property);
120 bool readObject(MtpObjectHandle handle, ReadObjectCallback callback,
122 bool readObject(MtpObjectHandle handle, const char* destPath, int group,
124 bool readObject(MtpObjectHandle handle, int fd);
[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/services/oboeservice/
DAAudioStreamTracker.cpp85 aaudio_handle_t AAudioStreamTracker::bumpHandle(aaudio_handle_t handle) { in bumpHandle() argument
86 handle++; in bumpHandle()
88 if (handle <= 0) { in bumpHandle()
89 handle = 1; in bumpHandle()
91 return handle; in bumpHandle()
96 aaudio_handle_t handle = mPreviousHandle; in addStreamForHandle() local
99 handle = bumpHandle(handle); in addStreamForHandle()
100 sp<AAudioServiceStreamBase> oldServiceStream = mStreamsByHandle[handle]; in addStreamForHandle()
104 mStreamsByHandle[handle] = serviceStream; in addStreamForHandle()
108 mPreviousHandle = handle; in addStreamForHandle()
[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/ui/
DGraphicBufferMapper.cpp93 void GraphicBufferMapper::getTransportSize(buffer_handle_t handle, in getTransportSize() argument
96 mMapper->getTransportSize(handle, outTransportNumFds, outTransportNumInts); in getTransportSize()
99 status_t GraphicBufferMapper::freeBuffer(buffer_handle_t handle) in freeBuffer() argument
103 mMapper->freeBuffer(handle); in freeBuffer()
108 status_t GraphicBufferMapper::lock(buffer_handle_t handle, uint32_t usage, const Rect& bounds, in lock() argument
111 return lockAsync(handle, usage, bounds, vaddr, -1, outBytesPerPixel, outBytesPerStride); in lock()
114 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, uint32_t usage, in lockYCbCr() argument
117 return lockAsyncYCbCr(handle, usage, bounds, ycbcr, -1); in lockYCbCr()
120 status_t GraphicBufferMapper::unlock(buffer_handle_t handle) in unlock() argument
123 status_t error = unlockAsync(handle, &fenceFd); in unlock()
[all …]
/frameworks/av/services/audioflinger/
DDeviceEffectManager.cpp33 void AudioFlinger::DeviceEffectManager::createAudioPatch(audio_patch_handle_t handle, in createAudioPatch() argument
36 __func__, handle, patch.mHalHandle, in createAudioPatch()
40 mCommandThread->createAudioPatchCommand(handle, patch); in createAudioPatch()
43 void AudioFlinger::DeviceEffectManager::onCreateAudioPatch(audio_patch_handle_t handle, in onCreateAudioPatch() argument
46 __func__, handle, patch.mHalHandle, in onCreateAudioPatch()
50 status_t status = effect.second->onCreatePatch(handle, patch); in onCreateAudioPatch()
56 void AudioFlinger::DeviceEffectManager::releaseAudioPatch(audio_patch_handle_t handle) { in releaseAudioPatch() argument
58 mCommandThread->releaseAudioPatchCommand(handle); in releaseAudioPatch()
61 void AudioFlinger::DeviceEffectManager::onReleaseAudioPatch(audio_patch_handle_t handle) { in onReleaseAudioPatch() argument
65 effect.second->onReleasePatch(handle); in onReleaseAudioPatch()
[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/core/java/com/android/internal/content/
DNativeLibraryHelper.java168 private static native void nativeClose(long handle); in nativeClose() argument
170 private static native long nativeSumNativeBinaries(long handle, String cpuAbi, in nativeSumNativeBinaries() argument
173 private native static int nativeCopyNativeBinaries(long handle, String sharedLibraryPath, in nativeCopyNativeBinaries() argument
176 private static long sumNativeBinaries(Handle handle, String abi) { in sumNativeBinaries() argument
178 for (long apkHandle : handle.apkHandles) { in sumNativeBinaries()
179 sum += nativeSumNativeBinaries(apkHandle, abi, handle.debuggable); in sumNativeBinaries()
192 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { in copyNativeBinaries() argument
193 for (long apkHandle : handle.apkHandles) { in copyNativeBinaries()
195 handle.extractNativeLibs, handle.debuggable); in copyNativeBinaries()
210 public static int findSupportedAbi(Handle handle, String[] supportedAbis) { in findSupportedAbi() argument
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DSyntheticPasswordManager.java425 for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) { in removeUser()
426 destroyWeaverSlot(handle, userId); in removeUser()
427 destroySPBlobKey(getHandleName(handle)); in removeUser()
431 public int getCredentialType(long handle, int userId) { in getCredentialType() argument
432 byte[] passwordData = loadState(PASSWORD_DATA_NAME, handle, userId); in getCredentialType()
538 private int loadWeaverSlot(long handle, int userId) { in loadWeaverSlot() argument
540 byte[] data = loadState(WEAVER_SLOT_NAME, handle, userId); in loadWeaverSlot()
548 Log.e(TAG, "Invalid weaver slot version of handle " + handle); in loadWeaverSlot()
554 private void saveWeaverSlot(int slot, long handle, int userId) { in saveWeaverSlot() argument
558 saveState(WEAVER_SLOT_NAME, buffer.array(), handle, userId); in saveWeaverSlot()
[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/native/services/surfaceflinger/
DClient.cpp45 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) in attachLayer() argument
48 mLayers.add(handle, layer); in attachLayer()
63 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const in getLayerUser()
67 wp<Layer> layer(mLayers.valueFor(handle)); in getLayerUser()
70 ALOGE_IF(lbc==0, "getLayerUser(name=%p) is dead", handle.get()); in getLayerUser()
77 LayerMetadata metadata, sp<IBinder>* handle, in createSurface() argument
80 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createSurface()
87 LayerMetadata metadata, sp<IBinder>* handle, in createWithSurfaceParent() argument
100 return mFlinger->createLayer(name, this, w, h, format, flags, std::move(metadata), handle, gbp, in createWithSurfaceParent()
104 status_t Client::clearLayerFrameStats(const sp<IBinder>& handle) const { in clearLayerFrameStats()
[all …]
/frameworks/av/camera/
DICameraRecordingProxyListener.cpp53 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { in recordingFrameHandleCallbackTimestamp() argument
58 data.writeNativeHandle(handle); in recordingFrameHandleCallbackTimestamp()
63 native_handle_close(handle); in recordingFrameHandleCallbackTimestamp()
64 native_handle_delete(handle); in recordingFrameHandleCallbackTimestamp()
84 for (auto& handle : handles) { in recordingFrameHandleCallbackTimestampBatch() local
85 data.writeNativeHandle(handle); in recordingFrameHandleCallbackTimestampBatch()
91 for (auto& handle : handles) { in recordingFrameHandleCallbackTimestampBatch() local
92 native_handle_close(handle); in recordingFrameHandleCallbackTimestampBatch()
93 native_handle_delete(handle); in recordingFrameHandleCallbackTimestampBatch()
125 native_handle_t* handle = data.readNativeHandle(); in onTransact() local
[all …]

12345678910>>...25