/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/ |
D | AppOpsUidStateTrackerTest.java | 87 AppOpsUidStateTracker mIntf; field in AppOpsUidStateTrackerTest 100 mIntf = new AppOpsUidStateTrackerImpl(mAmi, mExecutor, mClock, mConstants, in setUp() 129 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testNoCapability() 130 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testNoCapability() 131 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_COARSE_LOCATION, MODE_FOREGROUND)); in testNoCapability() 132 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_FINE_LOCATION, MODE_FOREGROUND)); in testNoCapability() 134 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testNoCapability() 144 assertEquals(MODE_ALLOWED, mIntf.evalMode(UID, OP_RECORD_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() 146 mIntf.evalMode(UID, OP_RECEIVE_EXPLICIT_USER_INTERACTION_AUDIO, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() 148 assertEquals(MODE_IGNORED, mIntf.evalMode(UID, OP_CAMERA, MODE_FOREGROUND)); in testForegroundWithMicrophoneCapability() [all …]
|
/frameworks/av/media/codec2/hal/hidl/1.0/utils/ |
D | ComponentInterface.cpp | 50 mIntf{intf} { 58 return mIntf->config_vb(params, mayBlock, failures); in config() 66 return mIntf->query_vb({}, indices, mayBlock, params); in query() 72 return mIntf->querySupportedParams_nb(params); in querySupportedParams() 78 return mIntf->querySupportedValues_vb(fields, mayBlock); in querySupportedValues() 82 std::shared_ptr<C2ComponentInterface> mIntf; member
|
D | InputSurface.cpp | 73 mIntf(intf), in ConfigurableIntf() 84 return mIntf->query({}, indices, mayBlock, params); in query() 92 c2_status_t err = mIntf->config(params, mayBlock, failures); in config() 93 if (mIntf->eos()) { in config() 107 return mIntf->querySupportedParams(params); in querySupportedParams() 113 return mIntf->querySupportedValues(fields, mayBlock); in querySupportedValues() 117 const std::shared_ptr<InputSurface::Interface> mIntf; member in android::hardware::media::c2::V1_0::utils::InputSurface::ConfigurableIntf 163 mIntf{std::make_shared<Interface>(reflector)}, 166 mIntf, source))} {
|
D | Configurable.cpp | 38 : mIntf{std::move(intf)} { in CachedConfigurable() 44 c2_status_t init = mIntf->querySupportedParams(&mSupportedParams); in init() 51 return mIntf->getId(); in getId() 55 _hidl_cb(mIntf->getName()); in getName() 68 c2_status_t c2res = mIntf->query( in query() 97 c2_status_t c2res = mIntf->config( in config() 171 c2_status_t c2res = mIntf->querySupportedValues( in querySupportedValues()
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomEnc.cpp | 254 mIntf(intfImpl), in C2SoftAomEnc() 470 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 472 mSize = mIntf->getSize_l(); in initEncoder() 473 mBitrate = mIntf->getBitrate_l(); in initEncoder() 474 mBitrateMode = mIntf->getBitrateMode_l(); in initEncoder() 475 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 476 mIntraRefresh = mIntf->getIntraRefresh_l(); in initEncoder() 477 mRequestSync = mIntf->getRequestSync_l(); in initEncoder() 478 mColorAspects = mIntf->getCodedColorAspects_l(); in initEncoder() 479 mQuality = mIntf->getQuality_l(); in initEncoder() [all …]
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacEnc.cpp | 121 mIntf(intfImpl), in C2SoftFlacEnc() 248 const uint32_t sampleRate = mIntf->getSampleRate(); in process() 249 const uint32_t channelCount = mIntf->getChannelCount(); in process() 250 const bool inputFloat = mIntf->getPcmEncodingInfo() == C2Config::PCM_FLOAT; in process() 368 …ALOGV("%s numChannel=%d, sampleRate=%d", __func__, mIntf->getChannelCount(), mIntf->getSampleRate(… in configureEncoder() 375 const bool inputFloat = mIntf->getPcmEncodingInfo() == C2Config::PCM_FLOAT; in configureEncoder() 378 ok = ok && FLAC__stream_encoder_set_channels(mFlacStreamEncoder, mIntf->getChannelCount()); in configureEncoder() 379 ok = ok && FLAC__stream_encoder_set_sample_rate(mFlacStreamEncoder, mIntf->getSampleRate()); in configureEncoder() 382 mIntf->getComplexity()); in configureEncoder()
|
D | C2SoftFlacDec.h | 51 std::shared_ptr<IntfImpl> mIntf; member
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxEnc.cpp | 380 mIntf(intfImpl), in C2SoftVpxEnc() 447 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 448 mSize = mIntf->getSize_l(); in initEncoder() 449 mBitrate = mIntf->getBitrate_l(); in initEncoder() 450 mBitrateMode = mIntf->getBitrateMode_l(); in initEncoder() 451 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 452 mIntraRefresh = mIntf->getIntraRefresh_l(); in initEncoder() 453 mRequestSync = mIntf->getRequestSync_l(); in initEncoder() 454 mLayering = mIntf->getTemporalLayers_l(); in initEncoder() 473 (uint32_t)mBitrateControlMode, mTemporalLayers, mIntf->getSyncFramePeriod(), in initEncoder() [all …]
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacDec.cpp | 273 mIntf(intfImpl), in C2SoftAacDec() 355 int32_t targetRefLevel = mIntf->getDrcTargetRefLevel(); in initDecoder() 361 int32_t attenuationFactor = mIntf->getDrcAttenuationFactor(); in initDecoder() 366 int32_t boostFactor = mIntf->getDrcBoostFactor(); in initDecoder() 371 int32_t compressMode = mIntf->getDrcCompressMode(); in initDecoder() 376 int32_t encTargetLevel = mIntf->getDrcEncTargetLevel(); in initDecoder() 381 int32_t effectType = mIntf->getDrcEffectType(); in initDecoder() 386 int32_t albumMode = mIntf->getDrcAlbumMode(); in initDecoder() 391 u_int32_t maxChannelCount = mIntf->getMaxChannelCount(); in initDecoder() 627 if (mIntf->isAdts()) { in process() [all …]
|
D | C2SoftAacEnc.cpp | 153 mIntf(intfImpl), in C2SoftAacEnc() 243 uint32_t sbrMode = mIntf->getSBRMode(); in setAudioParams() 248 mIntf->getSampleRate(), mIntf->getChannelCount(), mIntf->getBitrate(), in setAudioParams() 251 uint32_t aacProfile = mIntf->getProfile(); in setAudioParams() 257 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_SAMPLERATE, mIntf->getSampleRate())) { in setAudioParams() 261 if (AACENC_OK != aacEncoder_SetParam(mAACEncoder, AACENC_BITRATE, mIntf->getBitrate())) { in setAudioParams() 266 getChannelMode(mIntf->getChannelCount()))) { in setAudioParams() 334 uint32_t sampleRate = mIntf->getSampleRate(); in process() 335 uint32_t channelCount = mIntf->getChannelCount(); in process() 348 uint32_t bitrate = mIntf->getBitrate(); in process()
|
/frameworks/av/media/codec2/hal/plugin/ |
D | FilterWrapper.cpp | 50 : mIntf(intf), mFilterWrapper(filterWrapper) { in WrappedDecoderInterface() 98 transferParams_l(mIntf, mFilters[0].intf, C2_MAY_BLOCK); in takeFilters() 112 backPropagateParams_l(mIntf, mFilters[0].intf, C2_MAY_BLOCK); in takeFilters() 138 C2String getName() const override { return mIntf->getName(); } in getName() 140 c2_node_id_t getId() const override { return mIntf->getId(); } in getId() 217 c2_status_t err = mIntf->query_vb( in query_vb() 221 << "WrappedDecoderInterface: " << mIntf->getName() in query_vb() 249 c2_status_t err = mIntf->config_vb(paramsForIntf, mayBlock, failures); in config_vb() 252 << "WrappedDecoderInterface: " << mIntf->getName() in config_vb() 258 transferParams_l(mIntf, mFilters[0].intf, mayBlock); in config_vb() [all …]
|
/frameworks/av/media/codec2/tests/ |
D | C2ComponentInterface_test.cpp | 53 mIntf = intf; in setComponent() 57 mIntf = nullptr; in resetResults() 174 std::shared_ptr<C2ComponentInterface> mIntf; member in android::C2CompIntfTest 201 return mIntf->query_vb(stackParams, {}, C2_DONT_BLOCK, nullptr); in queryOnStack() 211 return mIntf->query_vb({}, {index}, C2_DONT_BLOCK, heapParams); in queryOnHeap() 266 return mIntf->config_vb(params, C2_DONT_BLOCK, failures); in config() 285 ASSERT_EQ(C2_BAD_VALUE, mIntf->config_vb(params, C2_DONT_BLOCK, &failures)); in configReadOnlyParam() 302 c2_status_t stConfig = mIntf->config_vb(params, C2_DONT_BLOCK, &failures); in configWritableParamValidValue() 321 ASSERT_EQ(C2_BAD_VALUE, mIntf->config_vb(params, C2_DONT_BLOCK, &failures)); in configWritableParamInvalidValue() 589 mIntf->querySupportedValues_vb(validValueInfos, C2_DONT_BLOCK)); \ [all …]
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcEnc.cpp | 583 mIntf(intfImpl), in C2SoftHevcEnc() 817 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 818 mSize = mIntf->getSize_l(); in initEncoder() 819 mBitrateMode = mIntf->getBitrateMode_l(); in initEncoder() 820 mBitrate = mIntf->getBitrate_l(); in initEncoder() 821 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 822 mHevcEncProfile = mIntf->getProfile_l(); in initEncoder() 823 mHevcEncLevel = mIntf->getLevel_l(); in initEncoder() 824 mIDRInterval = mIntf->getSyncFramePeriod_l(); in initEncoder() 825 mIInterval = mIntf->getSyncFramePeriod_l(); in initEncoder() [all …]
|
/frameworks/av/media/codec2/hal/plugin/samples/ |
D | SampleFilterPlugin.cpp | 369 : mIntf(std::make_shared<Interface>(id)) { in SampleToneMappingFilter() 576 return mIntf; in intf() 636 mIntf->config_vb(configUpdate, C2_MAY_BLOCK, &failures); in processLoop() 639 mIntf->getHdrStaticMetadata(); in processLoop() 640 uint32_t dataspace = mIntf->getDataSpace(); in processLoop() 671 C2BlockPool::local_id_t poolId = mIntf->getPoolId(); in processLoop() 782 const std::shared_ptr<Interface> mIntf; member in android::SampleToneMappingFilter 817 mIntf(mReflector), in SampleC2ComponentStore() 852 return mIntf.query(stackParams, heapParamIndices, C2_MAY_BLOCK, heapParams); in query_sm() 857 return mIntf.config(params, C2_MAY_BLOCK, failures); in config_sm() [all …]
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Dec.cpp | 230 mIntf(intfImpl), in C2SoftMpeg4Dec() 352 mOutputBufferSize = align(mIntf->getMaxWidth(), 16) * align(mIntf->getMaxHeight(), 16) * 3 / 2; in ensureDecoderState() 411 &mVideoDecControls, vol_data, &vol_size, 1, mIntf->getMaxWidth(), in handleResChange() 412 mIntf->getMaxHeight(), H263_MODE)) { in handleResChange() 484 mIntf->getMaxWidth(), mIntf->getMaxHeight(), mode)) { in process() 504 c2_status_t err = mIntf->config({&size}, C2_MAY_BLOCK, &failures); in process() 576 c2_status_t err = mIntf->config({&size}, C2_MAY_BLOCK, &failures); in process()
|
D | C2SoftMpeg4Enc.cpp | 309 mIntf(intfImpl), in C2SoftMpeg4Enc() 432 mEncParams->intraPeriod = mIntf->getSyncFramePeriod(); in initEncParams() 449 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 450 mSize = mIntf->getSize_l(); in initEncoder() 451 mBitrate = mIntf->getBitrate_l(); in initEncoder() 452 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 538 IntfImpl::Lock lock = mIntf->lock(); in process() 539 std::shared_ptr<C2StreamBitrateInfo::output> bitrate = mIntf->getBitrate_l(); in process()
|
/frameworks/av/media/codec2/components/avc/ |
D | C2SoftAvcEnc.cpp | 588 mIntf(intfImpl), in C2SoftAvcEnc() 831 IntfImpl::Lock lock = mIntf->lock(); in setQp() 834 mIntf->getPictureQuantization_l(); in setQp() 1017 IntfImpl::Lock lock = mIntf->lock(); in setProfileParams() 1026 s_profile_params_ip.e_profile = mIntf->getProfile_l(); in setProfileParams() 1155 IntfImpl::Lock lock = mIntf->lock(); in initEncoder() 1156 mSize = mIntf->getSize_l(); in initEncoder() 1157 mBitrate = mIntf->getBitrate_l(); in initEncoder() 1158 mFrameRate = mIntf->getFrameRate_l(); in initEncoder() 1159 mIntraRefresh = mIntf->getIntraRefresh_l(); in initEncoder() [all …]
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.cpp | 132 mIntf(intfImpl), in C2SoftOpusEnc() 150 mSampleRate = mIntf->getSampleRate(); in configureEncoder() 151 mChannelCount = mIntf->getChannelCount(); in configureEncoder() 152 uint32_t bitrate = mIntf->getBitrate(); in configureEncoder() 153 uint32_t bitrateMode = mIntf->getBitrateMode(); in configureEncoder() 154 int complexity = mIntf->getComplexity(); in configureEncoder()
|
D | C2SoftOpusDec.h | 51 std::shared_ptr<IntfImpl> mIntf; member
|
/frameworks/av/media/codec2/components/raw/ |
D | C2SoftRawDec.h | 45 std::shared_ptr<IntfImpl> mIntf;
|
/frameworks/av/media/codec2/components/g711/ |
D | C2SoftG711Dec.h | 45 std::shared_ptr<IntfImpl> mIntf;
|
/frameworks/av/media/codec2/components/gsm/ |
D | C2SoftGsmDec.h | 52 std::shared_ptr<IntfImpl> mIntf;
|
/frameworks/av/media/codec2/components/amr_nb_wb/ |
D | C2SoftAmrDec.h | 52 std::shared_ptr<IntfImpl> mIntf; member
|
D | C2SoftAmrNbEnc.h | 47 std::shared_ptr<IntfImpl> mIntf;
|
/frameworks/av/media/codec2/components/vorbis/ |
D | C2SoftVorbisDec.h | 53 std::shared_ptr<IntfImpl> mIntf; member
|