/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 | ZenModeHelperTest.java | 550 mZenModeHelperSpy.mConfig.allowReminders = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 551 mZenModeHelperSpy.mConfig.allowCalls = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 552 mZenModeHelperSpy.mConfig.allowMessages = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 553 mZenModeHelperSpy.mConfig.allowEvents = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 554 mZenModeHelperSpy.mConfig.allowRepeatCallers = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 555 mZenModeHelperSpy.mConfig.allowConversations = false; in testZenSetInternalRinger_AllPriorityNotificationSoundsMuted() 591 mZenModeHelperSpy.mConfig.allowAlarms = true; in testRingerAffectedStreamsPriorityOnly() 592 mZenModeHelperSpy.mConfig.allowReminders = true; in testRingerAffectedStreamsPriorityOnly() 609 mZenModeHelperSpy.mConfig.allowSystem = false; in testRingerAffectedStreamsPriorityOnly() 610 mZenModeHelperSpy.mConfig.allowReminders = false; in testRingerAffectedStreamsPriorityOnly() [all …]
|
/frameworks/av/media/libstagefright/codecs/mp3dec/test/ |
D | Mp3DecoderTest.cpp | 41 Mp3DecoderTest() : mConfig(nullptr) {} in Mp3DecoderTest() 44 if (mConfig) { in ~Mp3DecoderTest() 45 delete mConfig; in ~Mp3DecoderTest() 46 mConfig = nullptr; in ~Mp3DecoderTest() 51 mConfig = new tPVMP3DecoderExternal{}; in SetUp() 52 ASSERT_NE(mConfig, nullptr) << "Failed to initialize config. No Memory available"; in SetUp() 53 mConfig->equalizerType = flat; in SetUp() 54 mConfig->crcEnabled = false; in SetUp() 57 tPVMP3DecoderExternal *mConfig; member in Mp3DecoderTest 76 mConfig->inputBufferCurrentLength = bytesRead; in DecodeFrames() [all …]
|
/frameworks/av/media/codec2/sfplugin/tests/ |
D | CCodecConfig_test.cpp | 236 CCodecConfig mConfig; member in android::CCodecConfigTest 256 ASSERT_EQ(OK, mConfig.initialize(mReflector, mConfigurable)); in TEST_F() 264 ASSERT_EQ(OK, mConfig.getConfigUpdateFromSdkParams( in TEST_F() 289 ASSERT_EQ(OK, mConfig.initialize(mReflector, mConfigurable)); in TEST_F() 301 ASSERT_FALSE(mConfig.updateConfiguration(configUpdate, D::ALL)); in TEST_F() 304 ASSERT_FALSE(mConfig.mInputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 305 << "mInputFormat = " << mConfig.mInputFormat->debugString().c_str(); in TEST_F() 306 ASSERT_FALSE(mConfig.mOutputFormat->findInt32(KEY_VENDOR_INT32, &vendorInt32)) in TEST_F() 307 << "mOutputFormat = " << mConfig.mOutputFormat->debugString().c_str(); in TEST_F() 310 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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 80 private final PasspointConfiguration mConfig; field in PasspointProvider 123 mConfig = new PasspointConfiguration(config); in PasspointProvider() 138 if (mConfig.getCredential().getUserCredential() != null) { in PasspointProvider() 141 mConfig.getCredential().getUserCredential().getNonEapInnerMethod())); in PasspointProvider() 143 } else if (mConfig.getCredential().getCertCredential() != null) { in PasspointProvider() 148 mEAPMethodID = mConfig.getCredential().getSimCredential().getEapType(); in PasspointProvider() 151 mConfig.getCredential().getSimCredential().getImsi()); in PasspointProvider() 173 return new PasspointConfiguration(mConfig); in getConfig() 219 boolean changed = mConfig.isAutojoinEnabled() != autoJoinEnabled; in setAutojoinEnabled() 220 mConfig.setAutojoinEnabled(autoJoinEnabled); in setAutojoinEnabled() [all …]
|
/frameworks/base/core/java/android/net/ |
D | VpnService.java | 482 private final VpnConfig mConfig = new VpnConfig(); field in VpnService.Builder 489 mConfig.user = VpnService.this.getClass().getName(); in Builder() 499 mConfig.session = session; in setSession() 510 mConfig.configureIntent = intent; in setConfigureIntent() 526 mConfig.mtu = mtu; in setMtu() 536 mConfig.proxyInfo = proxyInfo; in setHttpProxy() 558 mConfig.updateAllowedFamilies(address); in addAddress() 601 mConfig.updateAllowedFamilies(address); in addRoute() 636 if (mConfig.dnsServers == null) { in addDnsServer() 637 mConfig.dnsServers = new ArrayList<String>(); in addDnsServer() [all …]
|
D | IpSecTransform.java | 94 mConfig = new IpSecConfig(config); in IpSecTransform() 137 mConfig, new Binder(), mContext.getOpPackageName()); in activate() 208 return mConfig; in getConfig() 211 private final IpSecConfig mConfig; field in IpSecTransform 315 mConfig.getNetwork(), intervalSeconds, mKeepaliveCallback, in startNattKeepalive() 316 NetworkUtils.numericToInetAddress(mConfig.getSourceAddress()), in startNattKeepalive() 318 NetworkUtils.numericToInetAddress(mConfig.getDestinationAddress())); in startNattKeepalive() 349 private IpSecConfig mConfig; field in IpSecTransform.Builder 362 mConfig.setEncryption(algo); in setEncryption() 377 mConfig.setAuthentication(algo); in setAuthentication() [all …]
|
D | NetworkAgentConfig.java | 232 private final NetworkAgentConfig mConfig = new NetworkAgentConfig(); field in NetworkAgentConfig.Builder 241 mConfig.explicitlySelected = explicitlySelected; in setExplicitlySelected() 254 mConfig.acceptUnvalidated = unvalidatedConnectivityAcceptable; in setUnvalidatedConnectivityAcceptable() 267 mConfig.acceptPartialConnectivity = partialConnectivityAcceptable; in setPartialConnectivityAcceptable() 279 mConfig.subscriberId = subscriberId; in setSubscriberId() 292 mConfig.skip464xlat = true; in disableNat64Detection() 305 mConfig.provisioningNotificationDisabled = true; in disableProvisioningNotification() 317 mConfig.legacyType = legacyType; in setLegacyType() 328 mConfig.legacyTypeName = legacyTypeName; in setLegacyTypeName() 340 mConfig.mLegacyExtraInfo = legacyExtraInfo; in setLegacyExtraInfo() [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/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 …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | AuthContainerView.java | 76 final Config mConfig; field in AuthContainerView 120 Config mConfig; field in AuthContainerView.Builder 123 mConfig = new Config(); in Builder() 124 mConfig.mContext = context; in Builder() 128 mConfig.mCallback = callback; in setCallback() 133 mConfig.mBiometricPromptBundle = bundle; in setBiometricPromptBundle() 138 mConfig.mRequireConfirmation = requireConfirmation; in setRequireConfirmation() 143 mConfig.mUserId = userId; in setUserId() 148 mConfig.mOpPackageName = opPackageName; in setOpPackageName() 153 mConfig.mSkipIntro = skip; in setSkipIntro() [all …]
|
/frameworks/av/media/codec2/components/mp3/ |
D | C2SoftMp3Dec.cpp | 100 mConfig(nullptr), in C2SoftMP3() 116 pvmp3_InitDecoder(mConfig, mDecoderBuf); in onStop() 137 if (mConfig) { in onRelease() 138 delete mConfig; in onRelease() 139 mConfig = nullptr; in onRelease() 144 mConfig = new tPVMP3DecoderExternal{}; in initDecoder() 145 if (!mConfig) return NO_MEMORY; in initDecoder() 146 mConfig->equalizerType = flat; in initDecoder() 147 mConfig->crcEnabled = false; in initDecoder() 153 pvmp3_InitDecoder(mConfig, mDecoderBuf); in initDecoder() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/protolog/ |
D | ProtoLogViewerConfigReaderTest.java | 76 mConfig = new ProtoLogViewerConfigReader(); field in ProtoLogViewerConfigReaderTest 96 assertNull(mConfig.getViewerString(1)); in getViewerString_notLoaded() 101 mConfig.loadViewerConfig(null, 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(null, "/tmp/unknown/file/does/not/exist"); in loadViewerConfig_invalidFile() 112 assertNull(mConfig.getViewerString(1)); in loadViewerConfig_invalidFile()
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ManageDialog.java | 42 private VpnConfig mConfig; field in ManageDialog 62 mConfig = mService.getVpnConfig(UserHandle.myUserId()); in onCreate() 65 if (mConfig == null) { in onCreate() 71 if (mConfig.session != null) { in onCreate() 72 ((TextView) view.findViewById(R.id.session)).setText(mConfig.session); in onCreate() 79 if (mConfig.legacy) { in onCreate() 82 mAlertParams.mTitle = VpnConfig.getVpnLabel(this, mConfig.user); in onCreate() 84 if (mConfig.configureIntent != null) { in onCreate() 117 mConfig.configureIntent.send(); in onClick() 120 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/layoutlib/bridge/src/android/view/shadow/ |
D | AmbientShadowVertexCalculator.java | 31 private final AmbientShadowConfig mConfig; field in AmbientShadowVertexCalculator 34 mConfig = config; in AmbientShadowVertexCalculator() 36 int size = mConfig.getPolygon().length / 3; in AmbientShadowVertexCalculator() 47 float[] polygon = mConfig.getPolygon(); in generateVertex() 48 float cx = mConfig.getLightSourcePosition()[0]; in generateVertex() 49 float cy = mConfig.getLightSourcePosition()[1]; in generateVertex() 53 float opacity = .8f * (0.5f / (mConfig.getEdgeScale() / 10f)); in generateVertex() 69 float h = polygon[3 * i + 2] * mConfig.getShadowBoundRatio(); in generateVertex()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 125 @VisibleForTesting protected ZenModeConfig mConfig; field in ZenModeHelper 149 mConfig = mDefaultConfig.copy(); in ZenModeHelper() 150 mConfigs.put(UserHandle.USER_SYSTEM, mConfig); in ZenModeHelper() 151 mConsolidatedPolicy = mConfig.toNotificationPolicy(); in ZenModeHelper() 172 synchronized (mConfig) { in matchesCallFilter() 187 synchronized (mConfig) { in shouldIntercept() 247 synchronized (mConfig) { in loadConfigForUser() 281 synchronized (mConfig) { in getZenRules() 282 if (mConfig == null) return rules; in getZenRules() 283 for (ZenRule rule : mConfig.automaticRules.values()) { in getZenRules() [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/av/services/audioflinger/ |
D | Effects.cpp | 522 mConfig{{}, {}}, in EffectModule() 594 memset(mConfig.inputCfg.buffer.raw, in updateState() 596 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState() 639 audio_channel_count_from_out_mask(mConfig.inputCfg.channels); in process() 641 audio_channel_count_from_out_mask(mConfig.outputCfg.channels); in process() 652 mConfig.inputCfg.buffer.frameCount, in process() 653 mConfig.outputCfg.buffer.frameCount); in process() 657 mConfig.outputCfg.buffer.f32, in process() 658 mConfig.inputCfg.buffer.f32, in process() 662 mConfig.outputCfg.buffer.s16, in process() [all …]
|
/frameworks/native/services/inputflinger/reader/ |
D | InputReader.cpp | 195 device->configure(when, &mConfig, 0); in addDeviceLocked() 245 device->configure(when, &mConfig, 0); in removeDeviceLocked() 320 mPolicy->getReaderConfiguration(&mConfig); in refreshConfigurationLocked() 321 mEventHub->setExcludedDevices(mConfig.excludedDeviceNames); in refreshConfigurationLocked() 337 device->configure(now, &mConfig, changes); in refreshConfigurationLocked() 410 mConfig.getDisplayViewportById(mConfig.defaultPointerDisplayId); in updatePointerDisplayLocked() 414 mConfig.defaultPointerDisplayId); in updatePointerDisplayLocked() 415 viewport = mConfig.getDisplayViewportById(ADISPLAY_ID_DEFAULT); in updatePointerDisplayLocked() 633 for (size_t i = 0; i < mConfig.excludedDeviceNames.size(); i++) { in dump() 637 dump += mConfig.excludedDeviceNames[i]; in dump() [all …]
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ActivityRelaunchItem.java | 46 private MergedConfiguration mConfig; field in ActivityRelaunchItem 58 mPendingNewIntents, mConfigChanges, mConfig, mPreserveWindow); in preExecute() 94 instance.mConfig = config; in obtain() 105 mConfig = null; in recycle() 120 dest.writeTypedObject(mConfig, flags); in writeToParcel() 129 mConfig = in.readTypedObject(MergedConfiguration.CREATOR); in ActivityRelaunchItem() 155 && mConfigChanges == other.mConfigChanges && Objects.equals(mConfig, other.mConfig) in equals() 165 result = 31 * result + Objects.hashCode(mConfig); in hashCode() 174 + ",config=" + mConfig + ",preserveWindow" + mPreserveWindow + "}"; in toString()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdnr/ |
D | CarrierConfigEfData.java | 36 private final PersistableBundle mConfig; field in CarrierConfigEfData 39 mConfig = config; in CarrierConfigEfData() 44 String spn = mConfig.getString(CarrierConfigManager.KEY_CARRIER_NAME_STRING); in getServiceProviderName() 51 int condition = mConfig.getInt( in getServiceProviderNameDisplayCondition() 59 String[] spdi = mConfig.getStringArray( in getServiceProviderDisplayInformation() 66 String[] ehplmn = mConfig.getStringArray( in getEhplmnList() 73 String[] pnn = mConfig.getStringArray( in getPlmnNetworkNameList() 95 String[] opl = mConfig.getStringArray( in getOperatorPlmnList()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 207 protected VpnConfig mConfig; field in Vpn 323 if (mConfig == null) { in updateCapabilities() 328 Network[] underlyingNetworks = mConfig.underlyingNetworks; in updateCapabilities() 334 final boolean isAlwaysMetered = mIsPackageTargetingAtLeastQ && mConfig.isMetered; in updateCapabilities() 875 mConfig = null; in prepareInternal() 1007 boolean allowIPv4 = mConfig.allowIPv4; 1008 boolean allowIPv6 = mConfig.allowIPv6; 1014 if (mConfig.addresses != null) { 1015 for (LinkAddress address : mConfig.addresses) { 1022 if (mConfig.routes != null) { [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 43 private Config mConfig = new Config(); field in ScreenInternalAudioRecorder 89 mConfig.sampleRate, mConfig.channelInMask, in setupSimple() 90 mConfig.encoding) * 2; in setupSimple() 95 .setEncoding(mConfig.encoding) in setupSimple() 96 .setSampleRate(mConfig.sampleRate) in setupSimple() 97 .setChannelMask(mConfig.channelOutMask) in setupSimple() 114 mConfig.sampleRate, AudioFormat.CHANNEL_IN_MONO, mConfig.encoding, size); in setupSimple() 119 MediaFormat.MIMETYPE_AUDIO_AAC, mConfig.sampleRate, 1); in setupSimple() 122 medFormat.setInteger(MediaFormat.KEY_BIT_RATE, mConfig.bitRate); in setupSimple() 123 medFormat.setInteger(MediaFormat.KEY_PCM_ENCODING, mConfig.encoding); in setupSimple() [all …]
|