Searched refs:handle (Results 26 - 50 of 484) sorted by last modified time

1234567891011>>

/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
H A 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,
102 int32_t handle,
[all...]
H A DParcel.h192 status_t writeNativeHandle(const native_handle* handle);
H A DProcessState.h63 sp<IBinder> getStrongProxyForHandle(int32_t handle);
64 wp<IBinder> getWeakProxyForHandle(int32_t handle);
65 void expungeHandle(int32_t handle, IBinder* binder);
89 handle_entry* lookupHandleLocked(int32_t handle);
H A DSafeInterface.h103 [&]() { return parcel->writeNativeHandle(nh->handle()); });
156 // Templates to handle integral types. We use a struct template to require that the called
/frameworks/native/include/gui/
H A DGLConsumer.h310 // Reference counting EGLImages lets us handle all these cases easily while
328 return mGraphicBuffer == NULL ? NULL : mGraphicBuffer->handle;
H A DISurfaceComposerClient.h53 uint32_t ownerUid, sp<IBinder>* handle,
59 virtual status_t destroySurface(const sp<IBinder>& handle) = 0;
64 virtual status_t clearLayerFrameStats(const sp<IBinder>& handle) const = 0;
69 virtual status_t getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const = 0;
H A DSurfaceComposerClient.h159 const sp<IBinder>& handle, uint64_t frameNumber);
161 const sp<Surface>& handle, uint64_t frameNumber);
H A DSurfaceControl.h104 // identified by handle reaches the given frameNumber. If the Layer identified
105 // by handle is removed, then we will apply this transaction regardless of
107 status_t deferTransactionUntil(const sp<IBinder>& handle, uint64_t frameNumber);
114 // Reparents all children of this layer to the new parent handle.
154 const sp<IBinder>& handle,
/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...]
H A DGraphicBufferAllocator.h53 buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId,
56 status_t free(buffer_handle_t handle);
H A DGraphicBufferMapper.h53 status_t freeBuffer(buffer_handle_t handle);
55 status_t lock(buffer_handle_t handle,
58 status_t lockYCbCr(buffer_handle_t handle,
61 status_t unlock(buffer_handle_t handle);
63 status_t lockAsync(buffer_handle_t handle,
66 status_t lockAsync(buffer_handle_t handle,
70 status_t lockAsyncYCbCr(buffer_handle_t handle,
74 status_t unlockAsync(buffer_handle_t handle, int *fenceFd);
/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
H A 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,
102 int32_t handle,
[all...]
H A DParcel.h192 status_t writeNativeHandle(const native_handle* handle);
H A DProcessState.h63 sp<IBinder> getStrongProxyForHandle(int32_t handle);
64 wp<IBinder> getWeakProxyForHandle(int32_t handle);
65 void expungeHandle(int32_t handle, IBinder* binder);
89 handle_entry* lookupHandleLocked(int32_t handle);
H A DSafeInterface.h103 [&]() { return parcel->writeNativeHandle(nh->handle()); });
156 // Templates to handle integral types. We use a struct template to require that the called
/frameworks/native/libs/binder/tests/
H A DbinderDriverInterfaceTest.cpp315 .handle = 0,
320 .handle = 0,
H A DbinderLibTest.cpp685 EXPECT_EQ(ProcessState::self()->getStrongProxyForHandle(fb->handle), m_server);
704 freedHandle = freed->handle;
714 /* Replace original handle with handle to the freed binder */
716 __u32 oldHandle = strong->handle;
717 strong->handle = freedHandle;
724 /* Restore original handle so parcel destructor does not use
725 * the wrong handle.
727 strong->handle = oldHandle;
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...]
/frameworks/native/libs/gui/
H A DBufferQueueConsumer.cpp234 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle);

Completed in 1543 milliseconds

1234567891011>>