/hardware/qcom/audio/hal/audio_extn/ |
H A D | utils.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 216 if (usecase->stream.in == NULL) { 219 struct stream_in *in = usecase->stream.in; local 220 struct stream_app_type_cfg *app_type_cfg = &in->app_type_cfg; 223 if (audio_is_usb_in_device(in->device)) { 226 in->sample_rate, 230 app_type_cfg->mode = flags_to_mode(1 /*capture*/, in->flags); 232 if (in 331 struct stream_in *in; local 436 struct stream_in *in = usecase->stream.in; local [all...] |
H A D | soundtrigger.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 255 ALOGE("%s: pcm %p not in the list!", __func__, config->st_ses.pcm); 272 int audio_extn_sound_trigger_read(struct stream_in *in, void *buffer, argument 282 if (!in->is_st_session_active) { 286 if (in->standby) 287 in->standby = false; 290 st_info = get_sound_trigger_info(in->capture_handle); 302 in->is_st_session_active = false; 305 usleep((bytes * 1000000) / (audio_stream_in_frame_size((struct audio_stream_in *)in) * 311 audio_extn_sound_trigger_stop_lab(struct stream_in *in) argument 330 audio_extn_sound_trigger_check_and_get_session(struct stream_in *in) argument [all...] |
/hardware/qcom/audio/hal/ |
H A D | voice.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 113 ALOGE("%s: Could not find the usecase (%d) in the list", 259 bool voice_is_in_call_rec_stream(struct stream_in *in) argument 264 ret = voice_extn_is_in_call_rec_stream(in, &in_call_rec); 285 struct stream_in *in) 293 switch (in->source) { 295 in->usecase = USECASE_INCALL_REC_UPLINK; 299 in->usecase = USECASE_INCALL_REC_DOWNLINK; 303 in 284 voice_check_and_set_incall_rec_usecase(struct audio_device *adev, struct stream_in *in) argument 327 voice_check_and_stop_incall_rec_usecase(struct audio_device *adev, struct stream_in *in) argument [all...] |
/hardware/qcom/data/ipacfg-mgr/msm8998/hal/src/ |
H A D | HAL.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 107 * care to check for initialization in a function that isn't used anyways 121 HAL::BoolResult HAL::ipaResultToBoolResult(RET in) { argument 123 ret.success = (in >= RET::SUCCESS); 124 switch (in) { 159 /* This will likely always result in doubling the number of loops the execution 164 vector<string> HAL::convertHidlStrToStdStr(hidl_vec<hidl_string> in) { argument 166 for (size_t i = 0; i < in [all...] |
/hardware/qcom/display/msm8909/sdm/libs/hwc2/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 59 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 65 id = UINT32(in.readInt32()); 66 size = UINT32(in.readInt32()); 67 if (size > 0 && size == in.dataAvail()) { 68 const void *data = in.readInplace(size); 109 // Load diagclient library and invokes its entry point to pass in display APIs. 380 // it should not be disastrous and we still can grab wakelock in QDC [all...] |
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc2/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 60 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 66 id = UINT32(in.readInt32()); 67 size = UINT32(in.readInt32()); 68 if (size > 0 && size == in.dataAvail()) { 69 const void *data = in.readInplace(size); 110 // Load diagclient library and invokes its entry point to pass in display APIs. 381 // it should not be disastrous and we still can grab wakelock in QDC [all...] |
/hardware/qcom/display/msm8996/sdm/libs/hwc/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 61 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 67 id = UINT32(in.readInt32()); 68 size = UINT32(in.readInt32()); 69 if (size > 0 && size == in.dataAvail()) { 70 const void *data = in.readInplace(size); 111 // Load diagclient library and invokes its entry point to pass in display APIs. 207 // SurfaceFlinger layer stack is dropped in soli [all...] |
/hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 60 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 66 id = UINT32(in.readInt32()); 67 size = UINT32(in.readInt32()); 68 if (size > 0 && size == in.dataAvail()) { 69 const void *data = in.readInplace(size); 110 // Load diagclient library and invokes its entry point to pass in display APIs. 281 // it should not be disastrous and we still can grab wakelock in QDC [all...] |
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 60 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 66 id = UINT32(in.readInt32()); 67 size = UINT32(in.readInt32()); 68 if (size > 0 && size == in.dataAvail()) { 69 const void *data = in.readInplace(size); 110 // Load diagclient library and invokes its entry point to pass in display APIs. 384 // it should not be disastrous and we still can grab wakelock in QDC [all...] |
/hardware/qcom/gps/msm8909w_3100/android/location_api/ |
H A D | GnssAPIClient.cpp | 3 * Redistribution and use in source and binary forms, with or without 8 * * Redistributions in binary form must reproduce the above 10 * disclaimer in the documentation and/or other materials provided 46 static void convertGnssSvStatus(GnssSvNotification& in, IGnssCallback::GnssSvStatus& out); 498 static void convertGnssSvStatus(GnssSvNotification& in, IGnssCallback::GnssSvStatus& out) argument 501 out.numSvs = in.count; 509 info.svid = in.gnssSvs[i].svId; 510 convertGnssConstellationType(in.gnssSvs[i].type, info.constellation); 511 info.cN0Dbhz = in.gnssSvs[i].cN0Dbhz; 512 info.elevationDegrees = in [all...] |
/hardware/qcom/gps/msm8998/android/location_api/ |
H A D | GnssAPIClient.cpp | 3 * Redistribution and use in source and binary forms, with or without 8 * * Redistributions in binary form must reproduce the above 10 * disclaimer in the documentation and/or other materials provided 45 static void convertGnssSvStatus(GnssSvNotification& in, IGnssCallback::GnssSvStatus& out); 434 static void convertGnssSvStatus(GnssSvNotification& in, IGnssCallback::GnssSvStatus& out) argument 437 out.numSvs = in.count; 445 info.svid = in.gnssSvs[i].svId; 446 convertGnssConstellationType(in.gnssSvs[i].type, info.constellation); 447 info.cN0Dbhz = in.gnssSvs[i].cN0Dbhz; 448 info.elevationDegrees = in [all...] |
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
H A D | msg_formatting.h | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 209 inline std::tuple<ReadStream, ReadStream::ptr_t, size_t> read(ReadStream in) { argument 210 auto pos = in.pos(); 211 in += 4; 212 if (!in) return {in, nullptr, 0}; 215 pos = in.pos(); 216 in += size; 217 if (!in) retur 222 readSimpleType(ReadStream in) argument 236 readSimpleHidlVecInPlace(ReadStream in) argument 270 ReadStream& in = std::get<0>(result) = in_; local 310 read(Message<ResponseCode>, ReadStream in) argument 318 read(Message<hidl_vec<uint8_t>>, ReadStream in) argument 326 read(Message<hidl_vec<UIOption>>, ReadStream in) argument 336 read(Message<hidl_string>, ReadStream in) argument 377 read(ReadStream in, Command cmd) argument 385 read(Message<Cmd<cmd>>, ReadStream in) argument 406 read(Message<Cmd<cmd>, HEAD, Tail...>, ReadStream in) argument 425 read(Message<Msg...>, ReadStream in) argument [all...] |
/hardware/interfaces/tests/baz/1.0/default/ |
H A D | Baz.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 125 Return<void> Baz::someMethodWithVectorOfArray(const IBase::VectorOfArray& in, argument 128 << toString(in); 132 const size_t n = in.addresses.size(); 136 out.addresses[i] = in.addresses[n - 1 - i]; 144 Return<void> Baz::someMethodTakingAVectorOfArray(const hidl_vec<hidl_array<uint8_t, 6>>& in, argument 147 << toString(in); 149 const size_t n = in.size(); 155 out[i] = in[ 163 transpose(const IBase::StringMatrix5x3& in, transpose_cb _hidl_cb) argument 178 transpose2(const hidl_array<hidl_string, 5, 3>& in, transpose2_cb _hidl_cb) argument 202 testArrays( const IBase::LotsOfPrimitiveArrays &in, testArrays_cb _hidl_cb) argument 209 testByteVecs( const hidl_vec<IBase::ByteOneDim> &in, testByteVecs_cb _hidl_cb) argument 216 testBooleanVecs( const hidl_vec<IBase::BooleanOneDim> &in, testBooleanVecs_cb _hidl_cb) argument 223 testDoubleVecs( const hidl_vec<IBase::DoubleOneDim> &in, testDoubleVecs_cb _hidl_cb) argument [all...] |
/hardware/libhardware/modules/camera/3_0/ |
H A D | Camera.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 42 #define CAMERA_SYNC_TIMEOUT 5000 // in msecs 188 // Verify the set of streams in aggregate 229 ALOGE("%s:%d: Mismatched parameter in reused stream", __func__, mId); 423 int Camera::processCaptureBuffer(const camera3_stream_buffer_t *in, argument 426 if (in->acquire_fence != -1) { 427 int res = sync_wait(in->acquire_fence, CAMERA_SYNC_TIMEOUT); 439 out->stream = in->stream; 440 out->buffer = in [all...] |
/hardware/libhardware_legacy/audio/ |
H A D | A2dpAudioInterface.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 114 void A2dpAudioInterface::closeInputStream(AudioStreamIn* in) argument 116 return mHardwareInterface->closeInputStream(in); 331 // Simulate audio output timing in case of error
|
H A D | AudioDumpInterface.cpp | 6 ** you may not use this file except in compliance with the License. 11 ** Unless required by applicable law or agreed to in writing, software 171 void AudioDumpInterface::closeInputStream(AudioStreamIn* in) argument 173 AudioStreamInDump *dumpIn = (AudioStreamInDump *)in;
|
/hardware/qcom/audio/hal/voice_extn/ |
H A D | voice_extn.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 206 ALOGV("%s: CALL_ACTIVE cannot be handled in state=%d vsid:%x", 229 ALOGV("%s: CALL_INACTIVE cannot be handled in state=%d vsid:%x", 254 ALOGV("%s: CALL_HOLD cannot be handled in state=%d vsid:%x", 276 ALOGV("%s: CALL_LOCAL_HOLD cannot be handled in state=%d vsid:%x", 353 int voice_extn_is_in_call_rec_stream(struct stream_in *in, bool *in_call_rec) argument 357 if(in->source == AUDIO_SOURCE_VOICE_DOWNLINK || 358 in->source == AUDIO_SOURCE_VOICE_UPLINK || 359 in [all...] |
/hardware/qcom/display/msm8909/sdm/libs/hwc/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 61 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 67 id = UINT32(in.readInt32()); 68 size = UINT32(in.readInt32()); 69 if (size > 0 && size == in.dataAvail()) { 70 const void *data = in.readInplace(size); 111 // Load diagclient library and invokes its entry point to pass in display APIs. 207 // SurfaceFlinger layer stack is dropped in soli [all...] |
/hardware/qcom/display/msm8909w_3100/sdm/libs/hwc/ |
H A D | hwc_color_manager.cpp | 4 * Redistribution and use in source and binary forms, with or without 9 * * Redistributions in binary form must reproduce the above 11 * disclaimer in the documentation and/or other materials provided 61 int HWCColorManager::CreatePayloadFromParcel(const android::Parcel &in, uint32_t *disp_id, argument 67 id = UINT32(in.readInt32()); 68 size = UINT32(in.readInt32()); 69 if (size > 0 && size == in.dataAvail()) { 70 const void *data = in.readInplace(size); 111 // Load diagclient library and invokes its entry point to pass in display APIs. 207 // SurfaceFlinger layer stack is dropped in soli [all...] |
/hardware/interfaces/keymaster/4.0/support/ |
H A D | authorization_set.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 315 InStreams& deserializeParamValue(InStreams& in, hidl_vec<uint8_t>* blob) { argument 318 in.elements.read(reinterpret_cast<char*>(&blob_length), sizeof(uint32_t)); 320 in.elements.read(reinterpret_cast<char*>(&offset), sizeof(uint32_t)); 321 in.indirect.seekg(offset); 322 in.indirect.read(reinterpret_cast<char*>(&(*blob)[0]), blob->size()); 323 return in; 327 InStreams& deserializeParamValue(InStreams& in, T* value) { argument 328 in 332 deserialize(TAG_INVALID_t&&, InStreams& in, KeyParameter*) argument 338 deserialize(T&& ttag, InStreams& in, KeyParameter* param) argument 346 deserialize(InStreams& in, KeyParameter* param) argument 352 deserialize(InStreams& in, KeyParameter*) argument 360 deserialize(InStreams& in, KeyParameter* param) argument 369 deserialize(InStreams& in, KeyParameter* param) argument 374 deserialize(std::istream& in, std::vector<KeyParameter>* params) argument 415 Deserialize(std::istream* in) argument [all...] |
/hardware/libhardware/modules/audio/ |
H A D | audio_hw.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 178 // in the buffer, but by the end of the sleep the buffer is considered 181 // On the subsequent out_write(), we measure the elapsed time spent in 183 // thereby accounting for drain in the alsa buffer during mixing. 219 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; local 221 ALOGV("in_get_sample_rate: %u", in->sample_rate); 222 return in->sample_rate; 227 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 230 in 236 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; local 246 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; local 254 const struct stub_stream_in *in = (const struct stub_stream_in *)stream; local 262 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 271 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 303 struct stub_stream_in *in = (struct stub_stream_in *)stream; local 511 struct stub_stream_in *in = (struct stub_stream_in *)calloc(1, sizeof(struct stub_stream_in)); local 549 adev_close_input_stream(struct audio_hw_device *dev, struct audio_stream_in *in) argument [all...] |
/hardware/libhardware/modules/audio_remote_submix/ |
H A D | audio_hw.cpp | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 55 // Uncomment to enable extremely verbose logging in this module. 81 // results in the application opening a new input stream before closing the old input stream 110 // Set *result_variable_ptr to true if value_to_find is present in the array array_to_search, 126 // Channel mask field in this data structure is set to either input_channel_mask or 138 size_t pipe_frame_size; // Number of bytes in each audio frame in the pipe. 139 size_t buffer_size_frames; // Size of the audio pipe in frames. 230 // Determine whether the specified channel in mas 358 submix_audio_device_create_pipe_l(struct submix_audio_device * const rsxadev, const struct audio_config * const config, const size_t buffer_size_frames, const uint32_t buffer_period_count, struct submix_stream_in * const in, struct submix_stream_out * const out, const char *address, int route_idx) argument [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | AudioHardwareALSA.cpp | 7 ** you may not use this file except in compliance with the License. 12 ** Unless required by applicable law or agreed to in writing, software 274 // So adjust the volume to get the correct volume index in driver 393 ALOGV("Enabling Incall Music setting in the setparameter\n"); 400 ALOGV("Disabling Incall Music setting in the setparameter\n"); 414 ALOGV("Enabling ANC setting in the setparameter\n"); 417 ALOGV("Disabling ANC setting in the setparameter\n"); 803 ALOGD("Routing to proxy for normal voip call in openOutputStream"); 807 ALOGD("enabling VOIP in openoutputstream, musbPlaybackState: %d", musbPlaybackState); 810 ALOGD("Starting recording in openoutputstrea 1105 AudioStreamInALSA *in = 0; local 1382 closeInputStream(AudioStreamIn* in) argument [all...] |
/hardware/qcom/display/msm8960/libgralloc/ |
H A D | gralloc_priv.h | 6 * you may not use this file except in compliance with the License. 11 * Unless required by applicable law or agreed to in writing, software 151 // Not mapped in userspace 242 static private_handle_t* dynamicCast(const native_handle* in) { argument 243 if (validate(in) == 0) { 244 return (private_handle_t*) in;
|
/hardware/intel/common/libmix/mix_audio/src/ |
H A D | mixaudio.c | 4 The source code contained or described herein and all documents related to the source code ("Material") are owned by Intel Corporation or its suppliers or licensors. Title to the Material remains with Intel Corporation or its suppliers and licensors. The Material contains trade secrets and proprietary and confidential information of Intel or its suppliers and licensors. The Material is protected by worldwide copyright and trade secret laws and treaty provisions. No part of the Material may be used, copied, reproduced, modified, published, uploaded, posted, transmitted, distributed, or disclosed in any way without Intel’s prior express written permission. 6 No license under any patent, copyright, trade secret or other intellectual property right is granted to or conferred upon you by disclosure or delivery of the Materials, either expressly, by implication, inducement, estoppel or otherwise. Any license under such intellectual property rights must be express and approved by Intel in writing. 27 * <listitem>mix_audio_stop_drain() is called after the last buffer is passed for decoding in with mix_audio_decode(). </listitem> 31 * Since mix_audio_decode() is a blocking call during playback, the following methods are called in a seperate thread to control progress: 176 g_message("MixAudio running in stub mode!"); 260 // value as describe in GLogLevelFlags structure. Not that lsb in GLogLevelFlags is not "ERROR" and 261 // here we shifted the log_level to ignore the first 2 values in GLogLevelFlags, making ERROR align to 297 We are not going to check the thread lock anymore in this method. 299 object and in tha 1482 struct iovec *in = (struct iovec*)g_alloca(sizeof(struct iovec) * iovincnt); local 1602 struct iovec *in = (struct iovec*)g_alloca(sizeof(struct iovec) * iovincnt); local [all...] |