Searched defs:handle (Results 1 - 25 of 253) sorted by last modified time

1234567891011

/frameworks/webview/chromium/loader/
H A Dloader.cpp90 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo); local
92 if (handle == NULL) {
128 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo); local
130 if (handle == NULL) {
139 /* JNI wrappers - handle string lifetimes and 32/64 ABI choice */
210 // return, so no need to handle errors here.
/frameworks/rs/cpp/
H A DRenderScript.cpp73 void* handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); local
74 if (handle == nullptr) {
79 if (loadSymbols(handle, *RS::dispatch, targetApi) == false) {
H A DrsDispatch.cpp26 bool loadSymbols(void* handle, dispatchTable& dispatchTab, int targetApiLevel) { argument
29 dispatchTab.SetNativeLibDir = (SetNativeLibDirFnPtr)dlsym(handle, "rsaContextSetNativeLibDir");
36 dispatchTab.Allocation1DData = (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData");
37 dispatchTab.Allocation1DElementData = (Allocation1DElementDataFnPtr)dlsym(handle, "rsAllocation1DElementData");
38 dispatchTab.Allocation1DRead = (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead");
39 dispatchTab.Allocation2DData = (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData");
40 dispatchTab.Allocation2DRead = (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead");
41 dispatchTab.Allocation3DData = (Allocation3DDataFnPtr)dlsym(handle, "rsAllocation3DData");
42 dispatchTab.Allocation3DRead = (Allocation3DReadFnPtr)dlsym(handle, "rsAllocation3DRead");
43 dispatchTab.AllocationAdapterCreate = (AllocationAdapterCreateFnPtr)dlsym(handle, "rsAllocationAdapterCreat
[all...]
/frameworks/rs/cpu_ref/
H A DrsCpuBLASDispatch.h455 void* handle = NULL; local
456 handle = dlopen("libblasV8.so", RTLD_LAZY | RTLD_LOCAL);
458 if (handle == NULL) {
464 x = (FnPtr_##x)dlsym(handle, #x); \
/frameworks/rs/
H A DrsFallbackAdaptation.cpp30 void* handle = dlopen("libRS_internal.so", RTLD_LAZY | RTLD_LOCAL); local
31 if (handle == NULL) {
35 if (loadSymbols(handle, mEntryFuncs) == false) {
41 dlclose(handle);
/frameworks/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp275 void* handle = NULL; local
277 handle = dlopen("libRS.so", RTLD_LAZY | RTLD_LOCAL);
282 handle = dlopen(libPathJni, RTLD_LAZY | RTLD_LOCAL);
285 handle = dlopen("libRSSupport.so", RTLD_LAZY | RTLD_LOCAL);
288 if (handle == NULL) {
293 if (loadSymbols(handle, dispatchTab, targetApi) == false) {
295 dlclose(handle);
2099 void* handle = NULL; local
2103 handle = dlopen(libPathJni, RTLD_LAZY | RTLD_LOCAL);
2106 handle
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipSessionListenerProxy.java55 handle(t, "onCalling()");
71 handle(t, "onRinging()");
86 handle(t, "onRingingBack()");
102 handle(t, "onCallEstablished()");
117 handle(t, "onCallEnded()");
133 handle(t, "onCallTransferring()");
148 handle(t, "onCallBusy()");
164 handle(t, "onCallChangeFailed()");
180 handle(t, "onError()");
195 handle(
248 private void handle(Throwable t, String message) { method in class:SipSessionListenerProxy
[all...]
/frameworks/opt/net/wifi/libwifi_hal/
H A Dhal_tool.cpp25 wifi_error wifi_initialize_stub(wifi_handle* handle) { argument
29 void wifi_cleanup_stub(wifi_handle handle, wifi_cleaned_up_handler handler) {} argument
31 void wifi_event_loop_stub(wifi_handle handle) {} argument
35 wifi_error wifi_get_supported_feature_set_stub(wifi_interface_handle handle, argument
40 wifi_error wifi_get_concurrency_matrix_stub(wifi_interface_handle handle, argument
46 wifi_error wifi_set_scanning_mac_oui_stub(wifi_interface_handle handle, argument
52 wifi_error wifi_get_supported_channels_stub(wifi_handle handle, int* size, argument
58 wifi_error wifi_is_epr_supported_stub(wifi_handle handle) { argument
63 wifi_error wifi_get_ifaces_stub(wifi_handle handle, int* num_ifaces, argument
128 wifi_interface_handle handle, wifi_gscan_capabilitie
127 wifi_get_gscan_capabilities_stub( wifi_interface_handle handle, wifi_gscan_capabilities* capabilities) argument
150 wifi_get_valid_channels_stub(wifi_interface_handle handle, int band, int max_channels, wifi_channel* channels, int* num_channels) argument
330 wifi_get_tx_pkt_fates_stub(wifi_interface_handle handle, wifi_tx_report* tx_report_bufs, size_t n_requested_fates, size_t* n_provided_fates) argument
337 wifi_get_rx_pkt_fates_stub(wifi_interface_handle handle, wifi_rx_report* rx_report_bufs, size_t n_requested_fates, size_t* n_provided_fates) argument
413 wifi_nan_get_version_stub(wifi_handle handle, NanVersion* version) argument
452 wifi_get_packet_filter_capabilities_stub( wifi_interface_handle handle, u32* version, u32* max_len) argument
457 wifi_set_packet_filter_stub(wifi_interface_handle handle, const u8* program, u32 len) argument
[all...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasClient.java128 * <code>obj</code> contains handle of message as allocated by MSE
419 String handle = req.getMsgHandle();
421 client.sendToClient(EVENT_PUSH_MESSAGE, request.isSuccess(), handle);
956 * @param handle handle of message to retrieve
965 public boolean getMessage(String handle, boolean attachment) { argument
972 new BigInteger(handle, 16);
980 new BluetoothMasRequestGetMessage(handle, CharsetType.UTF_8, attachment);
990 * @param handle handle o
995 setMessageReadStatus(String handle, boolean read) argument
1024 setMessageDeletedStatus(String handle, boolean deleted) argument
[all...]
H A DBluetoothMasRequestGetMessage.java43 public BluetoothMasRequestGetMessage(String handle, CharsetType charset, boolean attachment) { argument
45 mHeaderSet.setHeader(HeaderSet.NAME, handle);
H A DBluetoothMasRequestSetMessageStatus.java34 public BluetoothMasRequestSetMessageStatus(String handle, StatusIndicator statusInd, argument
38 mHeaderSet.setHeader(HeaderSet.NAME, handle);
/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp1194 native_handle_t* handle = native_handle_create(1, 0); local
1195 if (handle == nullptr) {
1199 handle->data[0] = fd;
1202 android::hardware::Return<void> status = dumpstate_device->dumpstateBoard(handle);
1205 native_handle_close(handle);
1206 native_handle_delete(handle);
1213 native_handle_close(handle);
1214 native_handle_delete(handle);
/frameworks/native/cmds/lshal/
H A Dtest.cpp52 const native_handle_t *handle = hh.getNativeHandle(); variable
53 if (handle->numFds < 1) {
56 int fd = handle->data[0];
/frameworks/native/cmds/servicemanager/
H A Dbctest.c13 uint32_t handle; local
25 handle = bio_get_ref(&reply);
27 if (handle)
28 binder_acquire(bs, handle);
32 return handle;
63 uint32_t handle; local
75 handle = svcmgr_lookup(bs, svcmgr, "alt_svc_mgr");
76 if (!handle) {
80 svcmgr = handle;
81 fprintf(stderr,"svcmgr is via %x\n", handle);
[all...]
H A Dbinder.c330 data.payload.handle = target;
353 writebuf.txn.target.handle = target;
522 void bio_put_ref(struct binder_io *bio, uint32_t handle) argument
526 if (handle)
536 obj->handle = handle;
653 return obj->handle;
H A Dservice_manager.c139 uint32_t handle; member in struct:svcinfo
166 if (si->handle) {
167 binder_release(bs, si->handle);
168 si->handle = 0;
182 if (!si || !si->handle) {
199 return si->handle;
204 uint32_t handle, uid_t uid, int allow_isolated,
209 //ALOGI("add_service('%s',%x,%s) uid=%d\n", str8(s, len), handle,
212 if (!handle || (len == 0) || (len > 127))
217 str8(s, len), handle, ui
202 do_add_service(struct binder_state *bs, const uint16_t *s, size_t len, uint32_t handle, uid_t uid, int allow_isolated, pid_t spid) argument
260 uint32_t handle; local
[all...]
/frameworks/native/include/android/
H A Dsensor.h249 int32_t handle; member in struct:ADynamicSensorEvent
/frameworks/native/include/binder/
H A DBpBinder.h30 BpBinder(int32_t handle);
32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
/frameworks/native/include/ui/
H A DGraphicBuffer.h87 // Create a GraphicBuffer from an existing handle.
89 // Wrap and use the handle directly. It assumes the handle has been
90 // registered and never fails. The handle must have a longer lifetime
93 // This can be used when, for example, you want to wrap a handle that
97 // Take ownership of the handle and use it directly. It assumes the
98 // handle has been registered and never fails.
100 // This can be used to manage an already registered handle with
104 // Take onwership of an unregistered handle and use it directly. It
109 // handle returne
126 GraphicBuffer(const native_handle_t* handle, HandleWrapMethod method, uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint32_t usage, uint32_t stride) argument
[all...]
/frameworks/native/libs/binder/
H A DBpBinder.cpp90 BpBinder::BpBinder(int32_t handle) argument
91 : mHandle(handle)
96 ALOGV("Creating BpBinder %p handle %d\n", this, mHandle);
99 IPCThreadState::self()->incWeakHandle(handle);
194 ALOGV("Requesting death notification: %p handle %d\n", this, mHandle);
229 ALOGV("Clearing death notification: %p handle %d\n", this, mHandle);
245 ALOGV("Sending obituary for proxy %p handle %d, mObitsSent=%s\n",
254 ALOGV("Clearing sent death notification: %p handle %d\n", this, mHandle);
314 ALOGV("Destroying BpBinder %p handle %d\n", this, mHandle);
341 ALOGV("onFirstRef BpBinder %p handle
[all...]
H A DIPCThreadState.cpp124 if (btd->target.handle < 1024) {
126 out << "target.desc=" << btd->target.handle;
256 out << ": handle=" << h << " (death cookie " << (void*)(long)c << ")";
559 status_t IPCThreadState::transact(int32_t handle, argument
570 << handle << " / code " << TypeCode(code) << ": "
577 err = writeTransactionData(BC_TRANSACTION, flags, handle, code, data, NULL);
610 << handle << ": ";
621 void IPCThreadState::incStrongHandle(int32_t handle) argument
623 LOG_REMOTEREFS("IPCThreadState::incStrongHandle(%d)\n", handle);
625 mOut.writeInt32(handle);
628 decStrongHandle(int32_t handle) argument
635 incWeakHandle(int32_t handle) argument
642 decWeakHandle(int32_t handle) argument
649 attemptIncStrongHandle(int32_t handle) argument
673 expungeHandle(int32_t handle, IBinder* binder) argument
681 requestDeathNotification(int32_t handle, BpBinder* proxy) argument
689 clearDeathNotification(int32_t handle, BpBinder* proxy) argument
914 writeTransactionData(int32_t cmd, uint32_t binderFlags, int32_t handle, uint32_t code, const Parcel& data, status_t* statusBuffer) argument
[all...]
H A DParcel.cpp119 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
127 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
132 if ((obj.cookie != 0) && (outAshmemSize != NULL) && ashmem_valid(obj.handle)) {
134 int size = ashmem_get_size_region(obj.handle);
167 const sp<IBinder> b = proc->getStrongProxyForHandle(obj.handle);
175 const wp<IBinder> b = proc->getWeakProxyForHandle(obj.handle);
181 if ((outAshmemSize != NULL) && ashmem_valid(obj.handle)) {
182 int size = ashmem_get_size_region(obj.handle);
188 close(obj.handle);
229 const int32_t handle local
263 const int32_t handle = proxy ? proxy->handle() : 0; local
1129 writeNativeHandle(const native_handle* handle) argument
[all...]
H A DProcessState.cpp179 ProcessState::handle_entry* ProcessState::lookupHandleLocked(int32_t handle) argument
182 if (N <= (size_t)handle) {
186 status_t err = mHandleToObject.insertAt(e, N, handle+1-N);
189 return &mHandleToObject.editItemAt(handle);
192 sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) argument
198 handle_entry* e = lookupHandleLocked(handle);
206 if (handle == 0) {
222 // stop special casing handle 0 for context manager and add
223 // a driver API to get a handle to the context manager with
233 b = new BpBinder(handle);
249 getWeakProxyForHandle(int32_t handle) argument
280 expungeHandle(int32_t handle, IBinder* binder) argument
[all...]
/frameworks/native/libs/binder/include/binder/
H A DBpBinder.h30 BpBinder(int32_t handle);
32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
/frameworks/native/libs/binder/tests/
H A DbinderSafeInterfaceTest.cpp423 rawHandle->data[0] = dup(a->handle()->data[0]);
426 rawHandle->data[1] = a->handle()->data[1] + 1;
701 native_handle* handle = native_handle_create(1 /*numFds*/, 1 /*numInts*/); local
702 ASSERT_NE(nullptr, handle);
703 handle->data[0] = dup(eventFd.get());
704 handle->data[1] = 1;
708 sp<NativeHandle> a = NativeHandle::create(handle, true);
713 ASSERT_TRUE(fdsAreEquivalent(a->handle()->data[0], aPlusOne->handle()->data[0]));
714 ASSERT_EQ(a->handle()
[all...]

Completed in 240 milliseconds

1234567891011