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

1234567891011

/frameworks/av/services/soundtrigger/
H A DSoundTriggerHalHidl.cpp142 sound_model_handle_t *handle)
144 if (handle == NULL) {
226 *handle = (sound_model_handle_t)modelId;
227 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle);
228 mSoundModels.add(*handle, model);
238 int SoundTriggerHalHidl::unloadSoundModel(sound_model_handle_t handle) argument
245 sp<SoundModel> model = removeModel(handle);
247 ALOGE("unloadSoundModel model not found for handle %u", handle);
265 int SoundTriggerHalHidl::startRecognition(sound_model_handle_t handle, argument
139 loadSoundModel(struct sound_trigger_sound_model *sound_model, sound_model_callback_t callback, void *cookie, sound_model_handle_t *handle) argument
313 stopRecognition(sound_model_handle_t handle) argument
391 getModel(sound_model_handle_t handle) argument
397 removeModel(sound_model_handle_t handle) argument
[all...]
H A DSoundTriggerHwService.cpp71 descriptor.handle =
73 ALOGI("loaded default module %s, handle %d", descriptor.properties.description,
74 descriptor.handle);
77 mModules.add(descriptor.handle, module);
109 status_t SoundTriggerHwService::attach(const sound_trigger_module_handle_t handle, argument
113 ALOGV("attach module %d", handle);
124 ssize_t index = mModules.indexOfKey(handle);
559 sound_model_handle_t *handle)
561 ALOGV("loadSoundModel() handle");
609 this, handle);
557 loadSoundModel(const sp<IMemory>& modelMemory, sp<ModuleClient> moduleClient, sound_model_handle_t *handle) argument
626 unloadSoundModel(sound_model_handle_t handle) argument
655 startRecognition(sound_model_handle_t handle, const sp<IMemory>& dataMemory) argument
708 stopRecognition(sound_model_handle_t handle) argument
797 getModel( sound_model_handle_t handle) argument
902 Model(sound_model_handle_t handle, audio_session_t session, audio_io_handle_t ioHandle, audio_devices_t device, sound_trigger_sound_model_type_t type, sp<ModuleClient>& moduleClient) argument
961 loadSoundModel(const sp<IMemory>& modelMemory, sound_model_handle_t *handle) argument
977 unloadSoundModel(sound_model_handle_t handle) argument
992 startRecognition(sound_model_handle_t handle, const sp<IMemory>& dataMemory) argument
1008 stopRecognition(sound_model_handle_t handle) argument
[all...]
/frameworks/base/core/java/android/app/
H A DNativeActivity.java92 private native void unloadNativeCode(long handle); argument
93 private native void onStartNative(long handle); argument
94 private native void onResumeNative(long handle); argument
95 private native byte[] onSaveInstanceStateNative(long handle); argument
96 private native void onPauseNative(long handle); argument
97 private native void onStopNative(long handle); argument
98 private native void onConfigurationChangedNative(long handle); argument
99 private native void onLowMemoryNative(long handle); argument
100 private native void onWindowFocusChangedNative(long handle, boolean focused); argument
101 private native void onSurfaceCreatedNative(long handle, Surfac argument
102 onSurfaceChangedNative(long handle, Surface surface, int format, int width, int height) argument
104 onSurfaceRedrawNeededNative(long handle, Surface surface) argument
105 onSurfaceDestroyedNative(long handle) argument
106 onInputQueueCreatedNative(long handle, long queuePtr) argument
107 onInputQueueDestroyedNative(long handle, long queuePtr) argument
108 onContentRectChangedNative(long handle, int x, int y, int w, int h) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_HwParcel.cpp810 size_t handle; local
818 status_t status = parcel->readBuffer(expectedSize, &handle, &ptr);
825 return JHwBlob::NewObject(env, ptr, handle);
/frameworks/base/media/java/android/mtp/
H A DMtpDatabase.java384 private void endSendObject(int handle, boolean succeeded) { argument
385 MtpStorageManager.MtpObject obj = mManager.getObject(handle);
423 private void rescanFile(String path, int handle, int format) { argument
424 // handle abstract playlists separately
443 values.put(MediaColumns.MEDIA_SCANNER_NEW_OBJECT_ID, handle);
451 mMediaScanner.scanMtpFile(path, handle, format);
473 private MtpPropertyList getObjectPropertyList(int handle, int format, int property, argument
482 if (depth == 0xFFFFFFFF && (handle == 0 || handle == 0xFFFFFFFF)) {
484 handle
554 renameFile(int handle, String newName) argument
618 beginMoveObject(int handle, int newParent, int newStorage) argument
692 beginCopyObject(int handle, int newParent, int newStorage) argument
701 endCopyObject(int handle, boolean success) argument
743 setObjectProperty(int handle, int property, long intValue, String stringValue) argument
803 getObjectInfo(int handle, int[] outStorageFormatParent, char[] outName, long[] outCreatedModified) argument
822 getObjectFilePath(int handle, char[] outFilePath, long[] outFileLengthFormat) argument
838 getObjectFormat(int handle) argument
846 beginDeleteObject(int handle) argument
857 endDeleteObject(int handle, boolean success) argument
917 getObjectReferences(int handle) argument
952 setObjectReferences(int handle, int[] references) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowSurfaceController.java76 // However, we need to somehow handle the situation where the cropping would completely hide
459 void deferTransactionUntil(IBinder handle, long frame) { argument
461 mSurfaceControl.deferTransactionUntil(handle, frame);
/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.h341 int32_t handle; member in struct:ADynamicSensorEvent
/frameworks/native/include_sensor/android/
H A Dsensor.h341 int32_t handle; member in struct:ADynamicSensorEvent
/frameworks/native/libs/binder/
H A DBpBinder.cpp109 BpBinder* BpBinder::create(int32_t handle) { argument
135 return new BpBinder(handle, trackedUid);
138 BpBinder::BpBinder(int32_t handle, int32_t trackedUid) argument
139 : mHandle(handle)
145 ALOGV("Creating BpBinder %p handle %d\n", this, mHandle);
148 IPCThreadState::self()->incWeakHandle(handle, this);
243 ALOGV("Requesting death notification: %p handle %d\n", this, mHandle);
278 ALOGV("Clearing death notification: %p handle %d\n", this, mHandle);
294 ALOGV("Sending obituary for proxy %p handle %d, mObitsSent=%s\n",
303 ALOGV("Clearing sent death notification: %p handle
[all...]
/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.cpp154 Status<FileReference> Message::PushFileHandle(const LocalHandle& handle) { argument
157 return svc->endpoint()->PushFileHandle(this, handle);
163 Status<FileReference> Message::PushFileHandle(const BorrowedHandle& handle) { argument
166 return svc->endpoint()->PushFileHandle(this, handle);
172 Status<FileReference> Message::PushFileHandle(const RemoteHandle& handle) { argument
175 return svc->endpoint()->PushFileHandle(this, handle);
182 const LocalChannelHandle& handle) {
185 return svc->endpoint()->PushChannelHandle(this, handle);
192 const BorrowedChannelHandle& handle) {
195 return svc->endpoint()->PushChannelHandle(this, handle);
181 PushChannelHandle( const LocalChannelHandle& handle) argument
191 PushChannelHandle( const BorrowedChannelHandle& handle) argument
201 PushChannelHandle( const RemoteChannelHandle& handle) argument
211 GetFileHandle(FileReference ref, LocalHandle* handle) argument
227 GetChannelHandle(ChannelReference ref, LocalChannelHandle* handle) argument
281 Reply(const LocalHandle& handle) argument
299 Reply(const BorrowedHandle& handle) argument
317 Reply(const RemoteHandle& handle) argument
335 Reply(const LocalChannelHandle& handle) argument
346 Reply(const BorrowedChannelHandle& handle) argument
357 Reply(const RemoteChannelHandle& handle) argument
[all...]
/frameworks/native/libs/vr/libpdx_uds/
H A Dipc_helper.cpp53 // handle transmissions interrupted by signals.
106 // to handle transmissions interrupted by signals as well as the case when
241 Status<FileReference> SendPayload::PushFileHandle(const LocalHandle& handle) { argument
242 if (handle) {
244 file_handles_.push_back(handle.Get());
247 return handle.Get();
252 const BorrowedHandle& handle) {
253 if (handle) {
255 file_handles_.push_back(handle.Get());
258 return handle
251 PushFileHandle( const BorrowedHandle& handle) argument
262 PushFileHandle(const RemoteHandle& handle) argument
352 GetFileHandle(FileReference ref, LocalHandle* handle) argument
[all...]
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(
61 Status<FileReference> PushFileHandle(BorrowedHandle handle) { argument
62 if (!handle)
63 return handle.Get();
64 response.file_descriptors.push_back(std::move(handle));
68 PushChannelHandle(BorrowedChannelHandle handle) argument
473 BorrowedHandle handle; local
665 MessageReplyChannelHandle( Message* message, const LocalChannelHandle& handle) argument
674 MessageReplyChannelHandle( Message* message, const BorrowedChannelHandle& handle) argument
683 MessageReplyChannelHandle( Message* message, const RemoteChannelHandle& handle) argument
700 PushFileHandle(Message* message, const LocalHandle& handle) argument
706 PushFileHandle(Message* message, const BorrowedHandle& handle) argument
712 PushFileHandle(Message* , const RemoteHandle& handle) argument
717 PushChannelHandle( Message* message, const LocalChannelHandle& handle) argument
723 PushChannelHandle( Message* message, const BorrowedChannelHandle& handle) argument
729 PushChannelHandle( Message* , const RemoteChannelHandle& handle) argument
735 LocalHandle handle; local
743 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/native/services/sensorservice/
H A DSensorEventConnection.cpp105 bool SensorService::SensorEventConnection::addSensor(int32_t handle) { argument
107 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
110 mSensorInfo.indexOfKey(handle) >= 0) {
113 mSensorInfo.add(handle, FlushInfo());
117 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) { argument
119 if (mSensorInfo.removeItem(handle) >= 0) {
125 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const {
127 return mSensorInfo.indexOfKey(handle) >= 0;
138 const int handle = mSensorInfo.keyAt(i); local
139 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
151 setFirstFlushPending(int32_t handle, bool value) argument
182 const int handle = mSensorInfo.keyAt(i); local
212 incrementPendingFlushCount(int32_t handle) argument
431 const int handle = mSensorInfo.keyAt(i); local
554 enableDisable( int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags) argument
569 setEventRate( int handle, nsecs_t samplingPeriodNs) argument
579 configureChannel(int handle, int rateLevel) argument
[all...]
/frameworks/av/media/libeffects/lvm/wrapper/Reverb/
H A DEffectReverb.cpp298 extern "C" int EffectRelease(effect_handle_t handle){ argument
299 ReverbContext * pContext = (ReverbContext *)handle;
301 ALOGV("\tEffectRelease %p", handle);
463 LvmStatus = LVREV_Process(pContext->hInstance, /* Instance handle */
853 /* Init sets the instance handle */
1530 // pContext - handle to instance data
1568 // pContext - handle to instance data
1790 // 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);
963 native_handle_t* handle = nullptr; local
970 handle = metadata->pHandle;
974 if (handle != nullptr) {
991 // Frame contains a VideoNativeHandleMetadata. Send the handle back to camera.
992 releaseRecordingFrameHandle(handle);
997 mInflightReturnedHandles.push_back(handle);
1190 void CameraSource::releaseRecordingFrameHandle(native_handle_t* handle) { argument
109 postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
1218 recordingFrameHandleCallbackTimestamp(int64_t timestampUs, native_handle_t* handle) argument
1268 native_handle_t* handle = handles[i]; local
1422 recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpServer.cpp252 void MtpServer::sendObjectAdded(MtpObjectHandle handle) { argument
253 ALOGV("sendObjectAdded %d\n", handle);
254 sendEvent(MTP_EVENT_OBJECT_ADDED, handle);
257 void MtpServer::sendObjectRemoved(MtpObjectHandle handle) { argument
258 ALOGV("sendObjectRemoved %d\n", handle);
259 sendEvent(MTP_EVENT_OBJECT_REMOVED, handle);
287 void MtpServer::addEditObject(MtpObjectHandle handle, MtpStringBuffer& path, argument
289 ObjectEdit* edit = new ObjectEdit(handle, path, size, format, fd);
293 MtpServer::ObjectEdit* MtpServer::getEditObject(MtpObjectHandle handle) { argument
297 if (edit->mHandle == handle) retur
302 removeEditObject(MtpObjectHandle handle) argument
971 MtpObjectHandle handle = mDatabase->beginSendObject((const char*)path, format, local
1122 MtpObjectHandle handle = mDatabase->beginCopyObject(objectHandle, parent, storageID); local
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp865 audio_patch_handle_t *handle)
875 return mAudioPolicyManager->createAudioPatch(patch, handle,
879 status_t AudioPolicyService::releaseAudioPatch(audio_patch_handle_t handle) argument
889 return mAudioPolicyManager->releaseAudioPatch(handle,
959 audio_patch_handle_t *handle)
966 return mAudioPolicyManager->startAudioSource(source, attributes, handle,
970 status_t AudioPolicyService::stopAudioSource(audio_patch_handle_t handle) argument
977 return mAudioPolicyManager->stopAudioSource(handle);
864 createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle) argument
957 startAudioSource(const struct audio_port_config *source, const audio_attributes_t *attributes, audio_patch_handle_t *handle) argument
H A DAudioPolicyService.cpp222 audio_patch_handle_t *handle,
225 return mAudioCommandThread->createAudioPatchCommand(patch, handle, delayMs);
228 status_t AudioPolicyService::clientReleaseAudioPatch(audio_patch_handle_t handle, argument
231 return mAudioCommandThread->releaseAudioPatchCommand(handle, delayMs);
1002 audio_patch_handle_t *handle,
1011 data->mHandle = *handle;
1017 *handle = data->mHandle;
1022 status_t AudioPolicyService::AudioCommandThread::releaseAudioPatchCommand(audio_patch_handle_t handle, argument
1028 data->mHandle = handle;
1208 audio_patch_handle_t handle; local
221 clientCreateAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument
1000 createAudioPatchCommand( const struct audio_patch *patch, audio_patch_handle_t *handle, int delayMs) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp513 void CameraClient::releaseRecordingFrameHandle(native_handle_t *handle) { argument
514 if (handle == nullptr) return;
526 ALOGE("%s: %d: No callback buffer available. Dropping a native handle.", __FUNCTION__,
528 native_handle_close(handle);
529 native_handle_delete(handle);
534 native_handle_close(handle);
535 native_handle_delete(handle);
542 metadata->pHandle = handle;
556 for (auto& handle : handles) {
581 metadata->pHandle = handle;
935 native_handle_t* handle = nullptr; local
1093 native_handle_t* handle = nullptr; local
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DCameraProviderManager.cpp103 // API1 app doesn't handle logical and physical camera devices well. So
993 native_handle_t* handle = native_handle_create(1,0); local
994 handle->data[0] = fd;
995 hardware::Return<Status> s = mInterface->dumpState(handle);
996 native_handle_delete(handle);
1107 native_handle_t* handle = native_handle_create(1,0); local
1108 handle->data[0] = fd;
1109 auto ret = mInterface->dumpState(handle);
1110 native_handle_delete(handle);
/frameworks/av/services/camera/libcameraservice/device1/
H A DCameraHardwareInterface.cpp94 sp<CameraHeapMemory> camMem(static_cast<CameraHeapMemory *>(mem->handle));
167 sp<CameraHeapMemory> heapMem(static_cast<CameraHeapMemory *>(mem->handle));
188 static_cast<CameraHeapMemory *>(mHidlMemPoolMap.at(hidl_msg.data)->handle));
210 buffer_handle_t& buf = anb->handle;
244 buf = (pair.first) ? anb->handle : nullptr;
582 // Caching the handle here because md->pHandle will be subject to HAL's edit
609 // Caching the handle here because md->pHandle will be subject to HAL's edit
724 native_handle_t* handle = native_handle_create(1,0); local
725 handle->data[0] = fd;
726 Status s = mHidlDevice->dumpState(handle);
[all...]

Completed in 447 milliseconds

1234567891011