/hardware/interfaces/audio/core/all-versions/vts/functional/7.0/ |
D | Generators.cpp | 101 for (const auto& profile : mixPort.getProfile()) { in generateOutputDeviceConfigParameters() local 102 if (!profile.hasFormat() || !profile.hasSamplingRates() || in generateOutputDeviceConfigParameters() 103 !profile.hasChannelMasks()) in generateOutputDeviceConfigParameters() 105 auto configs = combineAudioConfig(profile.getChannelMasks(), in generateOutputDeviceConfigParameters() 106 profile.getSamplingRates(), profile.getFormat()); in generateOutputDeviceConfigParameters() 150 for (const auto& profile : mixPort.getProfile()) { in getOutputDeviceInvalidConfigParameters() local 151 if (!profile.hasFormat() || !profile.hasSamplingRates() || in getOutputDeviceInvalidConfigParameters() 152 !profile.hasChannelMasks()) in getOutputDeviceInvalidConfigParameters() 155 profile.getFormat(), in getOutputDeviceInvalidConfigParameters() 156 static_cast<uint32_t>(profile.getSamplingRates()[0]), in getOutputDeviceInvalidConfigParameters() [all …]
|
/hardware/interfaces/audio/aidl/default/alsa/ |
D | ModuleAlsa.cpp | 47 alsa_device_profile* profile = proxy.getProfile(); in populateConnectedDevicePort() local 48 std::vector<AudioChannelLayout> channels = alsa::getChannelMasksFromProfile(profile); in populateConnectedDevicePort() 49 std::vector<int> sampleRates = alsa::getSampleRatesFromProfile(profile); in populateConnectedDevicePort() 52 profile->formats[i] != PCM_FORMAT_INVALID; in populateConnectedDevicePort() 55 alsa::c2aidl_pcm_format_AudioFormatDescription(profile->formats[i]); in populateConnectedDevicePort() 57 LOG(WARNING) << __func__ << ": unknown pcm type=" << profile->formats[i]; in populateConnectedDevicePort()
|
D | Utils.cpp | 206 std::vector<AudioChannelLayout> getChannelMasksFromProfile(const alsa_device_profile* profile) { in getChannelMasksFromProfile() argument 207 const bool isInput = profile->direction == PCM_IN; in getChannelMasksFromProfile() 209 for (size_t i = 0; i < AUDIO_PORT_MAX_CHANNEL_MASKS && profile->channel_counts[i] != 0; ++i) { in getChannelMasksFromProfile() 211 alsa::getChannelLayoutMaskFromChannelCount(profile->channel_counts[i], isInput); in getChannelMasksFromProfile() 215 auto indexMask = alsa::getChannelIndexMaskFromChannelCount(profile->channel_counts[i]); in getChannelMasksFromProfile() 271 std::vector<int> getSampleRatesFromProfile(const alsa_device_profile* profile) { in getSampleRatesFromProfile() argument 274 profile->sample_rates[i] != 0; in getSampleRatesFromProfile() 276 sampleRates.push_back(profile->sample_rates[i]); in getSampleRatesFromProfile()
|
/hardware/libhardware/modules/usbaudio/ |
D | audio_hal.c | 83 alsa_device_profile profile; /* The profile of the ALSA device */ member 379 static char *device_get_parameters(const alsa_device_profile *profile, const char * keys) in device_get_parameters() argument 381 if (profile->card < 0 || profile->device < 0) { in device_get_parameters() 391 char* rates_list = profile_get_sample_rate_strs(profile); in device_get_parameters() 399 char* channels_list = profile_get_channel_count_strs(profile); in device_get_parameters() 407 char * format_params = profile_get_format_strs(profile); in device_get_parameters() 440 static unsigned int populate_channel_mask_from_profile(const alsa_device_profile* profile, in populate_channel_mask_from_profile() argument 453 (channel_count = profile->channel_counts[i]) != 0 && in populate_channel_mask_from_profile() 470 static unsigned int populate_sample_rates_from_profile(const alsa_device_profile* profile, in populate_sample_rates_from_profile() argument 475 profile->sample_rates[num_sample_rates] != 0; num_sample_rates++) { in populate_sample_rates_from_profile() [all …]
|
/hardware/interfaces/audio/core/all-versions/vts/functional/6.0/ |
D | Generators.cpp | 49 for (const auto& profile : ioProfile->getAudioProfiles()) { in generateOutputDeviceConfigParameters() local 50 const auto& channels = profile->getChannels(); in generateOutputDeviceConfigParameters() 51 const auto& sampleRates = profile->getSampleRates(); in generateOutputDeviceConfigParameters() 55 profile->getFormat()); in generateOutputDeviceConfigParameters() 112 for (const auto& profile : ioProfile->getAudioProfiles()) { in generateInputDeviceConfigParameters() local 113 const auto& channels = profile->getChannels(); in generateInputDeviceConfigParameters() 114 const auto& sampleRates = profile->getSampleRates(); in generateInputDeviceConfigParameters() 118 profile->getFormat()); in generateInputDeviceConfigParameters()
|
/hardware/google/gfxstream/third-party/glm/include/glm/detail/ |
D | type_gentype.inl | 10 template <typename vT, uint cT, uint rT, profile pT> 16 template <typename vT, uint cT, uint rT, profile pT> 22 template <typename vT, uint cT, uint rT, profile pT> 28 template <typename vT, uint cT, uint rT, profile pT> 34 template <typename vT, uint cT, uint rT, profile pT> 40 template <typename vT, uint cT, uint rT, profile pT> 49 template <typename vT, uint cT, uint rT, profile pT> 55 template <typename vT, uint cT, uint rT, profile pT> 72 template <typename vT, uint cT, uint rT, profile pT> 108 template <typename vT, uint cT, uint rT, profile pT> [all …]
|
/hardware/interfaces/radio/aidl/compat/libradiocompat/ |
D | DriverContext.cpp | 23 void DriverContext::addDataProfile(const aidl::data::DataProfileInfo& profile) { in addDataProfile() argument 24 mDataProfiles[profile.apn] = profile; in addDataProfile()
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/ |
D | genvk.py | 183 profile = None, 208 profile = None, 226 profile = None, 244 profile = None, 268 profile = None, 288 profile = None, 310 profile = None, 329 profile = None, 347 profile = None, 367 profile = None, [all …]
|
/hardware/interfaces/identity/aidl/default/common/ |
D | WritableIdentityCredential.cpp | 190 SecureAccessControlProfile profile; in addAccessControlProfile() local 191 profile.id = id; in addAccessControlProfile() 192 profile.readerCertificate = readerCertificate; in addAccessControlProfile() 193 profile.userAuthenticationRequired = userAuthenticationRequired; in addAccessControlProfile() 194 profile.timeoutMillis = timeoutMillis; in addAccessControlProfile() 195 profile.secureUserId = secureUserId; in addAccessControlProfile() 196 profile.mac = mac.value(); in addAccessControlProfile() 198 profileMap.add("id", profile.id); in addAccessControlProfile() 199 if (profile.readerCertificate.encodedCertificate.size() > 0) { in addAccessControlProfile() 201 cppbor::Bstr(profile.readerCertificate.encodedCertificate)); in addAccessControlProfile() [all …]
|
D | IdentityCredential.cpp | 387 const SecureAccessControlProfile& profile = *it; in startRetrieval() local 388 if (profile.readerCertificate.encodedCertificate.size() == 0) { in startRetrieval() 393 profile.readerCertificate.encodedCertificate); in startRetrieval() 401 profile.id, profile.readerCertificate.encodedCertificate, in startRetrieval() 402 profile.userAuthenticationRequired, profile.timeoutMillis, in startRetrieval() 403 profile.secureUserId, profile.mac); in startRetrieval() 410 accessControlProfileMask |= (1 << profile.id); in startRetrieval() 444 for (const SecureAccessControlProfile& profile : remainingAcps) { in startRetrieval() local 446 profile.id, profile.readerCertificate.encodedCertificate, in startRetrieval() 447 profile.userAuthenticationRequired, profile.timeoutMillis, profile.secureUserId, in startRetrieval() [all …]
|
/hardware/google/pixel/thermal/utils/ |
D | thermal_throttling.cpp | 67 const std::string profile = ::android::base::GetProperty( in parseProfileProperty() local 70 if (profile.empty() || sensor_info.throttling_info->profile_map.count(profile)) { in parseProfileProperty() 71 if (profile != thermal_throttling_status_map_[sensor_name.data()].profile) { in parseProfileProperty() 73 << ((profile.empty()) ? "default" : profile); in parseProfileProperty() 74 thermal_throttling_status_map_[sensor_name.data()].profile = profile; in parseProfileProperty() 77 LOG(ERROR) << sensor_name.data() << ": set profile to default because " << profile in parseProfileProperty() 79 thermal_throttling_status_map_[sensor_name.data()].profile = ""; in parseProfileProperty() 138 thermal_throttling_status_map_[sensor_name.data()].profile = ""; in registerThermalThrottling() 376 const auto &profile = thermal_throttling_status_map_[temp.name].profile; in allocatePowerToCdev() local 390 (sensor_info.throttling_info->profile_map.count(profile) in allocatePowerToCdev() [all …]
|
/hardware/interfaces/audio/common/all-versions/default/tests/ |
D | hidlutils_tests.cpp | 909 AudioProfile profile = {}; in TEST() local 910 profile.format = toString(xsd::AudioFormat::AUDIO_FORMAT_PCM_16_BIT); in TEST() 911 profile.sampleRates.resize(2); in TEST() 912 profile.sampleRates[0] = 44100; in TEST() 913 profile.sampleRates[1] = 48000; in TEST() 914 profile.channelMasks.resize(2); in TEST() 915 profile.channelMasks[0] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_MONO); in TEST() 916 profile.channelMasks[1] = toString(xsd::AudioChannelMask::AUDIO_CHANNEL_OUT_STEREO); in TEST() 918 EXPECT_EQ(NO_ERROR, HidlUtils::audioProfileToHal(profile, &halProfile)); in TEST() 922 EXPECT_EQ(profile, profileBack); in TEST() [all …]
|
/hardware/interfaces/identity/aidl/vts/ |
D | Util.cpp | 182 SecureAccessControlProfile profile; in addAccessControlProfiles() local 188 testProfile.timeoutMillis, secureUserId, &profile); in addAccessControlProfiles() 194 EXPECT_EQ(testProfile.id, profile.id); in addAccessControlProfiles() 195 EXPECT_EQ(testProfile.readerCertificate, profile.readerCertificate.encodedCertificate); in addAccessControlProfiles() 196 EXPECT_EQ(testProfile.userAuthenticationRequired, profile.userAuthenticationRequired); in addAccessControlProfiles() 197 EXPECT_EQ(testProfile.timeoutMillis, profile.timeoutMillis); in addAccessControlProfiles() 198 EXPECT_EQ(support::kAesGcmTagSize + support::kAesGcmIvSize, profile.mac.size()); in addAccessControlProfiles() 200 if (!result.isOk() || testProfile.id != profile.id || in addAccessControlProfiles() 201 testProfile.readerCertificate != profile.readerCertificate.encodedCertificate || in addAccessControlProfiles() 202 testProfile.userAuthenticationRequired != profile.userAuthenticationRequired || in addAccessControlProfiles() [all …]
|
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/ |
D | video_encoder_device_copper.cpp | 281 codec_profile.profile = V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE; in venc_open() 290 codec_profile.profile = VEN_PROFILE_H263_BASELINE; in venc_open() 299 codec_profile.profile = V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE; in venc_open() 1192 __func__, codec_profile.profile, profile_level.level); in venc_start() 1197 if((codec_profile.profile == V4L2_MPEG_VIDEO_MPEG4_PROFILE_SIMPLE) || in venc_start() 1198 (codec_profile.profile == V4L2_MPEG_VIDEO_H264_PROFILE_BASELINE) || in venc_start() 1199 (codec_profile.profile == VEN_PROFILE_H263_BASELINE)) in venc_start() 1364 m_sVenc_cfg.codectype, codec_profile.profile, profile_level.level); in venc_config_print() 1736 if((codec_profile.profile == V4L2_MPEG_VIDEO_H264_PROFILE_MAIN) || in venc_set_session_qp() 1737 (codec_profile.profile == V4L2_MPEG_VIDEO_H264_PROFILE_HIGH)) in venc_set_session_qp() [all …]
|
D | video_encoder_device.cpp | 254 codec_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_open() 263 codec_profile.profile = VEN_PROFILE_H263_BASELINE; in venc_open() 272 codec_profile.profile = VEN_PROFILE_H264_BASELINE; in venc_open() 1177 __func__, codec_profile.profile, profile_level.level); in venc_start() 1190 if((codec_profile.profile == VEN_PROFILE_MPEG4_SP) || in venc_start() 1191 (codec_profile.profile == VEN_PROFILE_H264_BASELINE) || in venc_start() 1192 (codec_profile.profile == VEN_PROFILE_H263_BASELINE)) in venc_start() 1411 m_sVenc_cfg.codectype, codec_profile.profile, profile_level.level); in venc_config_print() 1881 requested_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_set_profile_level() 1888 requested_profile.profile = VEN_PROFILE_MPEG4_ASP; in venc_set_profile_level() [all …]
|
/hardware/google/gfxstream/third-party/astc-encoder/Source/ |
D | astcenc.h | 400 astcenc_profile profile; member 602 astcenc_profile profile; member 688 astcenc_profile profile,
|
/hardware/interfaces/audio/aidl/vts/ |
D | ModuleConfig.cpp | 454 static size_t combineAudioConfigs(const AudioPort& port, const AudioProfile& profile, in combineAudioConfigs() argument 456 const size_t newConfigCount = profile.channelMasks.size() * profile.sampleRates.size(); in combineAudioConfigs() 458 for (auto channelMask : profile.channelMasks) { in combineAudioConfigs() 459 for (auto sampleRate : profile.sampleRates) { in combineAudioConfigs() 466 config.format = profile.format; in combineAudioConfigs() 475 static bool isDynamicProfile(const AudioProfile& profile) { in isDynamicProfile() argument 476 return (profile.format.type == AudioFormatType::DEFAULT && profile.format.encoding.empty()) || in isDynamicProfile() 477 profile.sampleRates.empty() || profile.channelMasks.empty(); in isDynamicProfile() 515 for (const auto& profile : mixPort.profiles) { in generateAudioMixPortConfigs() local 516 if (isDynamicProfile(profile)) continue; in generateAudioMixPortConfigs() [all …]
|
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device.cpp | 365 codec_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_open() 369 codec_profile.profile = VEN_PROFILE_H263_BASELINE; in venc_open() 375 codec_profile.profile = VEN_PROFILE_H264_BASELINE; in venc_open() 1378 __func__, codec_profile.profile, profile_level.level); in venc_start() 1391 if ((codec_profile.profile == VEN_PROFILE_MPEG4_SP) || in venc_start() 1392 (codec_profile.profile == VEN_PROFILE_H264_BASELINE) || in venc_start() 1393 (codec_profile.profile == VEN_PROFILE_H263_BASELINE)) in venc_start() 1620 m_sVenc_cfg.codectype, codec_profile.profile, profile_level.level); in venc_config_print() 2124 requested_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_set_profile_level() 2129 requested_profile.profile = VEN_PROFILE_MPEG4_ASP; in venc_set_profile_level() [all …]
|
/hardware/interfaces/audio/aidl/default/ |
D | Configuration.cpp | 49 static void fillProfile(AudioProfile* profile, const std::vector<int32_t>& channelLayouts, in fillProfile() argument 52 profile->channelMasks.push_back( in fillProfile() 55 profile->sampleRates.insert(profile->sampleRates.end(), sampleRates.begin(), sampleRates.end()); in fillProfile() 60 AudioProfile profile; in createProfile() local 61 profile.format.type = AudioFormatType::PCM; in createProfile() 62 profile.format.pcm = pcmType; in createProfile() 63 fillProfile(&profile, channelLayouts, sampleRates); in createProfile() 64 return profile; in createProfile() 70 AudioProfile profile; in createProfile() local 71 profile.format.encoding = encodingType; in createProfile() [all …]
|
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/ |
D | video_encoder_device.cpp | 364 codec_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_open() 368 codec_profile.profile = VEN_PROFILE_H263_BASELINE; in venc_open() 374 codec_profile.profile = VEN_PROFILE_H264_BASELINE; in venc_open() 1377 __func__, codec_profile.profile, profile_level.level); in venc_start() 1390 if ((codec_profile.profile == VEN_PROFILE_MPEG4_SP) || in venc_start() 1391 (codec_profile.profile == VEN_PROFILE_H264_BASELINE) || in venc_start() 1392 (codec_profile.profile == VEN_PROFILE_H263_BASELINE)) in venc_start() 1619 m_sVenc_cfg.codectype, codec_profile.profile, profile_level.level); in venc_config_print() 2123 requested_profile.profile = VEN_PROFILE_MPEG4_SP; in venc_set_profile_level() 2128 requested_profile.profile = VEN_PROFILE_MPEG4_ASP; in venc_set_profile_level() [all …]
|
/hardware/google/av/media/eco/ |
D | ECOC2Utils.cpp | 35 int C2Profile2ECOProfile(C2Config::profile_t profile) { in C2Profile2ECOProfile() argument 36 switch (profile) { in C2Profile2ECOProfile()
|
/hardware/google/camera/common/profiler/ |
D | profiler.proto | 30 // Unix epoch timestamp when profile started. 35 // Unix epoch timestamp when profile ended.
|
/hardware/google/av/media/eco/include/eco/ |
D | ECOUtils.h | 76 SimpleEncoderConfig(const std::string& name, int32_t codecType, int32_t profile, int32_t level, in SimpleEncoderConfig() 80 mProfile(profile), in SimpleEncoderConfig()
|
/hardware/interfaces/automotive/audiocontrol/aidl/default/ |
D | AudioControl.cpp | 95 const std::vector<int32_t>& sampleRates, AudioProfile* profile) { in fillProfile() argument 97 profile->channelMasks.push_back( in fillProfile() 100 profile->sampleRates.insert(profile->sampleRates.end(), sampleRates.begin(), sampleRates.end()); in fillProfile() 105 AudioProfile profile; in createProfile() local 106 profile.format.type = AudioFormatType::PCM; in createProfile() 107 profile.format.pcm = pcmType; in createProfile() 108 fillProfile(channelLayouts, sampleRates, &profile); in createProfile() 109 return profile; in createProfile() 115 AudioProfile profile; in createProfile() local 116 profile.format.encoding = encodingType; in createProfile() [all …]
|
/hardware/interfaces/audio/aidl/default/usb/ |
D | StreamUsb.cpp | 47 auto profile = alsa::getDeviceProfile(connectedDevice, mIsInput); in setConnectedDevices() local 48 if (!profile.has_value()) { in setConnectedDevices() 53 connectedDeviceProfiles.push_back(*profile); in setConnectedDevices()
|