Searched defs:handle (Results 151 - 175 of 253) sorted by relevance

1234567891011

/frameworks/av/services/soundtrigger/
H A DSoundTriggerHalHidl.cpp72 sound_model_handle_t *handle)
74 if (handle == NULL) {
130 *handle = (sound_model_handle_t)modelId;
131 sp<SoundModel> model = new SoundModel(*handle, callback, cookie, halHandle);
132 mSoundModels.add(*handle, model);
142 int SoundTriggerHalHidl::unloadSoundModel(sound_model_handle_t handle) argument
149 sp<SoundModel> model = removeModel(handle);
151 ALOGE("unloadSoundModel model not found for handle %u", handle);
169 int SoundTriggerHalHidl::startRecognition(sound_model_handle_t handle, argument
69 loadSoundModel(struct sound_trigger_sound_model *sound_model, sound_model_callback_t callback, void *cookie, sound_model_handle_t *handle) argument
206 stopRecognition(sound_model_handle_t handle) argument
278 getModel(sound_model_handle_t handle) argument
284 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);
108 status_t SoundTriggerHwService::attach(const sound_trigger_module_handle_t handle, argument
112 ALOGV("attach module %d", handle);
122 ssize_t index = mModules.indexOfKey(handle);
567 sound_model_handle_t *handle)
569 ALOGV("loadSoundModel() handle");
606 this, handle);
565 loadSoundModel(const sp<IMemory>& modelMemory, sp<ModuleClient> moduleClient, sound_model_handle_t *handle) argument
627 unloadSoundModel(sound_model_handle_t handle) argument
634 unloadSoundModel_l(sound_model_handle_t handle) argument
653 startRecognition(sound_model_handle_t handle, const sp<IMemory>& dataMemory) argument
706 stopRecognition(sound_model_handle_t handle) argument
801 getModel( sound_model_handle_t handle) argument
906 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
964 loadSoundModel(const sp<IMemory>& modelMemory, sound_model_handle_t *handle) argument
979 unloadSoundModel(sound_model_handle_t handle) argument
993 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/service/trust/
H A DTrustAgentService.java219 long handle = data.getLong(EXTRA_TOKEN_HANDLE);
221 onEscrowTokenAdded(token, handle, user);
226 long handle = data.getLong(EXTRA_TOKEN_HANDLE);
228 onEscrowTokenStateReceived(handle, tokenState);
233 long handle = data.getLong(EXTRA_TOKEN_HANDLE);
235 onEscrowTokenRemoved(handle, success);
310 * @param handle the handle to the corresponding internal synthetic password. A user is unlocked
311 * by presenting both handle and escrow token.
315 public void onEscrowTokenAdded(byte[] token, long handle, UserHandl argument
325 onEscrowTokenStateReceived(long handle, @TokenState int tokenState) argument
335 onEscrowTokenRemoved(long handle, boolean successful) argument
501 isEscrowTokenActive(long handle, UserHandle user) argument
524 removeEscrowToken(long handle, UserHandle user) argument
546 unlockUserWithToken(long handle, byte[] token, UserHandle user) argument
625 onEscrowTokenAdded(byte[] token, long handle, UserHandle user) argument
633 onTokenStateReceived(long handle, int tokenState) argument
640 onEscrowTokenRemoved(long handle, boolean successful) argument
[all...]
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java441 // TODO: handle existing apps installed in ASEC; currently assumes
641 NativeLibraryHelper.Handle handle = null;
643 handle = NativeLibraryHelper.Handle.create(pkg);
644 return calculateInstalledSize(pkg, handle, isForwardLocked, abiOverride);
646 IoUtils.closeQuietly(handle);
650 public static long calculateInstalledSize(PackageLite pkg, NativeLibraryHelper.Handle handle, argument
665 sizeBytes += NativeLibraryHelper.sumNativeBinariesWithOverride(handle, abiOverride);
/frameworks/base/media/java/android/mtp/
H A DMtpDevice.java199 * @param objectHandle handle of the object to read
214 * @param objectHandle handle of the object to read
236 * @param objectHandle handle of the object to read
255 * @param objectHandle handle of the object to read
275 * @param objectHandle the handle of the object
287 * @param objectHandle handle of the object to delete
295 * Retrieves the object handle for the parent of an object on the device.
297 * @param objectHandle handle of the object to query
298 * @return the parent's handle, or zero if it is in the root of the storage
307 * @param objectHandle handle o
411 getObjectSizeLong(int handle, int format) argument
439 native_reap_event_request(int handle) argument
440 native_discard_event_request(int handle) argument
441 native_get_object_size_long(int handle, int format) argument
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DValidateNotificationPeople.java87 // maps raw person handle to resolved person object
243 for (String handle : people) {
244 if (TextUtils.isEmpty(handle)) continue;
247 final String cacheKey = getCacheKey(context.getUserId(), handle);
250 pendingLookups.add(handle);
275 private String getCacheKey(int userId, String handle) { argument
276 return Integer.toString(userId) + ":" + handle;
448 for (final String handle: mPendingLookups) {
450 final Uri uri = Uri.parse(handle);
452 if (DEBUG) Slog.d(TAG, "checking telephone URI: " + handle);
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c330 data.payload.handle = target;
353 writebuf.txn.target.handle = target;
522 void bio_put_ref(struct binder_io *bio, uint32_t handle) argument
526 if (handle)
536 obj->handle = handle;
653 return obj->handle;
/frameworks/native/libs/ui/
H A DGraphicBuffer.cpp56 handle = NULL;
86 GraphicBuffer::GraphicBuffer(const native_handle_t* handle, argument
93 mInitCheck = initWithHandle(handle, method, width, height, format,
99 if (handle) {
107 mBufferMapper.freeBuffer(handle);
110 allocator.free(handle);
112 handle = NULL;
137 if (handle &&
145 if (handle) {
147 allocator.free(handle);
185 initWithHandle(const native_handle_t* handle, HandleWrapMethod method, uint32_t width, uint32_t height, PixelFormat format, uint32_t layerCount, uint64_t usage, uint32_t stride) argument
217 ANativeWindowBuffer::handle = handle; member in class:android::ANativeWindowBuffer
[all...]
/frameworks/native/libs/vr/libbufferhubqueue/
H A Dbuffer_hub_queue_client.cpp197 // transition that we have to handle because edge triggered poll events
363 ProducerQueue::ProducerQueue(LocalChannelHandle handle) argument
364 : BASE(std::move(handle)) {
418 "return one and only one buffer handle.");
482 ConsumerQueue::ConsumerQueue(LocalChannelHandle handle, bool ignore_on_import) argument
483 : BufferHubQueue(std::move(handle)), ignore_on_import_(ignore_on_import) {
/frameworks/native/libs/vr/libpdx_uds/
H A Dipc_helper.cpp50 // handle transmissions interrupted by signals.
103 // to handle transmissions interrupted by signals as well as the case when
227 Status<FileReference> SendPayload::PushFileHandle(const LocalHandle& handle) { argument
228 if (handle) {
230 file_handles_.push_back(handle.Get());
233 return handle.Get();
238 const BorrowedHandle& handle) {
239 if (handle) {
241 file_handles_.push_back(handle.Get());
244 return handle
237 PushFileHandle( const BorrowedHandle& handle) argument
248 PushFileHandle(const RemoteHandle& handle) argument
343 GetFileHandle(FileReference ref, LocalHandle* handle) argument
[all...]
/frameworks/native/services/sensorservice/
H A DSensorDevice.cpp100 // system server, it will kill itself. There is no intention to handle the poll result,
123 void SensorDevice::handleDynamicSensorConnection(int handle, bool connected) { argument
127 mActivationCount.add(handle, model);
128 checkReturn(mSensors->activate(handle, 0 /* enabled */));
130 mActivationCount.removeItem(handle);
143 int32_t handle = s.handle; local
144 const Info& info = mActivationCount.valueFor(handle);
147 result.appendFormat("0x%08x) active-count = %zu; ", handle, info.batchParams.size());
225 void SensorDevice::autoDisable(void *ident, int handle) { argument
231 activate(void* ident, int handle, int enabled) argument
312 batch( void* ident, int handle, int flags, int64_t samplingPeriodNs, int64_t maxBatchReportLatencyNs) argument
370 setDelay(void* ident, int handle, int64_t samplingPeriodNs) argument
379 flush(void* ident, int handle) argument
[all...]
H A DSensorEventConnection.cpp92 bool SensorService::SensorEventConnection::addSensor(int32_t handle) { argument
94 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
97 mSensorInfo.indexOfKey(handle) >= 0) {
100 mSensorInfo.add(handle, FlushInfo());
104 bool SensorService::SensorEventConnection::removeSensor(int32_t handle) { argument
106 if (mSensorInfo.removeItem(handle) >= 0) {
112 bool SensorService::SensorEventConnection::hasSensor(int32_t handle) const {
114 return mSensorInfo.indexOfKey(handle) >= 0;
125 const int handle = mSensorInfo.keyAt(i); local
126 sp<SensorInterface> si = mService->getSensorInterfaceFromHandle(handle);
138 setFirstFlushPending(int32_t handle, bool value) argument
169 const int handle = mSensorInfo.keyAt(i); local
199 incrementPendingFlushCount(int32_t handle) argument
391 const int handle = mSensorInfo.keyAt(i); local
504 enableDisable( int handle, bool enabled, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags) argument
519 setEventRate( int handle, nsecs_t samplingPeriodNs) argument
529 configureChannel(int handle, int rateLevel) argument
[all...]
/frameworks/av/drm/common/
H A DIDrmManagerService.cpp42 const DecryptHandle* handle, Parcel* data) {
43 data->writeInt32(handle->decryptId);
44 data->writeString8(handle->mimeType);
45 data->writeInt32(handle->decryptApiType);
46 data->writeInt32(handle->status);
48 int size = handle->copyControlVector.size();
51 data->writeInt32(handle->copyControlVector.keyAt(i));
52 data->writeInt32(handle->copyControlVector.valueAt(i));
55 size = handle->extendedData.size();
58 data->writeString8(handle
41 writeDecryptHandleToParcelData( const DecryptHandle* handle, Parcel* data) argument
69 readDecryptHandleFromParcelData( DecryptHandle* handle, const Parcel& data) argument
102 clearDecryptHandle(DecryptHandle* handle) argument
624 DecryptHandle* handle = NULL; local
649 DecryptHandle* handle = NULL; local
676 DecryptHandle* handle = NULL; local
1131 DecryptHandle handle; local
1151 DecryptHandle handle; local
1332 DecryptHandle* handle local
1352 DecryptHandle* handle = openDecryptSession(uniqueId, uri.string(), mime.string()); local
1376 DecryptHandle* handle = openDecryptSession(uniqueId, buf, mimeType); local
1396 DecryptHandle* handle = new DecryptHandle(); local
1411 DecryptHandle handle; local
1442 DecryptHandle handle; local
1498 DecryptHandle handle; local
1515 DecryptHandle handle; local
[all...]
/frameworks/av/drm/drmserver/
H A DDrmManager.cpp406 DecryptHandle* handle = new DecryptHandle(); local
407 if (NULL != handle) {
408 handle->decryptId = mDecryptSessionId + 1;
413 result = rDrmEngine.openDecryptSession(uniqueId, handle, fd, offset, length, mime);
423 delete handle; handle = NULL;
425 return handle;
434 DecryptHandle* handle = new DecryptHandle(); local
435 if (NULL != handle) {
436 handle
463 DecryptHandle* handle = new DecryptHandle(); local
[all...]
/frameworks/av/drm/libdrmframework/
H A DDrmManagerClientImpl.cpp270 DecryptHandle* handle = NULL; local
272 handle = getDrmManagerService()->openDecryptSession(uniqueId, uri, mime);
274 return handle;
/frameworks/av/media/libeffects/downmix/
H A DEffectDownmix.c252 int32_t DownmixLib_Release(effect_handle_t handle) { argument
253 downmix_module_t *pDwmModule = (downmix_module_t *)handle;
255 ALOGV("DownmixLib_Release() %p", handle);
256 if (handle == NULL) {
709 * pDownmixer handle to instance data
763 * pDownmixer handle to instance data
/frameworks/av/media/libeffects/factory/
H A DEffectsFactory.c347 int EffectRelease(effect_handle_t handle) argument
363 if (e1->object == handle) {
383 ALOGW("EffectRelease() fx %p library already unloaded", handle);
616 l->handle = hdl;
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp271 int VisualizerLib_Release(effect_handle_t handle) { argument
272 VisualizerContext * pContext = (VisualizerContext *)handle;
274 ALOGV("VisualizerLib_Release %p", handle);
/frameworks/av/media/libstagefright/
H A DNuCachedSource2.cpp684 void NuCachedSource2::getDrmInfo(sp<DecryptHandle> &handle, DrmManagerClient **client) { argument
685 mSource->getDrmInfo(handle, client);
/frameworks/av/media/libstagefright/omx/
H A DSoftVideoEncoderOMXComponent.cpp536 buffer_handle_t handle; local
548 handle = buffer->handle;
578 handle = grallocMeta.pHandle;
601 handle,
606 handle,
611 ALOGE("Unable to lock image buffer %p for access", handle);
651 if (mapper.unlock(handle) != OK) {
652 ALOGE("Unable to unlock image buffer %p for access", handle);
/frameworks/av/media/mtp/
H A DMtpDevice.cpp428 MtpObjectInfo* MtpDevice::getObjectInfo(MtpObjectHandle handle) { argument
434 mRequest.setParameter(1, handle);
441 MtpObjectInfo* info = new MtpObjectInfo(handle);
450 void* MtpDevice::getThumbnail(MtpObjectHandle handle, int& outLength) { argument
454 mRequest.setParameter(1, handle);
519 bool MtpDevice::sendObject(MtpObjectHandle handle, int size, int srcFD) { argument
523 mLastSendObjectInfoObjectHandle != handle) {
539 bool MtpDevice::deleteObject(MtpObjectHandle handle) { argument
543 mRequest.setParameter(1, handle);
552 MtpObjectHandle MtpDevice::getParent(MtpObjectHandle handle) { argument
563 getStorageID(MtpObjectHandle handle) argument
632 getObjectPropValue(MtpObjectHandle handle, MtpProperty* property) argument
651 readObject(MtpObjectHandle handle, ReadObjectCallback callback, uint32_t expectedLength, void* clientData) argument
659 readObject(MtpObjectHandle handle, const char* destPath, int group, int perm) argument
678 readObject(MtpObjectHandle handle, int fd) argument
683 readObjectInternal(MtpObjectHandle handle, ReadObjectCallback callback, const uint32_t* expectedLength, void* clientData) argument
803 readPartialObject(MtpObjectHandle handle, uint32_t offset, uint32_t size, uint32_t *writtenSize, ReadObjectCallback callback, void* clientData) argument
825 readPartialObject64(MtpObjectHandle handle, uint64_t offset, uint32_t size, uint32_t *writtenSize, ReadObjectCallback callback, void* clientData) argument
927 reapEventRequest(int handle, uint32_t (*parameters)[3]) argument
942 discardEventRequest(int handle) argument
[all...]
/frameworks/av/services/audiopolicy/managerdefault/
H A DAudioPolicyManager.h206 audio_patch_handle_t *handle,
208 virtual status_t releaseAudioPatch(audio_patch_handle_t handle,
231 audio_patch_handle_t *handle,
233 virtual status_t stopAudioSource(audio_patch_handle_t handle);
349 // handle special cases for sonification strategy while in call: mute streams or replace by
364 // returns its handle if any.
457 virtual status_t addAudioPatch(audio_patch_handle_t handle, const sp<AudioPatch>& patch) argument
459 return mAudioPatches.addAudioPatch(handle, patch);
461 virtual status_t removeAudioPatch(audio_patch_handle_t handle) argument
463 return mAudioPatches.removeAudioPatch(handle);
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp640 audio_patch_handle_t *handle)
649 return mAudioPolicyManager->createAudioPatch(patch, handle,
653 status_t AudioPolicyService::releaseAudioPatch(audio_patch_handle_t handle) argument
663 return mAudioPolicyManager->releaseAudioPatch(handle,
730 audio_patch_handle_t *handle)
737 return mAudioPolicyManager->startAudioSource(source, attributes, handle,
741 status_t AudioPolicyService::stopAudioSource(audio_patch_handle_t handle) argument
748 return mAudioPolicyManager->stopAudioSource(handle);
639 createAudioPatch(const struct audio_patch *patch, audio_patch_handle_t *handle) argument
728 startAudioSource(const struct audio_port_config *source, const audio_attributes_t *attributes, audio_patch_handle_t *handle) argument
/frameworks/av/services/radio/
H A DRadioService.cpp72 properties.handle =
76 ALOGI("loaded default module %s, ver %s, handle %d", properties.product,
77 properties.version, properties.handle);
80 mModules.add(properties.handle, module);
107 status_t RadioService::attach(radio_handle_t handle, argument
116 ALOGV("%s %d config %p withAudio %d", __FUNCTION__, handle, config, withAudio);
123 ssize_t index = mModules.indexOfKey(handle);
/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...]

Completed in 1864 milliseconds

1234567891011