Searched defs:handle (Results 176 - 200 of 253) sorted by relevance

1234567891011

/frameworks/base/core/jni/
H A Dandroid_os_HwParcel.cpp817 size_t handle; local
825 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr);
832 return JHwBlob::NewObject(env, ptr, handle);
H A Dandroid_app_NativeActivity.cpp282 void* handle = OpenNativeLibrary(env, local
290 if (handle == nullptr) {
300 funcPtr = NativeBridgeGetTrampoline(handle, funcStr, NULL, 0);
302 funcPtr = dlsym(handle, funcStr);
305 code.reset(new NativeCode(handle, (ANativeActivity_createFunc*)funcPtr));
388 unloadNativeCode_native(JNIEnv* env, jobject clazz, jlong handle) argument
393 if (handle != 0) {
394 NativeCode* code = (NativeCode*)handle;
400 onStart_native(JNIEnv* env, jobject clazz, jlong handle) argument
405 if (handle !
414 onResume_native(JNIEnv* env, jobject clazz, jlong handle) argument
428 onSaveInstanceState_native(JNIEnv* env, jobject clazz, jlong handle) argument
457 onPause_native(JNIEnv* env, jobject clazz, jlong handle) argument
471 onStop_native(JNIEnv* env, jobject clazz, jlong handle) argument
485 onConfigurationChanged_native(JNIEnv* env, jobject clazz, jlong handle) argument
499 onLowMemory_native(JNIEnv* env, jobject clazz, jlong handle) argument
513 onWindowFocusChanged_native(JNIEnv* env, jobject clazz, jlong handle, jboolean focused) argument
527 onSurfaceCreated_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
549 onSurfaceChanged_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface, jint format, jint width, jint height) argument
592 onSurfaceRedrawNeeded_native(JNIEnv* env, jobject clazz, jlong handle) argument
606 onSurfaceDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jobject surface) argument
622 onInputQueueCreated_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
637 onInputQueueDestroyed_native(JNIEnv* env, jobject clazz, jlong handle, jlong queuePtr) argument
652 onContentRectChanged_native(JNIEnv* env, jobject clazz, jlong handle, jint x, jint y, jint w, jint h) argument
[all...]
H A Dandroid_hardware_Camera.cpp80 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle);
356 void JNICameraContext::postRecordingFrameHandleTimestamp(nsecs_t, native_handle_t* handle) { argument
361 mCamera->releaseRecordingFrameHandle(handle);
363 native_handle_close(handle);
364 native_handle_delete(handle);
377 for (auto& handle : handles) {
378 native_handle_close(handle);
379 native_handle_delete(handle);
H A Dandroid_hardware_SensorManager.cpp56 jfieldID handle; member in struct:__anon1068::SensorOffsets
99 sensorOffsets.handle = GetFieldIDOrDie(_env, sensorClass, "mHandle", "I");
171 env->SetIntField(sensor, sensorOffsets.handle, nativeSensor.getHandle());
241 native_handle_t *handle = native_handle_init(ashmemHandle, 1, 0); local
242 handle->data[0] = fd;
243 nativeHandle = handle;
348 value[1] = float(buffer[i].dynamic_sensor_meta.handle);
446 static jint nativeEnableSensor(JNIEnv *env, jclass clazz, jlong eventQ, jint handle, jint rate_us, argument
449 return receiver->getSensorEventQueue()->enableSensor(handle, rate_us, maxBatchReportLatency,
453 static jint nativeDisableSensor(JNIEnv *env, jclass clazz, jlong eventQ, jint handle) { argument
469 nativeInjectSensorData(JNIEnv *env, jclass clazz, jlong eventQ, jint handle, jfloatArray values, jint accuracy, jlong timestamp) argument
[all...]
H A Dandroid_opengl_EGL14.cpp113 jlong handle = _env->CallLongMethod(obj, mid); local
114 return reinterpret_cast<void*>(handle);
118 toEGLHandle(JNIEnv *_env, jclass cls, jmethodID con, void * handle) { argument
120 (EGLContext)handle == EGL_NO_CONTEXT) {
125 (EGLDisplay)handle == EGL_NO_DISPLAY) {
130 (EGLSurface)handle == EGL_NO_SURFACE) {
134 return _env->NewObject(cls, con, reinterpret_cast<jlong>(handle));
/frameworks/base/media/java/android/mtp/
H A DMtpDatabase.java385 private void endSendObject(String path, int handle, int format, boolean succeeded) { argument
387 // handle abstract playlists separately
406 values.put(MediaColumns.MEDIA_SCANNER_NEW_OBJECT_ID, handle);
414 mMediaScanner.scanMtpFile(path, handle, format);
417 deleteFile(handle);
721 private MtpPropertyList getObjectPropertyList(int handle, int format, int property, argument
730 if (format == 0 && handle != 0 && handle != 0xffffffff) {
732 format = getObjectFormat(handle);
751 return propertyGroup.getPropertyList(handle, forma
754 renameFile(int handle, String newName) argument
841 setObjectProperty(int handle, int property, long intValue, String stringValue) argument
902 getObjectInfo(int handle, int[] outStorageFormatParent, char[] outName, long[] outCreatedModified) argument
942 getObjectFilePath(int handle, char[] outFilePath, long[] outFileLengthFormat) argument
977 getObjectFormat(int handle) argument
997 deleteFile(int handle) argument
1059 getObjectReferences(int handle) argument
1086 setObjectReferences(int handle, int[] references) argument
[all...]
/frameworks/base/telecomm/java/android/telecom/
H A DParcelableCall.java73 Uri handle,
99 mHandle = handle;
168 * The presentation requirements for the handle. See {@link TelecomManager} for valid values.
316 Uri handle = source.readParcelable(classLoader);
347 handle,
64 ParcelableCall( String id, int state, DisconnectCause disconnectCause, List<String> cannedSmsResponses, int capabilities, int properties, int supportedAudioRoutes, long connectTimeMillis, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, GatewayInfo gatewayInfo, PhoneAccountHandle accountHandle, boolean isVideoCallProviderChanged, IVideoProvider videoCallProvider, boolean isRttCallChanged, ParcelableRttCall rttCall, String parentCallId, List<String> childCallIds, StatusHints statusHints, int videoState, List<String> conferenceableCallIds, Bundle intentExtras, Bundle extras, long creationTimeMillis) argument
/frameworks/native/include/android/
H A Dsensor.h249 int32_t handle; member in struct:ADynamicSensorEvent
/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...]
/frameworks/native/libs/vr/libpdx/
H A Dservice.cpp157 Status<FileReference> Message::PushFileHandle(const LocalHandle& handle) { argument
160 return svc->endpoint()->PushFileHandle(this, handle);
166 Status<FileReference> Message::PushFileHandle(const BorrowedHandle& handle) { argument
169 return svc->endpoint()->PushFileHandle(this, handle);
175 Status<FileReference> Message::PushFileHandle(const RemoteHandle& handle) { argument
178 return svc->endpoint()->PushFileHandle(this, handle);
185 const LocalChannelHandle& handle) {
188 return svc->endpoint()->PushChannelHandle(this, handle);
195 const BorrowedChannelHandle& handle) {
198 return svc->endpoint()->PushChannelHandle(this, handle);
184 PushChannelHandle( const LocalChannelHandle& handle) argument
194 PushChannelHandle( const BorrowedChannelHandle& handle) argument
204 PushChannelHandle( const RemoteChannelHandle& handle) argument
214 GetFileHandle(FileReference ref, LocalHandle* handle) argument
230 GetChannelHandle(ChannelReference ref, LocalChannelHandle* handle) argument
284 Reply(const LocalHandle& handle) argument
302 Reply(const BorrowedHandle& handle) argument
320 Reply(const RemoteHandle& handle) argument
338 Reply(const LocalChannelHandle& handle) argument
349 Reply(const BorrowedChannelHandle& handle) argument
360 Reply(const RemoteChannelHandle& handle) argument
[all...]
/frameworks/native/libs/vr/libpdx_uds/
H A Dservice_endpoint.cpp35 bool GetLocalFileHandle(int index, LocalHandle* handle) { argument
37 handle->Reset(index);
39 *handle = std::move(request.file_descriptors[index]);
46 bool GetLocalChannelHandle(int index, LocalChannelHandle* handle) { argument
48 *handle = LocalChannelHandle{nullptr, index};
51 *handle = ChannelManager::Get().CreateHandle(
59 Status<FileReference> PushFileHandle(BorrowedHandle handle) { argument
60 if (!handle)
61 return handle.Get();
62 response.file_descriptors.push_back(std::move(handle));
66 PushChannelHandle(BorrowedChannelHandle handle) argument
468 BorrowedHandle handle; local
477 BorrowedHandle handle; local
651 MessageReplyChannelHandle( Message* message, const LocalChannelHandle& handle) argument
660 MessageReplyChannelHandle( Message* message, const BorrowedChannelHandle& handle) argument
669 MessageReplyChannelHandle( Message* message, const RemoteChannelHandle& handle) argument
686 PushFileHandle(Message* message, const LocalHandle& handle) argument
692 PushFileHandle(Message* message, const BorrowedHandle& handle) argument
698 PushFileHandle(Message* , const RemoteHandle& handle) argument
703 PushChannelHandle( Message* message, const LocalChannelHandle& handle) argument
709 PushChannelHandle( Message* message, const BorrowedChannelHandle& handle) argument
715 PushChannelHandle( Message* , const RemoteChannelHandle& handle) argument
721 LocalHandle handle; local
729 LocalChannelHandle handle; local
[all...]
/frameworks/native/services/inputflinger/host/
H A DInputDriver.cpp186 // TODO: save this device handle
190 void InputDriver::unregisterDevice(input_device_handle_t* handle) { argument
191 delete handle;
208 ALOGD("report_event %p for handle %p", report, d);
353 void unregister_device(input_host_t* host, input_device_handle_t* handle) { argument
355 driver->unregisterDevice(handle);
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp280 extern "C" int EffectRelease(effect_handle_t handle){ argument
281 ReverbContext * pContext = (ReverbContext *)handle;
283 ALOGV("\tEffectRelease %p", handle);
475 LvmStatus = LVREV_Process(pContext->hInstance, /* Instance handle */
809 /* Init sets the instance handle */
1486 // pContext - handle to instance data
1524 // pContext - handle to instance data
1746 // pContext - handle to instance data
/frameworks/av/media/libeffects/testlibs/
H A DEffectReverb.c157 int EffectRelease(effect_handle_t handle) { argument
158 reverb_module_t *pRvbModule = (reverb_module_t *)handle;
160 ALOGV("EffectLibReleaseEffect %p", handle);
161 if (handle == NULL) {
742 * pReverb - handle to instance data
1027 * pReverb - handle to instance data
/frameworks/av/media/libstagefright/
H A DCameraSource.cpp59 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle);
110 native_handle_t* handle) {
113 source->recordingFrameHandleCallbackTimestamp(timestamp/1000, handle);
961 native_handle_t* handle = nullptr; local
968 handle = metadata->pHandle;
972 if (handle != nullptr) {
981 // Frame contains a VideoNativeHandleMetadata. Send the handle back to camera.
982 releaseRecordingFrameHandle(handle);
987 mInflightReturnedHandles.push_back(handle);
1159 void CameraSource::releaseRecordingFrameHandle(native_handle_t* handle) { argument
109 postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
1187 recordingFrameHandleCallbackTimestamp(int64_t timestampUs, native_handle_t* handle) argument
1237 native_handle_t* handle = handles[i]; local
1391 recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpServer.cpp268 void MtpServer::sendObjectAdded(MtpObjectHandle handle) { argument
269 ALOGV("sendObjectAdded %d\n", handle);
270 sendEvent(MTP_EVENT_OBJECT_ADDED, handle);
273 void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { argument
274 ALOGV("sendObjectRemoved %d\n", handle);
275 sendEvent(MTP_EVENT_OBJECT_REMOVED, handle);
303 void MtpServer::addEditObject(MtpObjectHandle handle, MtpString& path, argument
305 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd);
309 MtpServer::ObjectEdit* MtpServer::getEditObject(MtpObjectHandle handle) { argument
313 if (edit->mHandle == handle) retur
318 removeEditObject(MtpObjectHandle handle) argument
981 MtpObjectHandle handle = mDatabase->beginSendObject((const char*)path, local
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyService.cpp208 audio_patch_handle_t *handle,
211 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs);
214 status_t AudioPolicyService::clientReleaseAudioPatch(audio_patch_handle_t handle, argument
217 return mAudioCommandThread->releaseAudioPatchCommand(handle, delayMs);
736 audio_patch_handle_t *handle,
745 data->mHandle = *handle;
751 *handle = data->mHandle;
756 status_t AudioPolicyService::AudioCommandThread::releaseAudioPatchCommand(audio_patch_handle_t handle, argument
762 data->mHandle = handle;
943 audio_patch_handle_t handle; local
207 clientCreateAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument
734 createAudioPatchCommand( const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCamera2Client.cpp1119 // Right now camera device cannot handle configureStream failure gracefully
1254 void Camera2Client::releaseRecordingFrameHandle(native_handle_t *handle) { argument
1255 (void)handle;
H A DCameraClient.cpp504 void CameraClient::releaseRecordingFrameHandle(native_handle_t *handle) { argument
505 if (handle == nullptr) return;
517 ALOGE("%s: %d: No callback buffer available. Dropping a native handle.", __FUNCTION__,
519 native_handle_close(handle);
520 native_handle_delete(handle);
525 native_handle_close(handle);
526 native_handle_delete(handle);
532 metadata->pHandle = handle;
542 for (auto& handle : handles) {
566 metadata->pHandle = handle;
919 native_handle_t* handle = nullptr; local
1076 native_handle_t* handle = nullptr; local
[all...]
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp105 sp<CameraHeapMemory> camMem(static_cast<CameraHeapMemory *>(mem->handle));
158 sp<CameraHeapMemory> mem(static_cast<CameraHeapMemory *>(mHidlMemPoolMap.at(data)->handle));
178 static_cast<CameraHeapMemory *>(mHidlMemPoolMap.at(hidl_msg.data)->handle));
200 buffer_handle_t& buf = anb->handle;
234 buf = (pair.first) ? anb->handle : nullptr;
618 // Caching the handle here because md->pHandle will be subject to HAL's edit
648 // Caching the handle here because md->pHandle will be subject to HAL's edit
788 native_handle_t* handle = native_handle_create(1,0); local
789 handle->data[0] = fd;
790 Status s = mHidlDevice->dumpState(handle);
[all...]
/frameworks/base/core/java/android/hardware/
H A DSystemSensorManager.java478 * Find the difference of two List<Sensor> assuming List are sorted by handle of sensor,
479 * assuming the input list is already sorted by handle. Inputs are ol and nl; outputs are
630 private static native int nativeEnableSensor(long eventQ, int handle, int rateUs, argument
632 private static native int nativeDisableSensor(long eventQ, int handle); argument
635 private static native int nativeInjectSensorData(long eventQ, int handle, argument
663 int handle = sensor.getHandle();
664 if (mActiveSensors.get(handle)) return false;
667 mActiveSensors.put(handle, true);
683 int handle = mActiveSensors.keyAt(i);
684 Sensor sensor = mManager.mHandleToSensor.get(handle);
748 injectSensorDataBase(int handle, float[] values, int accuracy, long timestamp) argument
758 dispatchSensorEvent(int handle, float[] values, int accuracy, long timestamp) argument
760 dispatchFlushCompleteEvent(int handle) argument
762 dispatchAdditionalInfoEvent( int handle, int type, int serial, float[] floatValues, int[] intValues) argument
800 dispatchSensorEvent(int handle, float[] values, int inAccuracy, long timestamp) argument
836 dispatchFlushCompleteEvent(int handle) argument
851 dispatchAdditionalInfoEvent( int handle, int type, int serial, float[] floatValues, int[] intValues) argument
895 dispatchSensorEvent(int handle, float[] values, int accuracy, long timestamp) argument
924 dispatchFlushCompleteEvent(int handle) argument
933 injectSensorData(int handle, float[] values,int accuracy, long timestamp) argument
938 dispatchSensorEvent(int handle, float[] values, int accuracy, long timestamp) argument
943 dispatchFlushCompleteEvent(int handle) argument
[all...]
/frameworks/base/core/java/android/view/
H A DSurfaceView.java1205 public void deferTransactionUntil(IBinder handle, long frame) { argument
1206 super.deferTransactionUntil(handle, frame);
1207 mBackgroundControl.deferTransactionUntil(handle, frame);
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDatabase.cpp117 MtpObjectHandle handle,
136 virtual MtpResponseCode getObjectPropertyValue(MtpObjectHandle handle,
140 virtual MtpResponseCode setObjectPropertyValue(MtpObjectHandle handle,
152 virtual MtpResponseCode getObjectPropertyList(MtpObjectHandle handle,
157 virtual MtpResponseCode getObjectInfo(MtpObjectHandle handle,
160 virtual void* getThumbnail(MtpObjectHandle handle, size_t& outThumbSize);
162 virtual MtpResponseCode getObjectFilePath(MtpObjectHandle handle,
166 virtual MtpResponseCode deleteFile(MtpObjectHandle handle);
171 virtual MtpObjectHandleList* getObjectReferences(MtpObjectHandle handle);
173 virtual MtpResponseCode setObjectReferences(MtpObjectHandle handle,
252 endSendObject(const char* path, MtpObjectHandle handle, MtpObjectFormat format, bool succeeded) argument
367 getObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument
545 setObjectPropertyValue(MtpObjectHandle handle, MtpObjectProperty property, MtpDataPacket& packet) argument
683 getObjectPropertyList(MtpObjectHandle handle, uint32_t format, uint32_t property, int groupCode, int depth, MtpDataPacket& packet) argument
808 getObjectInfo(MtpObjectHandle handle, MtpObjectInfo& info) argument
899 getThumbnail(MtpObjectHandle handle, size_t& outThumbSize) argument
962 getObjectFilePath(MtpObjectHandle handle, MtpString& outFilePath, int64_t& outFileLength, MtpObjectFormat& outFormat) argument
988 deleteFile(MtpObjectHandle handle) argument
1061 getObjectReferences(MtpObjectHandle handle) argument
1079 setObjectReferences(MtpObjectHandle handle, MtpObjectHandleList* references) argument
[all...]
H A Dandroid_mtp_MtpDevice.cpp712 JNIEnv *env, jobject thiz, jint handle, jint format) {
731 if (!device->getObjectPropValue(handle, property.get())) {
711 android_mtp_MtpDevice_get_object_size_long( JNIEnv *env, jobject thiz, jint handle, jint format) argument
/frameworks/base/services/core/java/com/android/server/
H A DLockSettingsStorage.java431 public void writeSyntheticPasswordState(int userId, long handle, String name, byte[] data) { argument
432 writeFile(getSynthenticPasswordStateFilePathForUser(userId, handle, name), data);
435 public byte[] readSyntheticPasswordState(int userId, long handle, String name) { argument
436 return readFile(getSynthenticPasswordStateFilePathForUser(userId, handle, name));
439 public void deleteSyntheticPasswordState(int userId, long handle, String name) { argument
440 String path = getSynthenticPasswordStateFilePathForUser(userId, handle, name);
460 protected String getSynthenticPasswordStateFilePathForUser(int userId, long handle, argument
463 String baseName = String.format("%016x.%s", handle, name);

Completed in 665 milliseconds

1234567891011