/frameworks/native/include/binder/ |
H A D | BpBinder.h | 30 BpBinder(int32_t handle); 32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
|
H A D | IPCThreadState.h | 63 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 D | Parcel.h | 192 status_t writeNativeHandle(const native_handle* handle);
|
H A D | ProcessState.h | 63 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 D | SafeInterface.h | 103 [&]() { 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 D | GLConsumer.h | 310 // Reference counting EGLImages lets us handle all these cases easily while 328 return mGraphicBuffer == NULL ? NULL : mGraphicBuffer->handle;
|
H A D | ISurfaceComposerClient.h | 53 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 D | SurfaceComposerClient.h | 159 const sp<IBinder>& handle, uint64_t frameNumber); 161 const sp<Surface>& handle, uint64_t frameNumber);
|
H A D | SurfaceControl.h | 104 // 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 D | GraphicBuffer.h | 87 // 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 D | GraphicBufferAllocator.h | 53 buffer_handle_t* handle, uint32_t* stride, uint64_t graphicBufferId, 56 status_t free(buffer_handle_t handle);
|
H A D | GraphicBufferMapper.h | 53 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 D | BpBinder.cpp | 90 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 D | IPCThreadState.cpp | 124 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 D | Parcel.cpp | 119 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 D | ProcessState.cpp | 179 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 D | BpBinder.h | 30 BpBinder(int32_t handle); 32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
|
H A D | IPCThreadState.h | 63 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 D | Parcel.h | 192 status_t writeNativeHandle(const native_handle* handle);
|
H A D | ProcessState.h | 63 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 D | SafeInterface.h | 103 [&]() { 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 D | binderDriverInterfaceTest.cpp | 315 .handle = 0, 320 .handle = 0,
|
H A D | binderLibTest.cpp | 685 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 D | binderSafeInterfaceTest.cpp | 423 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 D | BufferQueueConsumer.cpp | 234 slot, outBuffer->mFrameNumber, outBuffer->mGraphicBuffer->handle);
|