Searched defs:handle (Results 51 - 75 of 253) sorted by relevance

1234567891011

/frameworks/av/media/mtp/tests/
H A DMtpFfsHandle_test.cpp54 std::unique_ptr<IMtpHandle> handle; member in class:android::MtpFfsHandleTest
65 handle = std::unique_ptr<IMtpHandle>(get_ffs_handle());
66 MtpFfsHandle *ffs_handle = static_cast<MtpFfsHandle*>(handle.get());
94 EXPECT_EQ(handle->read(buf, TEST_PACKET_SIZE), TEST_PACKET_SIZE);
101 EXPECT_EQ(handle->write(dummyDataStr.c_str(), TEST_PACKET_SIZE), TEST_PACKET_SIZE);
119 EXPECT_EQ(handle->receiveFile(mfr, false), 0);
139 EXPECT_EQ(handle->receiveFile(mfr, false), 0);
162 EXPECT_EQ(handle->sendFile(mfr), 0);
191 EXPECT_EQ(handle->sendFile(mfr), 0);
228 EXPECT_EQ(handle
[all...]
/frameworks/av/radio/
H A DIRadioService.cpp79 virtual status_t attach(radio_handle_t handle, argument
87 data.writeInt32(handle);
154 radio_handle_t handle = data.readInt32(); local
166 status_t status = attach(handle, client, configPtr, withAudio, radio);
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
H A DAudioPatch.cpp48 snprintf(buffer, SIZE, "%*s- handle: %2d\n", spaces, "", mHandle);
50 snprintf(buffer, SIZE, "%*s- audio flinger handle: %2d\n", spaces, "", mAfPatchHandle);
64 snprintf(buffer, SIZE, "%*s- Mix ID %d I/O handle %d\n", spaces + 2, "",
65 mPatch.sources[i].id, mPatch.sources[i].ext.mix.handle);
79 snprintf(buffer, SIZE, "%*s- Mix ID %d I/O handle %d\n", spaces + 2, "",
80 mPatch.sinks[i].id, mPatch.sinks[i].ext.mix.handle);
89 status_t AudioPatchCollection::addAudioPatch(audio_patch_handle_t handle, argument
92 ssize_t index = indexOfKey(handle);
95 ALOGW("addAudioPatch() patch %d already in", handle);
98 add(handle, patc
106 removeAudioPatch(audio_patch_handle_t handle) argument
[all...]
/frameworks/av/services/soundtrigger/
H A DSoundTriggerHalHidl.h49 * Only one active recognition per model at a time. The SoundTrigger service will handle
51 * The implementation returns a unique handle used by other functions (unload_sound_model(),
57 sound_model_handle_t *handle);
63 virtual int unloadSoundModel(sound_model_handle_t handle);
69 virtual int startRecognition(sound_model_handle_t handle,
77 virtual int stopRecognition(sound_model_handle_t handle);
95 SoundModel(sound_model_handle_t handle, sound_model_callback_t callback, argument
97 : mHandle(handle), mHalHandle(halHandle),
146 sp<SoundModel> getModel(sound_model_handle_t handle);
147 sp<SoundModel> removeModel(sound_model_handle_t handle);
[all...]
H A DSoundTriggerHalLegacy.cpp80 sound_model_handle_t *handle)
85 return mHwDevice->load_sound_model(mHwDevice, sound_model, callback, cookie, handle);
88 int SoundTriggerHalLegacy::unloadSoundModel(sound_model_handle_t handle) argument
93 return mHwDevice->unload_sound_model(mHwDevice, handle);
96 int SoundTriggerHalLegacy::startRecognition(sound_model_handle_t handle, argument
104 return mHwDevice->start_recognition(mHwDevice, handle, config, callback, cookie);
107 int SoundTriggerHalLegacy::stopRecognition(sound_model_handle_t handle) argument
112 return mHwDevice->stop_recognition(mHwDevice, handle);
77 loadSoundModel(struct sound_trigger_sound_model *sound_model, sound_model_callback_t callback, void *cookie, sound_model_handle_t *handle) argument
/frameworks/av/soundtrigger/
H A DISoundTrigger.cpp54 sound_model_handle_t *handle)
56 if (modelMemory == 0 || handle == NULL) {
68 reply.read(handle, sizeof(sound_model_handle_t));
73 virtual status_t unloadSoundModel(sound_model_handle_t handle) argument
77 data.write(&handle, sizeof(sound_model_handle_t));
85 virtual status_t startRecognition(sound_model_handle_t handle, argument
90 data.write(&handle, sizeof(sound_model_handle_t));
104 virtual status_t stopRecognition(sound_model_handle_t handle) argument
108 data.write(&handle, sizeof(sound_model_handle_t));
136 sound_model_handle_t handle; local
53 loadSoundModel(const sp<IMemory>& modelMemory, sound_model_handle_t *handle) argument
146 sound_model_handle_t handle; local
154 sound_model_handle_t handle; local
166 sound_model_handle_t handle; local
[all...]
H A DISoundTriggerHwService.cpp80 virtual status_t attach(const sound_trigger_module_handle_t handle, argument
86 data.write(&handle, sizeof(sound_trigger_module_handle_t));
154 sound_trigger_module_handle_t handle; local
155 data.read(&handle, sizeof(sound_trigger_module_handle_t));
159 status_t status = attach(handle, client, module);
/frameworks/base/media/java/android/media/
H A DAudioDevicePort.java39 AudioDevicePort(AudioHandle handle, String deviceName, argument
42 super(handle,
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
H A DDefaultContainerService.java104 NativeLibraryHelper.Handle handle = null;
108 handle = NativeLibraryHelper.Handle.create(pkg);
109 return copyPackageToContainerInner(pkg, handle, containerId, key, isExternal,
115 IoUtils.closeQuietly(handle);
316 private String copyPackageToContainerInner(PackageLite pkg, NativeLibraryHelper.Handle handle, argument
322 final long sizeBytes = PackageHelper.calculateInstalledSize(pkg, handle,
345 final int res = NativeLibraryHelper.copyNativeBinariesWithOverride(handle, libraryRoot,
/frameworks/base/services/core/java/com/android/server/am/
H A DUserState.java64 public UserState(UserHandle handle) { argument
65 mHandle = handle;
66 mUnlockProgress = new ProgressReporter(handle.getIdentifier());
/frameworks/base/services/core/jni/
H A Dcom_android_server_SyntheticPasswordManager.cpp41 const gatekeeper::password_handle_t *handle = local
43 jlong sid = handle->user_id;
H A Dcom_android_server_input_InputApplicationHandle.cpp94 NativeInputApplicationHandle* handle; local
96 handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr);
99 handle = new NativeInputApplicationHandle(objWeak);
100 handle->incStrong((void*)android_server_InputApplicationHandle_getHandle);
102 reinterpret_cast<jlong>(handle));
104 return handle;
117 NativeInputApplicationHandle* handle = reinterpret_cast<NativeInputApplicationHandle*>(ptr); local
118 handle->decStrong((void*)android_server_InputApplicationHandle_getHandle);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DMockSyntheticPasswordManager.java86 protected long sidFromPasswordHandle(byte[] handle) { argument
87 return new MockGateKeeperService.VerifyHandle(handle).sid;
/frameworks/base/telecomm/java/android/telecom/
H A DConferenceParticipant.java30 * The conference participant's handle (e.g., phone number).
55 * @param handle The conference participant's handle (e.g., phone number).
60 public ConferenceParticipant(Uri handle, String displayName, Uri endpoint, int state) { argument
61 mHandle = handle;
76 Uri handle = source.readParcelable(classLoader);
80 return new ConferenceParticipant(handle, displayName, endpoint, state);
129 * The conference participant's handle (e.g., phone number).
/frameworks/native/cmds/lshal/
H A Dtest.cpp52 const native_handle_t *handle = hh.getNativeHandle(); variable
53 if (handle->numFds < 1) {
56 int fd = handle->data[0];
/frameworks/native/include/binder/
H A DBpBinder.h30 BpBinder(int32_t handle);
32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
/frameworks/native/libs/binder/include/binder/
H A DBpBinder.h30 BpBinder(int32_t handle);
32 inline int32_t handle() const { return mHandle; } function in class:android::BpBinder
/frameworks/native/libs/vr/libpdx_uds/
H A Dchannel_event_set.cpp79 Status<void> ChannelEventSet::SetupHandle(int fd, LocalHandle* handle, argument
82 handle->Reset(fd);
83 if (!*handle) {
84 ALOGE("ChannelEventSet::SetupHandle: Failed to setup %s handle: %s",
/frameworks/native/services/sensorservice/
H A DSensorInterface.cpp65 status_t HardwareSensor::batch(void* ident, int /*handle*/, int flags,
71 status_t HardwareSensor::flush(void* ident, int handle) { argument
72 return mSensorDevice.flush(ident, handle);
75 status_t HardwareSensor::setDelay(void* ident, int handle, int64_t ns) { argument
76 return mSensorDevice.setDelay(ident, handle, ns);
79 void HardwareSensor::autoDisable(void *ident, int handle) { argument
80 mSensorDevice.autoDisable(ident, handle);
H A DSensorList.cpp30 int handle, SensorInterface* si, bool isForDebug, bool isVirtual) {
32 if (handle == si->getSensor().getHandle() &&
33 mUsedHandle.insert(handle).second) {
34 // will succeed as the mUsedHandle does not have this handle
35 mHandleMap.emplace(handle, Entry(si, isForDebug, isVirtual));
38 // handle exist already or handle mismatch
42 bool SensorList::remove(int handle) { argument
44 auto entry = mHandleMap.find(handle);
52 String8 SensorList::getName(int handle) cons
29 add( int handle, SensorInterface* si, bool isForDebug, bool isVirtual) argument
[all...]
H A DSensorList.h41 bool add(int handle, SensorInterface* si, bool isForDebug = false, bool isVirtual = false);
43 // After a handle is removed, the object that SensorInterface * pointing to may get deleted if
45 bool remove(int handle);
55 String8 getName(int handle) const;
56 sp<SensorInterface> getInterface(int handle) const;
57 bool isNewHandle(int handle) const;
100 T getOne(int handle, const TF& accessor, T def = T()) const;
125 T SensorList::getOne(int handle, const TF& accessor, T def) const { argument
127 auto i = mHandleMap.find(handle);
H A DSensorRegistrationInfo.h37 SensorRegistrationInfo(int32_t handle, const String8 &packageName, argument
39 mSensorHandle = handle;
/frameworks/native/vulkan/libvulkan/
H A Ddebug_report.h58 static Node* FromHandle(VkDebugReportCallbackEXT handle) { argument
59 return reinterpret_cast<Node*>(uintptr_t(handle));
/frameworks/av/camera/
H A DICameraClient.cpp86 void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle) { argument
91 data.writeNativeHandle(handle);
112 for (auto& handle : handles) {
113 data.writeNativeHandle(handle);
171 native_handle_t* handle = data.readNativeHandle(); local
172 if (handle == nullptr) {
173 ALOGE("%s: Received a null native handle", __FUNCTION__);
177 // The native handle will be freed in BpCamera::releaseRecordingFrameHandle.
178 recordingFrameHandleCallbackTimestamp(timestamp, handle);
203 native_handle_t* handle local
[all...]
/frameworks/av/media/libaaudio/src/utility/
H A DHandleTracker.cpp48 // Error if handle is negative so type is limited to bottom half.
108 // Avoid generation zero so that 0x0 is not a valid handle.
142 // Generate a handle.
143 aaudio_handle_t handle = buildHandle(inputHeader, index); local
145 ALOGV("HandleTracker::put(%p) returns 0x%08x", address, handle);
146 return handle;
150 aaudio_handle_t handle) const
152 // Validate the handle.
153 handle_tracker_slot_t index = extractIndex(handle);
155 ALOGE("HandleTracker::handleToIndex() invalid handle
185 remove(handle_tracker_type_t type, aaudio_handle_t handle) argument
223 extractIndex(aaudio_handle_t handle) argument
228 extractGeneration(aaudio_handle_t handle) argument
[all...]

Completed in 807 milliseconds

1234567891011