/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/ |
D | CameraOutputConfigBuilder.java | 29 private final CameraOutputConfig mConfig; field in CameraOutputConfigBuilder 32 mConfig = config; in CameraOutputConfigBuilder() 33 mConfig.surfaceGroupId = OutputConfiguration.SURFACE_GROUP_ID_NONE; in CameraOutputConfigBuilder() 59 mConfig.physicalCameraId = physicalCameraId; in setPhysicalCameraId() 64 mConfig.surfaceGroupId = surfaceGroupId; in setSurfaceGroupId() 69 if (mConfig.sharedSurfaceConfigs == null) { in addSharedOutputConfig() 70 mConfig.sharedSurfaceConfigs = new ArrayList<>(); in addSharedOutputConfig() 72 mConfig.sharedSurfaceConfigs.add(cameraOutputConfig); in addSharedOutputConfig() 78 result.outputId = mConfig.outputId; in build() 79 result.type = mConfig.type; in build() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | BadgeExtractorTest.java | 54 @Mock RankingConfig mConfig; field in BadgeExtractorTest 71 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 89 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithBubble() 120 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecordWithMedia() 149 extractor.setConfig(mConfig); in testAppYesChannelNo() 151 when(mConfig.badgingEnabled(mUser)).thenReturn(true); in testAppYesChannelNo() 152 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo() 163 extractor.setConfig(mConfig); in testAppNoChannelYes() 165 when(mConfig.badgingEnabled(mUser)).thenReturn(true); in testAppNoChannelYes() 166 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes() [all …]
|
D | VisibilityExtractorTest.java | 52 @Mock RankingConfig mConfig; field in VisibilityExtractorTest 72 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 92 extractor.setConfig(mConfig); in testGlobalAllDpmAllChannelAll() 95 when(mConfig.canShowNotificationsOnLockscreen(mUser)).thenReturn(true); in testGlobalAllDpmAllChannelAll() 96 when(mConfig.canShowPrivateNotificationsOnLockScreen(mUser)).thenReturn(true); in testGlobalAllDpmAllChannelAll() 110 extractor.setConfig(mConfig); in testGlobalNoneDpmAllChannelAll() 113 when(mConfig.canShowNotificationsOnLockscreen(mUser)).thenReturn(false); in testGlobalNoneDpmAllChannelAll() 114 when(mConfig.canShowPrivateNotificationsOnLockScreen(mUser)).thenReturn(true); in testGlobalNoneDpmAllChannelAll() 128 extractor.setConfig(mConfig); in testGlobalSomeDpmAllChannelAll() 131 when(mConfig.canShowNotificationsOnLockscreen(mUser)).thenReturn(true); in testGlobalSomeDpmAllChannelAll() [all …]
|
/frameworks/av/media/module/codecs/mp3dec/test/ |
D | Mp3DecoderTest.cpp | 42 Mp3DecoderTest() : mConfig(nullptr) {} in Mp3DecoderTest() 45 if (mConfig) { in ~Mp3DecoderTest() 46 delete mConfig; in ~Mp3DecoderTest() 47 mConfig = nullptr; in ~Mp3DecoderTest() 52 mConfig = new tPVMP3DecoderExternal{}; in SetUp() 53 ASSERT_NE(mConfig, nullptr) << "Failed to initialize config. No Memory available"; in SetUp() 54 mConfig->equalizerType = flat; in SetUp() 55 mConfig->crcEnabled = false; in SetUp() 58 tPVMP3DecoderExternal *mConfig; member in Mp3DecoderTest 77 mConfig->inputBufferCurrentLength = bytesRead; in DecodeFrames() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecConfig_test.cpp | 294 CCodecConfig mConfig; member in android::CCodecConfigTest 314 ASSERT_EQ(OK, mConfig.initialize(mReflector, mConfigurable)); in TEST_F() 322 ASSERT_EQ(OK, mConfig.getConfigUpdateFromSdkParams( in TEST_F() 347 ASSERT_EQ(OK, mConfig.initialize(mReflector, mConfigurable)); in TEST_F() 359 ASSERT_FALSE(mConfig.updateConfiguration(configUpdate, D::ALL)); in TEST_F() 362 ASSERT_FALSE(mConfig.mInputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 363 << "mInputFormat = " << mConfig.mInputFormat->debugString().c_str(); in TEST_F() 364 ASSERT_FALSE(mConfig.mOutputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 365 << "mOutputFormat = " << mConfig.mOutputFormat->debugString().c_str(); in TEST_F() 368 ASSERT_FALSE(mConfig.mInputFormat->findInt64(KEY_VENDOR_INT64, &vendorInt64)) in TEST_F() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 44 private ViewConfiguration mConfig; field in EditorTouchStateTest 49 mConfig = new ViewConfiguration(); in before() 65 mTouchState.update(event1, mConfig); in testUpdate_singleTap() 71 mTouchState.update(event2, mConfig); in testUpdate_singleTap() 77 mTouchState.update(event3, mConfig); in testUpdate_singleTap() 86 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_sameArea() 92 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_sameArea() 98 mTouchState.update(event3, mConfig); in testUpdate_doubleTap_sameArea() 108 mTouchState.update(event1, mConfig); in testUpdate_doubleTap_notSameArea() 114 mTouchState.update(event2, mConfig); in testUpdate_doubleTap_notSameArea() [all …]
|
/frameworks/native/services/inputflinger/tests/ |
D | FakeInputReaderPolicy.cpp | 63 mConfig.setDisplayViewports(mViewports); in clearViewports() 68 return mConfig.getDisplayViewportByUniqueId(uniqueId); in getDisplayViewportByUniqueId() 72 return mConfig.getDisplayViewportByType(type); in getDisplayViewportByType() 77 return mConfig.getDisplayViewportByPort(displayPort); in getDisplayViewportByPort() 82 mConfig.setDisplayViewports(mViewports); in addDisplayViewport() 118 mConfig.setDisplayViewports(mViewports); in updateViewport() 127 mConfig.excludedDeviceNames.push_back(deviceName); in addExcludedDeviceName() 132 mConfig.inputPortToDisplayPortAssociations.insert({inputPort, displayPort}); in addInputPortAssociation() 137 mConfig.deviceTypeAssociations.insert({inputPort, type}); in addDeviceTypeAssociation() 142 mConfig.inputPortToDisplayUniqueIdAssociations.insert({inputUniqueId, displayUniqueId}); in addInputUniqueIdAssociation() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/ |
D | SoftMP3.cpp | 45 mConfig(new tPVMP3DecoderExternal), in SoftMP3() 65 delete mConfig; in ~SoftMP3() 66 mConfig = NULL; in ~SoftMP3() 113 mConfig->equalizerType = flat; in initDecoder() 114 mConfig->crcEnabled = false; in initDecoder() 119 pvmp3_InitDecoder(mConfig, mDecoderBuf); in initDecoder() 326 mConfig->pInputBuffer = in onQueueFilled() 329 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; in onQueueFilled() 331 mConfig->pInputBuffer = NULL; in onQueueFilled() 332 mConfig->inputBufferCurrentLength = 0; in onQueueFilled() [all …]
|
/frameworks/av/media/module/codecs/mp3dec/fuzzer/ |
D | mp3_dec_fuzzer.cpp | 161 tPVMP3DecoderExternal *mConfig = nullptr; member in Codec 166 mConfig = new tPVMP3DecoderExternal{}; in initDecoder() 167 if (!mConfig) { in initDecoder() 176 pvmp3_InitDecoder(mConfig, mDecoderBuf); in initDecoder() 182 mConfig->equalizerType = kEqualizerTypes[equalizerTypeValue]; in decodeFrames() 183 mConfig->crcEnabled = data[1] & 0x1; in decodeFrames() 195 mConfig->inputBufferCurrentLength = size; in decodeFrames() 196 mConfig->inputBufferUsedLength = 0; in decodeFrames() 197 mConfig->inputBufferMaxLength = 0; in decodeFrames() 198 mConfig->pInputBuffer = data; in decodeFrames() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | RootTrustManager.java | 43 private final ApplicationConfig mConfig; field in RootTrustManager 49 mConfig = config; in RootTrustManager() 57 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 66 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 75 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 89 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted() 105 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted() 112 if (mConfig.hasPerDomainConfigs()) { in checkServerTrusted() 117 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkServerTrusted() 129 if (hostname == null && mConfig.hasPerDomainConfigs()) { in checkServerTrusted() [all …]
|
D | ConfigNetworkSecurityPolicy.java | 25 private final ApplicationConfig mConfig; field in ConfigNetworkSecurityPolicy 28 mConfig = config; in ConfigNetworkSecurityPolicy() 33 return mConfig.isCleartextTrafficPermitted(); in isCleartextTrafficPermitted() 38 return mConfig.isCleartextTrafficPermitted(hostname); in isCleartextTrafficPermitted() 43 return mConfig.isCertificateTransparencyVerificationRequired(hostname); in isCertificateTransparencyVerificationRequired()
|
D | TrustedCertificateStoreAdapter.java | 29 private final NetworkSecurityConfig mConfig; field in TrustedCertificateStoreAdapter 32 mConfig = config; in TrustedCertificateStoreAdapter() 37 TrustAnchor anchor = mConfig.findTrustAnchorByIssuerAndSignature(cert); in findIssuer() 46 return mConfig.findAllCertificatesByIssuerAndSignature(cert); in findAllIssuers() 51 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in getTrustAnchor() 61 TrustAnchor anchor = mConfig.findTrustAnchorBySubjectAndPublicKey(cert); in isUserAddedCertificate()
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 491 private final VpnConfig mConfig = new VpnConfig(); field in VpnService.Builder 498 mConfig.user = VpnService.this.getClass().getName(); in Builder() 508 mConfig.session = session; in setSession() 519 mConfig.configureIntent = intent; in setConfigureIntent() 535 mConfig.mtu = mtu; in setMtu() 552 mConfig.proxyInfo = proxyInfo; in setHttpProxy() 715 if (mConfig.dnsServers == null) { in addDnsServer() 716 mConfig.dnsServers = new ArrayList<String>(); in addDnsServer() 718 mConfig.dnsServers.add(address.getHostAddress()); in addDnsServer() 743 if (mConfig.searchDomains == null) { in addSearchDomain() [all …]
|
/frameworks/base/tests/Internal/src/com/android/internal/protolog/ |
D | ProtoLogViewerConfigReaderTest.java | 76 mConfig = new LegacyProtoLogViewerConfigReader(); field in ProtoLogViewerConfigReaderTest 96 assertNull(mConfig.getViewerString(1)); in getViewerString_notLoaded() 101 mConfig.loadViewerConfig(msg -> {}, mTestViewerConfig.getAbsolutePath()); in loadViewerConfig() 102 assertEquals("Test completed successfully: %b", mConfig.getViewerString(70933285)); in loadViewerConfig() 103 assertEquals("Test 2", mConfig.getViewerString(1352021864)); in loadViewerConfig() 104 assertEquals("Window %s is already added", mConfig.getViewerString(409412266)); in loadViewerConfig() 105 assertNull(mConfig.getViewerString(1)); in loadViewerConfig() 110 mConfig.loadViewerConfig(msg -> {}, "/tmp/unknown/file/does/not/exist"); in loadViewerConfig_invalidFile() 112 assertNull(mConfig.getViewerString(1)); in loadViewerConfig_invalidFile()
|
/frameworks/av/media/codec2/components/mp3/ |
D | C2SoftMp3Dec.cpp | 101 mConfig(nullptr), in C2SoftMP3() 117 pvmp3_InitDecoder(mConfig, mDecoderBuf); in onStop() 138 if (mConfig) { in onRelease() 139 delete mConfig; in onRelease() 140 mConfig = nullptr; in onRelease() 145 mConfig = new tPVMP3DecoderExternal{}; in initDecoder() 146 if (!mConfig) return NO_MEMORY; in initDecoder() 147 mConfig->equalizerType = flat; in initDecoder() 148 mConfig->crcEnabled = false; in initDecoder() 154 pvmp3_InitDecoder(mConfig, mDecoderBuf); in initDecoder() [all …]
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ManageDialog.java | 42 private VpnConfig mConfig; field in ManageDialog 60 mConfig = mVm.getVpnConfig(UserHandle.myUserId()); in onCreate() 63 if (mConfig == null) { in onCreate() 69 if (mConfig.session != null) { in onCreate() 70 ((TextView) view.findViewById(R.id.session)).setText(mConfig.session); in onCreate() 77 if (mConfig.legacy) { in onCreate() 80 mAlertParams.mTitle = VpnConfig.getVpnLabel(this, mConfig.user); in onCreate() 82 if (mConfig.configureIntent != null) { in onCreate() 116 mConfig.configureIntent.send(); in onClick() 119 if (mConfig.legacy) { in onClick() [all …]
|
/frameworks/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 78 effect_config_t mConfig; member 97 pContext->mCompressor->Initialize(targetAmp, pContext->mConfig.inputCfg.samplingRate); in LE_reset() 129 pContext->mConfig = *pConfig; in LE_setConfig() 153 *pConfig = pContext->mConfig; in LE_getConfig() 173 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LE_init() 174 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LE_init() 175 pContext->mConfig.inputCfg.format = kProcessFormat; in LE_init() 176 pContext->mConfig.inputCfg.samplingRate = 44100; in LE_init() 177 pContext->mConfig.inputCfg.bufferProvider.getBuffer = NULL; in LE_init() 178 pContext->mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in LE_init() [all …]
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/ |
D | CarDisplayCompatConfigTest.java | 66 private CarDisplayCompatConfig mConfig; field in CarDisplayCompatConfigTest 74 mConfig = new CarDisplayCompatConfig(); in setUp() 89 mConfig.populate(in); in populate_readsDisplay() 94 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsDisplay() 101 mConfig.populate(in); in populate_readsUserId() 105 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsUserId() 113 mConfig.populate(in); in populate_readsPackageName() 118 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsPackageName() 126 mConfig.populate(in); in populate_readsAllAttributes() 130 assertThat(mConfig.getScaleFactor(key, NO_SCALE)).isEqualTo(0.7f); in populate_readsAllAttributes()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierDisplayNameResolverTest.java | 63 private PersistableBundle mConfig; field in CarrierDisplayNameResolverTest 83 mConfig = mContextFixture.getCarrierConfigBundle(); in setUp() 86 doReturn(mConfig).when(mockConfigManager).getConfigForSubId(anyInt()); in setUp() 106 mConfig = null; in tearDown() 114 mConfig.putString(CarrierConfigManager.KEY_CARRIER_NAME_STRING, SPN_FROM_CC); in testUpdateSPNFromHigherPrioritySource_shouldOverrideRecord() 117 mCdnr.updateEfFromCarrierConfig(mConfig); in testUpdateSPNFromHigherPrioritySource_shouldOverrideRecord() 194 mConfig.putInt(CarrierConfigManager.KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, 1); in testShouldShowSPNFromSourceCC_conditionOverrideShowPLMN_notShowSPN() 197 mCdnr.updateEfFromCarrierConfig(mConfig); in testShouldShowSPNFromSourceCC_conditionOverrideShowPLMN_notShowSPN() 206 mConfig.putInt(CarrierConfigManager.KEY_SPN_DISPLAY_CONDITION_OVERRIDE_INT, 1); in testShouldShowPLMNFromSourceCC_conditionOverrideShowPLMN_shouldShowPLMN() 209 mCdnr.updateEfFromCarrierConfig(mConfig); in testShouldShowPLMNFromSourceCC_conditionOverrideShowPLMN_shouldShowPLMN() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 72 private final Configurator mConfig = Configurator.getInstance(); field in UiObject 151 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in getChildCount() 397 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in click() 403 mConfig.getActionAcknowledgmentTimeout()); in click() 437 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in clickAndWaitForNewWindow() 443 mConfig.getActionAcknowledgmentTimeout()); in clickAndWaitForNewWindow() 455 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in clickTopLeft() 472 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in longClickBottomRight() 489 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in clickBottomRight() 506 AccessibilityNodeInfo node = findAccessibilityNodeInfo(mConfig.getWaitForSelectorTimeout()); in longClick() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | BadgeExtractor.java | 31 private RankingConfig mConfig; field in BadgeExtractor 43 if (mConfig == null) { in process() 47 boolean userWantsBadges = mConfig.badgingEnabled(record.getSbn().getUser()); in process() 49 mConfig.canShowBadge(record.getSbn().getPackageName(), record.getSbn().getUid()); in process() 70 if (mConfig.isMediaNotificationFilteringEnabled()) { in process() 81 mConfig = config; in setConfig()
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ActivityRelaunchItem.java | 51 private MergedConfiguration mConfig; field in ActivityRelaunchItem 65 CompatibilityInfo.applyOverrideScaleIfNeeded(mConfig); in preExecute() 68 mPendingNewIntents, mConfigChanges, mConfig, mPreserveWindow, mActivityWindowInfo); in preExecute() 110 instance.mConfig = new MergedConfiguration(config); in obtain() 123 mConfig = null; in recycle() 140 dest.writeTypedObject(mConfig, flags); in writeToParcel() 151 mConfig = in.readTypedObject(MergedConfiguration.CREATOR); in ActivityRelaunchItem() 178 && mConfigChanges == other.mConfigChanges && Objects.equals(mConfig, other.mConfig) in equals() 190 result = 31 * result + Objects.hashCode(mConfig); in hashCode() 202 + ",config=" + mConfig in toString()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | SipDelegateConfiguration.java | 231 private final SipDelegateConfiguration mConfig; field in SipDelegateConfiguration.Builder 245 mConfig = new SipDelegateConfiguration(version, transportType, localAddr, in Builder() 260 mConfig = c.copyAndIncrementVersion(); in Builder() 272 mConfig.mIsSipCompactFormEnabled = isEnabled; in setSipCompactFormEnabled() 286 mConfig.mIsSipKeepaliveEnabled = isEnabled; in setSipKeepaliveEnabled() 300 mConfig.mMaxUdpPayloadSize = size; in setMaxUdpPayloadSizeBytes() 312 mConfig.mPublicUserIdentifier = id; in setPublicUserIdentifier() 324 mConfig.mPrivateUserIdentifier = id; in setPrivateUserIdentifier() 336 mConfig.mHomeDomain = domain; in setHomeDomain() 352 mConfig.mImei = imei; in setImei() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 44 private Config mConfig = new Config(); field in ScreenInternalAudioRecorder 91 mConfig.sampleRate, mConfig.channelInMask, in setupSimple() 92 mConfig.encoding) * 2; in setupSimple() 97 .setEncoding(mConfig.encoding) in setupSimple() 98 .setSampleRate(mConfig.sampleRate) in setupSimple() 99 .setChannelMask(mConfig.channelOutMask) in setupSimple() 116 mConfig.sampleRate, AudioFormat.CHANNEL_IN_MONO, mConfig.encoding, size); in setupSimple() 121 MediaFormat.MIMETYPE_AUDIO_AAC, mConfig.sampleRate, 1); in setupSimple() 124 medFormat.setInteger(MediaFormat.KEY_BIT_RATE, mConfig.bitRate); in setupSimple() 125 medFormat.setInteger(MediaFormat.KEY_PCM_ENCODING, mConfig.encoding); in setupSimple() [all …]
|
/frameworks/av/services/audioflinger/ |
D | Effects.cpp | 572 mConfig{{}, {}}, in EffectModule() 633 memset(mConfig.inputCfg.buffer.raw, in updateState_l() 635 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState_l() 666 mHandles[i]->framesProcessed(mConfig.inputCfg.buffer.frameCount); in updateState_l() 686 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process() 688 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in process() 699 mConfig.inputCfg.buffer.frameCount, in process() 700 mConfig.outputCfg.buffer.frameCount); in process() 703 mConfig.outputCfg.buffer.f32, in process() 704 mConfig.inputCfg.buffer.f32, in process() [all …]
|