/frameworks/base/core/java/android/hardware/location/ |
H A D | NanoAppInstanceInfo.java | 266 * get a handle to the nano app instance 268 * @return int - handle to this instance 275 * set the handle for an app instance 277 * @param handle - handle to this instance 281 public void setHandle(int handle) { argument 282 mHandle = handle; 339 String retVal = "handle : " + mHandle;
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | NativeLibraryHelper.java | 66 * A handle to an opened package, consisting of one or more APKs. Used as 155 private static native void nativeClose(long handle); argument 157 private static native long nativeSumNativeBinaries(long handle, String cpuAbi, argument 160 private native static int nativeCopyNativeBinaries(long handle, String sharedLibraryPath, argument 164 private static long sumNativeBinaries(Handle handle, String abi) { argument 166 for (long apkHandle : handle.apkHandles) { 167 sum += nativeSumNativeBinaries(apkHandle, abi, handle.debuggable); 175 * @param handle APK file to scan for native libraries 180 public static int copyNativeBinaries(Handle handle, File sharedLibraryDir, String abi) { argument 181 for (long apkHandle : handle 198 findSupportedAbi(Handle handle, String[] supportedAbis) argument 223 nativeFindSupportedAbi(long handle, String[] supportedAbis, boolean debuggable) argument 291 sumNativeBinariesForSupportedAbi(Handle handle, String[] abiList) argument 300 copyNativeBinariesForSupportedAbi(Handle handle, File libraryRoot, String[] abiList, boolean useIsaSubdir) argument 333 copyNativeBinariesWithOverride(Handle handle, File libraryRoot, String abiOverride) argument 394 sumNativeBinariesWithOverride(Handle handle, String abiOverride) argument 440 hasRenderscriptBitcode(Handle handle) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_opengl_EGLExt.cpp | 114 toEGLHandle(JNIEnv *_env, jclass cls, jmethodID con, void * handle) { argument 116 (EGLContext)handle == EGL_NO_CONTEXT) { 121 (EGLDisplay)handle == EGL_NO_DISPLAY) { 126 (EGLSurface)handle == EGL_NO_SURFACE) { 130 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle));
|
H A D | android_os_HwBlob.cpp | 112 void JHwBlob::setTo(const void *ptr, size_t handle) { argument 119 mHandle = handle; 122 status_t JHwBlob::getHandle(size_t *handle) const { 127 *handle = mHandle; 184 size_t handle; local 185 status_t err = parcel->writeBuffer(data(), size(), &handle); 194 err = info.mBlob->writeEmbeddedToParcel(parcel, handle, info.mOffset); 208 size_t handle; local 210 data(), size(), &handle, parentHandle, parentOffset); 219 err = info.mBlob->writeEmbeddedToParcel(parcel, handle, inf 230 NewObject(JNIEnv *env, const void *ptr, size_t handle) argument 406 size_t handle; local [all...] |
/frameworks/base/media/jni/ |
H A D | android_mtp_MtpServer.cpp | 120 android_mtp_MtpServer_send_object_added(JNIEnv *env, jobject thiz, jint handle) argument 126 server->sendObjectAdded(handle); 132 android_mtp_MtpServer_send_object_removed(JNIEnv *env, jobject thiz, jint handle) argument 138 server->sendObjectRemoved(handle);
|
/frameworks/base/services/core/java/com/android/server/input/ |
H A D | PersistentDataStore.java | 395 public String getKeyboardLayout(InputMethodSubtypeHandle handle) { argument 396 return mKeyboardLayouts.get(handle); 500 InputMethodSubtypeHandle handle = new InputMethodSubtypeHandle( 502 if (mKeyboardLayouts.containsKey(handle)) { 505 + handle); 507 mKeyboardLayouts.put(handle, descriptor); 583 final InputMethodSubtypeHandle handle = mKeyboardLayouts.keyAt(i); 587 serializer.attribute(null, "input-method-id", handle.getInputMethodId()); 589 Integer.toString(handle.getSubtypeId()));
|
/frameworks/base/services/core/jni/ |
H A D | com_android_server_input_InputWindowHandle.cpp | 178 NativeInputWindowHandle* handle; local 180 handle = reinterpret_cast<NativeInputWindowHandle*>(ptr); 189 handle = new NativeInputWindowHandle(inputApplicationHandle, objWeak); 190 handle->incStrong((void*)android_server_InputWindowHandle_getHandle); 192 reinterpret_cast<jlong>(handle)); 194 return handle; 207 NativeInputWindowHandle* handle = reinterpret_cast<NativeInputWindowHandle*>(ptr); local 208 handle->decStrong((void*)android_server_InputWindowHandle_getHandle);
|
/frameworks/base/telecomm/java/android/telecom/ |
H A D | ConnectionRequest.java | 48 * Sets the phone account handle for the resulting {@link ConnectionRequest} 149 * @param handle The handle (e.g., phone number) to which the {@link Connection} is to connect. 154 Uri handle, 156 this(accountHandle, handle, extras, VideoProfile.STATE_AUDIO_ONLY, null, false, null, null); 161 * @param handle The handle (e.g., phone number) to which the {@link Connection} is to connect. 167 Uri handle, 170 this(accountHandle, handle, extras, videoState, null, false, null, null); 175 * @param handle Th 152 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras) argument 165 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras, int videoState) argument 185 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras, int videoState, String telecomCallId, boolean shouldShowIncomingCallUi) argument 196 ConnectionRequest( PhoneAccountHandle accountHandle, Uri handle, Bundle extras, int videoState, String telecomCallId, boolean shouldShowIncomingCallUi, ParcelFileDescriptor rttPipeFromInCall, ParcelFileDescriptor rttPipeToInCall) argument [all...] |
/frameworks/native/cmds/servicemanager/ |
H A D | service_manager.c | 139 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/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...] |
/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 | 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/gui/ |
H A D | SurfaceControl.cpp | 50 const sp<IBinder>& handle, 52 : mClient(client), mHandle(handle), mGraphicBufferProducer(gbp) 174 status_t SurfaceControl::deferTransactionUntil(const sp<IBinder>& handle, argument 178 return mClient->deferTransactionUntil(mHandle, handle, frameNumber); 181 status_t SurfaceControl::deferTransactionUntil(const sp<Surface>& handle, argument 185 return mClient->deferTransactionUntil(mHandle, handle, frameNumber); 223 ALOGE("invalid handle (%p) or client (%p)", 48 SurfaceControl( const sp<SurfaceComposerClient>& client, const sp<IBinder>& handle, const sp<IGraphicBufferProducer>& gbp) argument
|
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/ |
H A D | buffer_hub_queue_client.h | 50 // Create a new consumer in handle form for immediate transport over RPC. 81 // called to handle pending queue events. 148 // Data members to handle arbitrary metadata passed through BufferHub. It is 244 // 5. Consumer client continues to handle the EPOLLHUP. Since 320 // Import a |ProducerQueue| from a channel handle. 321 static std::unique_ptr<ProducerQueue> Import(LocalChannelHandle handle) { argument 322 return BASE::Create(std::move(handle)); 364 ProducerQueue(LocalChannelHandle handle); 397 // Import a ConsumerQueue from a channel handle. |ignore_on_import| controls 402 static std::unique_ptr<ConsumerQueue> Import(LocalChannelHandle handle, argument [all...] |
/frameworks/native/libs/vr/libpdx/ |
H A D | client.cpp | 227 Status<FileReference> Transaction::PushFileHandle(const LocalHandle& handle) { argument 229 return client_.GetChannel()->PushFileHandle(state_, handle); 234 const BorrowedHandle& handle) { 236 return client_.GetChannel()->PushFileHandle(state_, handle); 240 Status<FileReference> Transaction::PushFileHandle(const RemoteHandle& handle) { argument 241 return handle.Get(); 245 const LocalChannelHandle& handle) { 247 return client_.GetChannel()->PushChannelHandle(state_, handle); 252 const BorrowedChannelHandle& handle) { 254 return client_.GetChannel()->PushChannelHandle(state_, handle); 233 PushFileHandle( const BorrowedHandle& handle) argument 244 PushChannelHandle( const LocalChannelHandle& handle) argument 251 PushChannelHandle( const BorrowedChannelHandle& handle) argument 258 PushChannelHandle( const RemoteChannelHandle& handle) argument 263 GetFileHandle(FileReference ref, LocalHandle* handle) argument 268 GetChannelHandle(ChannelReference ref, LocalChannelHandle* handle) argument [all...] |
H A D | service_tests.cpp | 420 LocalHandle handle{kFakeFd}; 423 EXPECT_TRUE(message_->Reply(handle)); 424 handle.Release(); // Make sure we do not close the fake file descriptor. 428 LocalHandle handle{-EINVAL}; 431 EXPECT_TRUE(message_->Reply(handle)); 436 BorrowedHandle handle{kFakeFd}; 439 EXPECT_TRUE(message_->Reply(handle)); 443 BorrowedHandle handle{-EACCES}; 446 EXPECT_TRUE(message_->Reply(handle)); 450 RemoteHandle handle{12 648 LocalHandle handle; local 657 LocalHandle handle; local 667 LocalHandle handle; local 680 LocalChannelHandle handle; local 688 LocalChannelHandle handle; local 700 LocalChannelHandle handle; local [all...] |
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | client_channel.cpp | 19 bool GetLocalFileHandle(int index, LocalHandle* handle) { argument 21 handle->Reset(index); 23 *handle = std::move(response.file_descriptors[index]); 30 bool GetLocalChannelHandle(int index, LocalChannelHandle* handle) { argument 32 *handle = LocalChannelHandle{nullptr, index}; 35 *handle = ChannelManager::Get().CreateHandle( 43 FileReference PushFileHandle(BorrowedHandle handle) { argument 44 if (!handle) 45 return handle.Get(); 46 request.file_descriptors.push_back(std::move(handle)); 50 PushChannelHandle(BorrowedChannelHandle handle) argument 225 LocalHandle handle; local 245 LocalChannelHandle handle; local 254 PushFileHandle(void* transaction_state, const LocalHandle& handle) argument 260 PushFileHandle(void* transaction_state, const BorrowedHandle& handle) argument 266 PushChannelHandle( void* transaction_state, const LocalChannelHandle& handle) argument 272 PushChannelHandle( void* transaction_state, const BorrowedChannelHandle& handle) argument [all...] |
/frameworks/native/services/sensorservice/hidl/ |
H A D | SensorManager.cpp | 89 const native_handle_t* handle, const Callback& _hidl_cb) { 92 size, type, handle); 115 mem.handle(), _hidl_cb); 88 createDirectChannel(::android::SensorManager& manager, size_t size, int type, const native_handle_t* handle, const Callback& _hidl_cb) argument
|
/frameworks/native/services/surfaceflinger/ |
H A D | Client.cpp | 77 void Client::attachLayer(const sp<IBinder>& handle, const sp<Layer>& layer) argument 80 mLayers.add(handle, layer); 95 sp<Layer> Client::getLayerUser(const sp<IBinder>& handle) const 99 wp<Layer> layer(mLayers.valueFor(handle)); 102 ALOGE_IF(lbc==0, "getLayerUser(name=%p) is dead", handle.get()); 138 sp<IBinder>* handle, 165 sp<IBinder>* handle; member in class:android::MessageCreateLayer 179 sp<IBinder>* handle, uint32_t windowType, uint32_t ownerUid, 183 handle(handle), gb 134 createSurface( const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, const sp<IBinder>& parentHandle, uint32_t windowType, uint32_t ownerUid, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) argument 176 MessageCreateLayer(SurfaceFlinger* flinger, const String8& name, Client* client, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, sp<IBinder>* handle, uint32_t windowType, uint32_t ownerUid, sp<IGraphicBufferProducer>* gbp, sp<Layer>* parent) argument 202 destroySurface(const sp<IBinder>& handle) argument 215 getLayerFrameStats(const sp<IBinder>& handle, FrameStats* outStats) const argument [all...] |
/frameworks/webview/chromium/loader/ |
H A D | loader.cpp | 90 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/av/camera/ |
H A D | Camera.cpp | 235 void Camera::releaseRecordingFrameHandle(native_handle_t* handle) argument 240 c->releaseRecordingFrameHandle(handle); 400 void Camera::recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) argument 411 proxylistener->recordingFrameHandleCallbackTimestamp(timestamp, handle); 422 listener->postRecordingFrameHandleTimestamp(timestamp, handle); 425 releaseRecordingFrameHandle(handle); 485 void Camera::RecordingProxy::releaseRecordingFrameHandle(native_handle_t* handle) { argument 487 mCamera->releaseRecordingFrameHandle(handle);
|
H A D | ICamera.cpp | 163 void releaseRecordingFrameHandle(native_handle_t *handle) { argument 167 data.writeNativeHandle(handle); 171 // Close the native handle because camera received a dup copy. 172 native_handle_close(handle); 173 native_handle_delete(handle); 182 for (auto& handle : handles) { 183 data.writeNativeHandle(handle); 187 // Close the native handle because camera received a dup copy. 188 for (auto& handle : handles) { 189 native_handle_close(handle); [all...] |
/frameworks/av/media/libeffects/testlibs/ |
H A D | EffectEqualizer.cpp | 169 extern "C" int EffectRelease(effect_handle_t handle) { argument 170 EqualizerContext * pContext = (EqualizerContext *)handle; 172 ALOGV("EffectLibReleaseEffect %p", handle); 352 // pEqualizer - handle to instance data 524 // pEqualizer - handle to instance data
|
/frameworks/av/media/libstagefright/omx/1.0/ |
H A D | Conversion.h | 105 * \brief Take an fd and create a native handle containing only the given fd. 106 * The created handle will need to be deleted manually with 111 * supplied \p fd is negative, the created native handle will contain no file 114 * If the native handle cannot be created, the return value will be 132 * \brief Extract a file descriptor from a native handle. 173 * returned native handle when it is no longer needed. 389 * \param[out] nh The native handle created to hold the file descriptor inside 560 t->nativeHandle = hidl_handle(l.handle); 574 native_handle_t* handle = t.nativeHandle == nullptr ? local 577 size_t const numInts = 12 + (handle [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | Converter.cpp | 691 native_handle_t* handle = NULL; local 726 if (outbuf->meta()->findPointer("handle", (void**)&handle) && 727 handle != NULL) { 731 outbuf->meta()->setPointer("handle", NULL); 740 buffer->meta()->setPointer("handle", handle); 756 if (!handle) { 777 if (!handle) {
|