Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/rs/cpp/
DRenderScript.cpp81 static bool loadSymbols(void* handle) { in loadSymbols() argument
83 RS::dispatch->AllocationGetType = (AllocationGetTypeFnPtr)dlsym(handle, "rsaAllocationGetType"); in loadSymbols()
88 RS::dispatch->TypeGetNativeData = (TypeGetNativeDataFnPtr)dlsym(handle, "rsaTypeGetNativeData"); in loadSymbols()
93 …RS::dispatch->ElementGetNativeData = (ElementGetNativeDataFnPtr)dlsym(handle, "rsaElementGetNative… in loadSymbols()
98 …RS::dispatch->ElementGetSubElements = (ElementGetSubElementsFnPtr)dlsym(handle, "rsaElementGetSubE… in loadSymbols()
103 RS::dispatch->DeviceCreate = (DeviceCreateFnPtr)dlsym(handle, "rsDeviceCreate"); in loadSymbols()
108 RS::dispatch->DeviceDestroy = (DeviceDestroyFnPtr)dlsym(handle, "rsDeviceDestroy"); in loadSymbols()
113 RS::dispatch->DeviceSetConfig = (DeviceSetConfigFnPtr)dlsym(handle, "rsDeviceSetConfig"); in loadSymbols()
118 RS::dispatch->ContextCreate = (ContextCreateFnPtr)dlsym(handle, "rsContextCreate");; in loadSymbols()
123 RS::dispatch->GetName = (GetNameFnPtr)dlsym(handle, "rsaGetName");; in loadSymbols()
[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);
54 static void enableSensor(uid_t uid, int handle) { in enableSensor() argument
55 BatteryService::getInstance().enableSensorImpl(uid, handle); in enableSensor()
[all …]
DSensorDevice.cpp67 mActivationCount.add(list[i].handle, model); in ANDROID_SINGLETON_STATIC_INSTANCE()
70 list[i].handle, 0); in ANDROID_SINGLETON_STATIC_INSTANCE()
87 const Info& info = mActivationCount.valueFor(list[i].handle); in dump()
88 result.appendFormat("handle=0x%08x, active-count=%zu, batch_period(ms)={ ", list[i].handle, in dump()
97 result.appendFormat("handle=0x%08x, active-count=%zu, batch_timeout(ms)={ ", list[i].handle, in dump()
128 void SensorDevice::autoDisable(void *ident, int handle) { in autoDisable() argument
129 Info& info( mActivationCount.editValueFor(handle) ); in autoDisable()
134 status_t SensorDevice::activate(void* ident, int handle, int enabled) in activate() argument
141 Info& info( mActivationCount.editValueFor(handle) ); in activate()
145 ident, handle, enabled, info.batchParams.size()); in activate()
[all …]
DBatteryService.cpp41 bool BatteryService::addSensor(uid_t uid, int handle) { in addSensor() argument
43 Info key(uid, handle); in addSensor()
53 bool BatteryService::removeSensor(uid_t uid, int handle) { in removeSensor() argument
55 ssize_t index = mActivations.indexOf(Info(uid, handle)); in removeSensor()
63 void BatteryService::enableSensorImpl(uid_t uid, int handle) { in enableSensorImpl() argument
65 if (addSensor(uid, handle)) { in enableSensorImpl()
67 mBatteryStatService->noteStartSensor(uid, handle); in enableSensorImpl()
72 void BatteryService::disableSensorImpl(uid_t uid, int handle) { in disableSensorImpl() argument
74 if (removeSensor(uid, handle)) { in disableSensorImpl()
76 mBatteryStatService->noteStopSensor(uid, handle); in disableSensorImpl()
[all …]
DSensorService.cpp334 int handle = mActiveSensors.keyAt(i); in dump() local
336 getSensorName(handle).string(), in dump()
337 handle, in dump()
361 int handle = buffer[i].sensor; in cleanupAutoDisabledSensorLocked() local
363 handle = buffer[i].meta_data.sensor; in cleanupAutoDisabledSensorLocked()
365 if (connection->hasSensor(handle)) { in cleanupAutoDisabledSensorLocked()
366 SensorInterface* sensor = mSensorMap.valueFor(handle); in cleanupAutoDisabledSensorLocked()
371 sensor->autoDisable(connection.get(), handle); in cleanupAutoDisabledSensorLocked()
372 cleanupWithoutDisableLocked(connection, handle); in cleanupAutoDisabledSensorLocked()
607 String8 SensorService::getSensorName(int handle) const { in getSensorName()
[all …]
DSensorService.h82 virtual status_t enableDisable(int handle, bool enabled, nsecs_t samplingPeriodNs,
84 virtual status_t setEventRate(int handle, nsecs_t samplingPeriodNs);
121 void incrementPendingFlushCount(int32_t handle);
177 bool hasSensor(int32_t handle) const;
180 bool addSensor(int32_t handle);
181 bool removeSensor(int32_t handle);
182 void setFirstFlushPending(int32_t handle, bool value);
213 String8 getSensorName(int handle) const;
214 bool isVirtualSensor(int handle) const;
215 Sensor getSensorFromHandle(int handle) const;
[all …]
DSensorInterface.h40 virtual status_t setDelay(void* ident, int handle, int64_t ns) = 0;
43 virtual status_t batch(void* ident, int handle, int /*flags*/, int64_t samplingPeriodNs, in batch() argument
46 return setDelay(ident, handle, samplingPeriodNs); in batch()
76 virtual status_t batch(void* ident, int handle, int flags, int64_t samplingPeriodNs,
78 virtual status_t setDelay(void* ident, int handle, int64_t ns);
79 virtual status_t flush(void* ident, int handle);
82 virtual void autoDisable(void *ident, int handle);
/frameworks/native/libs/ui/
DGraphicBufferMapper.cpp51 status_t GraphicBufferMapper::registerBuffer(buffer_handle_t handle) in registerBuffer() argument
56 err = mAllocMod->registerBuffer(mAllocMod, handle); in registerBuffer()
59 handle, err, strerror(-err)); in registerBuffer()
63 status_t GraphicBufferMapper::unregisterBuffer(buffer_handle_t handle) in unregisterBuffer() argument
68 err = mAllocMod->unregisterBuffer(mAllocMod, handle); in unregisterBuffer()
71 handle, err, strerror(-err)); in unregisterBuffer()
75 status_t GraphicBufferMapper::lock(buffer_handle_t handle, in lock() argument
81 err = mAllocMod->lock(mAllocMod, handle, usage, in lock()
89 status_t GraphicBufferMapper::lockYCbCr(buffer_handle_t handle, in lockYCbCr() argument
99 err = mAllocMod->lock_ycbcr(mAllocMod, handle, usage, in lockYCbCr()
[all …]
DGraphicBuffer.cpp53 handle = NULL; in GraphicBuffer()
66 handle = NULL; in GraphicBuffer()
82 handle = inHandle; in GraphicBuffer()
95 handle = buffer->handle; in GraphicBuffer()
100 if (handle) { in ~GraphicBuffer()
108 mBufferMapper.unregisterBuffer(handle); in free_handle()
109 native_handle_close(handle); in free_handle()
110 native_handle_delete(const_cast<native_handle*>(handle)); in free_handle()
113 allocator.free(handle); in free_handle()
140 if (handle && w==width && h==height && f==format && reqUsage==usage) in reallocate()
[all …]
/frameworks/av/soundtrigger/
DISoundTrigger.cpp54 sound_model_handle_t *handle) in loadSoundModel() argument
56 if (modelMemory == 0 || handle == NULL) { in loadSoundModel()
67 reply.read(handle, sizeof(sound_model_handle_t)); in loadSoundModel()
71 virtual status_t unloadSoundModel(sound_model_handle_t handle) in unloadSoundModel() argument
75 data.write(&handle, sizeof(sound_model_handle_t)); in unloadSoundModel()
83 virtual status_t startRecognition(sound_model_handle_t handle, in startRecognition() argument
88 data.write(&handle, sizeof(sound_model_handle_t)); in startRecognition()
102 virtual status_t stopRecognition(sound_model_handle_t handle) in stopRecognition() argument
106 data.write(&handle, sizeof(sound_model_handle_t)); in stopRecognition()
134 sound_model_handle_t handle; in onTransact() local
[all …]
/frameworks/base/core/jni/
Dandroid_app_NativeActivity.cpp258 void* handle = dlopen(pathStr, RTLD_LAZY); in loadNativeCode_native() local
259 if (handle == NULL) { in loadNativeCode_native()
261 handle = NativeBridgeLoadLibrary(pathStr, RTLD_LAZY); in loadNativeCode_native()
267 if (handle != NULL) { in loadNativeCode_native()
271 funcPtr = NativeBridgeGetTrampoline(handle, funcStr, NULL, 0); in loadNativeCode_native()
273 funcPtr = dlsym(handle, funcStr); in loadNativeCode_native()
276 code = new NativeCode(handle, (ANativeActivity_createFunc*)funcPtr); in loadNativeCode_native()
359 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) in unloadNativeCode_native() argument
362 if (handle != 0) { in unloadNativeCode_native()
363 NativeCode* code = (NativeCode*)handle; in unloadNativeCode_native()
[all …]
/frameworks/native/services/surfaceflinger/
DClient.cpp57 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) in attachLayer() argument
60 mLayers.add(handle, layer); in attachLayer()
75 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const in getLayerUser()
79 wp<Layer> layer(mLayers.valueFor(handle)); in getLayerUser()
82 ALOGE_IF(lbc==0, "getLayerUser(name=%p) is dead", handle.get()); in getLayerUser()
112 sp<IBinder>* handle, in createSurface() argument
123 sp<IBinder>* handle; in createSurface() member in android::Client::createSurface::MessageCreateLayer
134 sp<IBinder>* handle, in createSurface() argument
137 handle(handle), gbp(gbp), in createSurface()
143 handle, gbp); in createSurface()
[all …]
/frameworks/native/cmds/servicemanager/
Dbctest.c12 uint32_t handle; in svcmgr_lookup() local
24 handle = bio_get_ref(&reply); in svcmgr_lookup()
26 if (handle) in svcmgr_lookup()
27 binder_acquire(bs, handle); in svcmgr_lookup()
31 return handle; in svcmgr_lookup()
63 uint32_t handle; in main() local
75 handle = svcmgr_lookup(bs, svcmgr, "alt_svc_mgr"); in main()
76 if (!handle) { in main()
80 svcmgr = handle; in main()
81 fprintf(stderr,"svcmgr is via %x\n", handle); in main()
[all …]
Dservice_manager.c131 uint32_t handle; member
158 if (si->handle) { in svcinfo_death()
159 binder_release(bs, si->handle); in svcinfo_death()
160 si->handle = 0; in svcinfo_death()
181 if (si && si->handle) { in do_find_service()
190 return si->handle; in do_find_service()
198 uint32_t handle, uid_t uid, int allow_isolated, in do_add_service() argument
206 if (!handle || (len == 0) || (len > 127)) in do_add_service()
211 str8(s, len), handle, uid); in do_add_service()
217 if (si->handle) { in do_add_service()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java145 private static native void nativeClose(long handle); in nativeClose() argument
147 private static native long nativeSumNativeBinaries(long handle, String cpuAbi); in nativeSumNativeBinaries() argument
149 private native static int nativeCopyNativeBinaries(long handle, in nativeCopyNativeBinaries() argument
152 private static long sumNativeBinaries(Handle handle, String abi) { in sumNativeBinaries() argument
154 for (long apkHandle : handle.apkHandles) { in sumNativeBinaries()
168 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { in copyNativeBinaries() argument
169 for (long apkHandle : handle.apkHandles) { in copyNativeBinaries()
185 public static int findSupportedAbi(Handle handle, String[] supportedAbis) { in findSupportedAbi() argument
187 for (long apkHandle : handle.apkHandles) { in findSupportedAbi()
210 private native static int nativeFindSupportedAbi(long handle, String[] supportedAbis); in nativeFindSupportedAbi() argument
[all …]
/frameworks/native/include/ui/
DGraphicBufferMapper.h41 status_t registerBuffer(buffer_handle_t handle);
43 status_t unregisterBuffer(buffer_handle_t handle);
45 status_t lock(buffer_handle_t handle,
48 status_t lockYCbCr(buffer_handle_t handle,
51 status_t unlock(buffer_handle_t handle);
53 status_t lockAsync(buffer_handle_t handle,
56 status_t lockAsyncYCbCr(buffer_handle_t handle,
59 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
62 void dump(buffer_handle_t handle);
/frameworks/native/libs/gui/
DISurfaceComposerClient.cpp56 sp<IBinder>* handle, in createSurface() argument
66 *handle = reply.readStrongBinder(); in createSurface()
71 virtual status_t destroySurface(const sp<IBinder>& handle) { in destroySurface() argument
74 data.writeStrongBinder(handle); in destroySurface()
79 virtual status_t clearLayerFrameStats(const sp<IBinder>& handle) const { in clearLayerFrameStats()
82 data.writeStrongBinder(handle); in clearLayerFrameStats()
87 virtual status_t getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const { in getLayerFrameStats() argument
90 data.writeStrongBinder(handle); in getLayerFrameStats()
112 sp<IBinder> handle; in onTransact() local
115 &handle, &gbp); in onTransact()
[all …]
/frameworks/av/drm/common/
DIDrmManagerService.cpp41 const DecryptHandle* handle, Parcel* data) { in writeDecryptHandleToParcelData() argument
42 data->writeInt32(handle->decryptId); in writeDecryptHandleToParcelData()
43 data->writeString8(handle->mimeType); in writeDecryptHandleToParcelData()
44 data->writeInt32(handle->decryptApiType); in writeDecryptHandleToParcelData()
45 data->writeInt32(handle->status); in writeDecryptHandleToParcelData()
47 int size = handle->copyControlVector.size(); in writeDecryptHandleToParcelData()
50 data->writeInt32(handle->copyControlVector.keyAt(i)); in writeDecryptHandleToParcelData()
51 data->writeInt32(handle->copyControlVector.valueAt(i)); in writeDecryptHandleToParcelData()
54 size = handle->extendedData.size(); in writeDecryptHandleToParcelData()
57 data->writeString8(handle->extendedData.keyAt(i)); in writeDecryptHandleToParcelData()
[all …]
/frameworks/av/media/mtp/
DMtpDatabase.h44 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 deleteFile(MtpObjectHandle handle) = 0;
96 virtual MtpObjectHandleList* getObjectReferences(MtpObjectHandle handle) = 0;
98 virtual MtpResponseCode setObjectReferences(MtpObjectHandle handle,
/frameworks/native/include/binder/
DIPCThreadState.h63 status_t transact(int32_t handle,
67 void incStrongHandle(int32_t handle);
68 void decStrongHandle(int32_t handle);
69 void incWeakHandle(int32_t handle);
70 void decWeakHandle(int32_t handle);
71 status_t attemptIncStrongHandle(int32_t handle);
72 static void expungeHandle(int32_t handle, IBinder* binder);
73 status_t requestDeathNotification( int32_t handle,
75 status_t clearDeathNotification( int32_t handle,
97 int32_t handle,
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionListenerProxy.java55 handle(t, "onCalling()"); in onCalling()
71 handle(t, "onRinging()"); in onRinging()
86 handle(t, "onRingingBack()"); in onRingingBack()
102 handle(t, "onCallEstablished()"); in onCallEstablished()
117 handle(t, "onCallEnded()"); in onCallEnded()
133 handle(t, "onCallTransferring()"); in onCallTransferring()
148 handle(t, "onCallBusy()"); in onCallBusy()
164 handle(t, "onCallChangeFailed()"); in onCallChangeFailed()
180 handle(t, "onError()"); in onError()
195 handle(t, "onRegistering()"); in onRegistering()
[all …]
/frameworks/base/media/java/android/mtp/
DMtpPropertyGroup.java296 MtpPropertyList getPropertyList(int handle, int format, int depth) { in getPropertyList() argument
307 if (handle == 0xFFFFFFFF) { in getPropertyList()
312 whereArgs = new String[] { Integer.toString(handle) }; in getPropertyList()
320 if (handle == 0xFFFFFFFF) { in getPropertyList()
325 whereArgs = new String[] { Integer.toString(handle), Integer.toString(format) }; in getPropertyList()
337 if (depth > 0 || handle == 0xFFFFFFFF || mColumns.length > 1) { in getPropertyList()
352 handle = (int)c.getLong(0); in getPropertyList()
365 result.append(handle, propertyCode, MtpConstants.TYPE_UINT16, 0); in getPropertyList()
371 result.append(handle, propertyCode, nameFromPath(value)); in getPropertyList()
381 name = queryString(handle, Audio.PlaylistsColumns.NAME); in getPropertyList()
[all …]
/frameworks/opt/net/wifi/service/lib/
Dwifi_hal.cpp4 wifi_error wifi_initialize(wifi_handle *handle) { in wifi_initialize() argument
8 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) { in wifi_cleanup() argument
11 void wifi_event_loop(wifi_handle handle) { in wifi_event_loop() argument
19 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set) { in wifi_get_supported_feature_set() argument
23 wifi_error wifi_get_concurrency_matrix(wifi_interface_handle handle, int max_size, in wifi_get_concurrency_matrix() argument
28 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, unsigned char *oui) { in wifi_set_scanning_mac_oui() argument
33 wifi_error wifi_get_supported_channels(wifi_handle handle, int *size, wifi_channel *list) { in wifi_get_supported_channels() argument
38 wifi_error wifi_is_epr_supported(wifi_handle handle) { in wifi_is_epr_supported() argument
43 wifi_error wifi_get_ifaces(wifi_handle handle, int *num_ifaces, wifi_interface_handle **ifaces) { in wifi_get_ifaces() argument
97 wifi_error wifi_get_gscan_capabilities(wifi_interface_handle handle, in wifi_get_gscan_capabilities() argument
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DCallInfo.java31 private String handle; field in CallInfo
33 public CallInfo(String handle) { in CallInfo() argument
34 this.handle = handle; in CallInfo()
38 return handle; in getHandle()
75 destination.writeString(handle); in writeToParcel()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java227 private static native int nativeEnableSensor(long eventQ, int handle, int rateUs, in nativeEnableSensor() argument
229 private static native int nativeDisableSensor(long eventQ, int handle); in nativeDisableSensor() argument
253 int handle = sensor.getHandle(); in addSensor() local
254 if (mActiveSensors.get(handle)) return false; in addSensor()
257 mActiveSensors.put(handle, true); in addSensor()
273 int handle = mActiveSensors.keyAt(i); in removeAllSensors() local
274 Sensor sensor = sHandleToSensor.get(handle); in removeAllSensors()
277 mActiveSensors.put(handle, false); in removeAllSensors()
288 final int handle = sensor.getHandle(); in removeSensor() local
289 if (mActiveSensors.get(handle)) { in removeSensor()
[all …]

12345678910>>...20