/frameworks/rs/cpp/ |
D | rsDispatch.cpp | 26 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/ |
D | MediaMetrics.cpp | 44 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/ |
D | MediaMetrics.h | 38 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/libs/vr/libbufferhub/ |
D | ion_buffer.cpp | 26 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/ |
D | BatteryService.h | 33 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 …]
|
D | SensorDirectConnection.cpp | 54 if (mMem.handle != nullptr) { in destroy() 55 native_handle_close(mMem.handle); in destroy() 56 native_handle_delete(const_cast<struct native_handle*>(mMem.handle)); in destroy() 119 int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, in enableDisable() argument 122 UNUSED(handle); in enableDisable() 131 int handle, nsecs_t samplingPeriodNs) { in setEventRate() argument 133 UNUSED(handle); in setEventRate() 143 int32_t SensorService::SensorDirectConnection::configureChannel(int handle, int rateLevel) { in configureChannel() argument 145 if (handle == -1 && rateLevel == SENSOR_DIRECT_RATE_STOP) { in configureChannel() 155 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle); in configureChannel() [all …]
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | MtpMockDatabase.cpp | 72 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 …]
|
D | MtpMockDatabase.h | 53 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/native/libs/binder/tests/parcel_fuzzer/ |
D | hwbinder.cpp | 109 size_t handle = 0; in __anon2ab79a190702() local 111 status_t status = p.readBuffer(size, &handle, &data); in __anon2ab79a190702() 112 FUZZ_LOG() << "readBuffer status: " << status << " handle: " << handle << " data: " << data; in __anon2ab79a190702() 119 size_t handle = 0; in __anon2ab79a190802() local 121 status_t status = p.readNullableBuffer(size, &handle, &data); in __anon2ab79a190802() 122 …FUZZ_LOG() << "readNullableBuffer status: " << status << " handle: " << handle << " data: " << dat… in __anon2ab79a190802() 129 size_t handle = 0; in __anon2ab79a190902() local 133 … status_t status = p.readEmbeddedBuffer(size, &handle, parent_buffer_handle, parent_offset, &data); in __anon2ab79a190902() 134 …FUZZ_LOG() << "readEmbeddedBuffer status: " << status << " handle: " << handle << " data: " << dat… in __anon2ab79a190902() 141 size_t handle = 0; in __anon2ab79a190a02() local [all …]
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
D | MediaBufferBase.h | 88 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/include/media/ |
D | MediaExtractorPluginApi.h | 33 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/ |
D | TransactionCallbackInvoker.cpp | 105 const sp<CallbackHandle>& handle) { in registerPendingCallbackHandle() argument 111 status_t err = findTransactionStats(handle->listener, handle->callbackIds, &transactionStats); in registerPendingCallbackHandle() 117 mPendingTransactions[handle->listener][handle->callbackIds]++; in registerPendingCallbackHandle() 121 status_t TransactionCallbackInvoker::finalizeCallbackHandle(const sp<CallbackHandle>& handle, in finalizeCallbackHandle() argument 123 auto listener = mPendingTransactions.find(handle->listener); in finalizeCallbackHandle() 126 auto pendingCallback = pendingCallbacks.find(handle->callbackIds); in finalizeCallbackHandle() 145 status_t err = addCallbackHandle(handle, jankData); in finalizeCallbackHandle() 161 for (const auto& handle : handles) { in finalizeOnCommitCallbackHandles() local 162 if (!containsOnCommitCallbacks(handle->callbackIds)) { in finalizeOnCommitCallbackHandles() 163 outRemainingHandles.push_back(handle); in finalizeOnCommitCallbackHandles() [all …]
|
/frameworks/av/services/oboeservice/ |
D | AAudioStreamTracker.cpp | 72 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/ |
D | client_channel.cpp | 20 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/ |
D | IMtpDatabase.h | 40 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 …]
|
D | MtpDevice.h | 104 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/private/pdx/ |
D | utility.h | 155 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/native/libs/vr/libbufferhub/include/private/dvr/ |
D | native_handle_wrapper.h | 26 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/ |
D | WebViewFunctorManagerTests.cpp | 47 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/ |
D | android_app_NativeActivity.cpp | 285 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/base/core/java/com/android/internal/content/ |
D | NativeLibraryHelper.java | 173 private static native void nativeClose(long handle); in nativeClose() argument 175 private static native long nativeSumNativeBinaries(long handle, String cpuAbi, in nativeSumNativeBinaries() argument 178 private native static int nativeCopyNativeBinaries(long handle, String sharedLibraryPath, in nativeCopyNativeBinaries() argument 181 private static long sumNativeBinaries(Handle handle, String abi) { in sumNativeBinaries() argument 183 for (long apkHandle : handle.apkHandles) { in sumNativeBinaries() 184 sum += nativeSumNativeBinaries(apkHandle, abi, handle.debuggable); in sumNativeBinaries() 197 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { in copyNativeBinaries() argument 198 for (long apkHandle : handle.apkHandles) { in copyNativeBinaries() 200 handle.extractNativeLibs, handle.debuggable); in copyNativeBinaries() 215 public static int findSupportedAbi(Handle handle, String[] supportedAbis) { in findSupportedAbi() argument [all …]
|
/frameworks/av/services/audioflinger/ |
D | DeviceEffectManager.cpp | 35 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 …]
|
/frameworks/av/media/utils/ |
D | AImageReaderUtils.cpp | 28 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/ |
D | SyntheticPasswordManager.java | 523 for (long handle : mStorage.listSyntheticPasswordHandlesForUser(SP_BLOB_NAME, userId)) { in removeUser() 524 destroyWeaverSlot(handle, userId); in removeUser() 525 destroySPBlobKey(getKeyName(handle)); in removeUser() 529 int getCredentialType(long handle, int userId) { in getCredentialType() argument 530 byte[] passwordData = loadState(PASSWORD_DATA_NAME, handle, userId); in getCredentialType() 652 private int loadWeaverSlot(long handle, int userId) { in loadWeaverSlot() argument 654 byte[] data = loadState(WEAVER_SLOT_NAME, handle, userId); in loadWeaverSlot() 662 Slog.e(TAG, "Invalid weaver slot version of handle " + handle); in loadWeaverSlot() 668 private void saveWeaverSlot(int slot, long handle, int userId) { in saveWeaverSlot() argument 672 saveState(WEAVER_SLOT_NAME, buffer.array(), handle, userId); in saveWeaverSlot() [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2AllocatorGralloc.cpp | 74 bool native_handle_is_invalid(const native_handle_t *const handle) { in native_handle_is_invalid() argument 76 if (handle == nullptr) { in native_handle_is_invalid() 80 return ((size_t)handle->version != sizeof(native_handle_t) || in native_handle_is_invalid() 81 handle->numFds < 0 || in native_handle_is_invalid() 82 handle->numInts < 0 || in native_handle_is_invalid() 84 handle->numFds > int((INT_MAX - handle->version) / sizeof(int)) - handle->numInts); in native_handle_is_invalid() 109 const ExtraData* GetExtraData(const C2Handle *const handle) { in GetExtraData() argument 110 if (handle == nullptr in GetExtraData() 111 || native_handle_is_invalid(handle) in GetExtraData() 112 || handle->numInts < NUM_INTS) { in GetExtraData() [all …]
|