/frameworks/base/core/java/android/net/ |
D | IpSecTransform.java | 100 mConfig = config; in IpSecTransform() 140 svc.createTransportModeTransform(mConfig, new Binder()); in activate() 204 return mConfig; in getConfig() 207 private final IpSecConfig mConfig; field in IpSecTransform 245 if (mConfig.getNattKeepaliveInterval() == 0) { in startKeepalive() 260 mConfig.getNetwork(), in startKeepalive() 261 mConfig.getNattKeepaliveInterval(), in startKeepalive() 263 mConfig.getLocalAddress(), in startKeepalive() 268 mConfig.getRemoteAddress()); in startKeepalive() 311 private IpSecConfig mConfig; field in IpSecTransform.Builder [all …]
|
D | VpnService.java | 442 private final VpnConfig mConfig = new VpnConfig(); field in VpnService.Builder 447 mConfig.user = VpnService.this.getClass().getName(); in Builder() 456 mConfig.session = session; in setSession() 466 mConfig.configureIntent = intent; in setConfigureIntent() 481 mConfig.mtu = mtu; in setMtu() 502 mConfig.updateAllowedFamilies(address); in addAddress() 543 mConfig.updateAllowedFamilies(address); in addRoute() 576 if (mConfig.dnsServers == null) { in addDnsServer() 577 mConfig.dnsServers = new ArrayList<String>(); in addDnsServer() 579 mConfig.dnsServers.add(address.getHostAddress()); in addDnsServer() [all …]
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | GridLayoutManagerRtlTest.java | 43 mConfig = config; in GridLayoutManagerRtlTest() 68 final Config mConfig; field in GridLayoutManagerRtlTest 76 if (mOneLine && mConfig.mOrientation != VERTICAL) { in rtlTest() 79 if (mConfig.mSpanCount == 1) { in rtlTest() 80 mConfig.mSpanCount = 2; in rtlTest() 82 String logPrefix = mConfig + ", changeRtlAfterLayout:" + mChangeRtlAfter + "," in rtlTest() 84 mConfig.mItemCount = 5; in rtlTest() 86 mConfig.mSpanCount = mConfig.mItemCount + 1; in rtlTest() 88 mConfig.mSpanCount = Math.min(mConfig.mItemCount - 1, mConfig.mSpanCount); in rtlTest() 91 RecyclerView rv = setupBasic(mConfig, new GridTestAdapter(mConfig.mItemCount) { in rtlTest() [all …]
|
D | StaggeredGridLayoutManagerBaseConfigSetTest.java | 63 private final Config mConfig; field in StaggeredGridLayoutManagerBaseConfigSetTest 67 mConfig = (Config) config.clone(); in StaggeredGridLayoutManagerBaseConfigSetTest() 91 if (mConfig.mSpanCount == 1) { in rtlTest() 92 mConfig.mSpanCount = 2; in rtlTest() 94 String logPrefix = mConfig + ", changeRtlAfterLayout:" + changeRtlAfter; in rtlTest() 95 setupByConfig(mConfig.itemCount(5), in rtlTest() 96 new GridTestAdapter(mConfig.mItemCount, mConfig.mOrientation) { in rtlTest() 125 View child1 = mLayoutManager.findViewByPosition(mConfig.mOrientation == VERTICAL ? 1 in rtlTest() 126 : mConfig.mSpanCount); in rtlTest() 130 if (mConfig.mOrientation == VERTICAL || !mConfig.mReverseLayout) { in rtlTest() [all …]
|
D | StaggeredGridLayoutManagerSavedStateTest.java | 39 private final Config mConfig; field in StaggeredGridLayoutManagerSavedStateTest 47 this.mConfig = (Config) config.clone(); in StaggeredGridLayoutManagerSavedStateTest() 146 + mConfig + " post layout action " + mPostLayoutOperations.describe()); in savedState() 148 setupByConfig(mConfig); in savedState() 190 mLayoutManager = new WrappedLayoutManager(mConfig.mSpanCount, mConfig.mOrientation); in savedState() 191 mLayoutManager.setGapStrategy(mConfig.mGapStrategy); in savedState() 206 assertEquals(mConfig + " on saved state, reverse layout should be preserved", in savedState() 207 mConfig.mReverseLayout, mLayoutManager.getReverseLayout()); in savedState() 208 assertEquals(mConfig + " on saved state, orientation should be preserved", in savedState() 209 mConfig.mOrientation, mLayoutManager.getOrientation()); in savedState() [all …]
|
D | LinearLayoutManagerWrapContentTest.java | 42 Config mConfig; field in LinearLayoutManagerWrapContentTest 47 mConfig = config; in LinearLayoutManagerWrapContentTest() 53 unspecifiedWithHintTest(mConfig.mOrientation == StaggeredGridLayoutManager.HORIZONTAL); in testUnspecifiedWithHint() 151 LinearLayoutManager llm = new LinearLayoutManager(getActivity(), mConfig.mOrientation, in createFromConfig() 152 mConfig.mReverseLayout); in createFromConfig() 153 llm.setStackFromEnd(mConfig.mStackFromEnd); in createFromConfig() 159 if (mConfig.mOrientation == HORIZONTAL) { in getVerticalGravity() 162 if (mConfig.mReverseLayout ^ mConfig.mStackFromEnd) { in getVerticalGravity() 171 if (mConfig.mOrientation == VERTICAL) { in getHorizontalGravity() 177 boolean end = mConfig.mReverseLayout ^ mConfig.mStackFromEnd; in getHorizontalGravity()
|
D | StaggeredGridLayoutManagerGapTest.java | 37 private final Config mConfig; field in StaggeredGridLayoutManagerGapTest 42 mConfig = config; in StaggeredGridLayoutManagerGapTest() 64 if (mConfig.mSpanCount < 2 || mConfig.mGapStrategy == GAP_HANDLING_NONE) { in gapAtTheBeginningOfTheListTest() 67 if (mConfig.mItemCount < 100) { in gapAtTheBeginningOfTheListTest() 68 mConfig.itemCount(100); in gapAtTheBeginningOfTheListTest() 70 setupByConfig(mConfig); in gapAtTheBeginningOfTheListTest() 74 smoothScrollToPosition(mConfig.mItemCount / 2); in gapAtTheBeginningOfTheListTest() 100 setupByConfig(mConfig); in gapAtTheBeginningOfTheListTest()
|
D | GridLayoutManagerCachedBordersTest.java | 45 private final Config mConfig; field in GridLayoutManagerCachedBordersTest 48 mConfig = config; in GridLayoutManagerCachedBordersTest() 54 RecyclerView recyclerView = setupBasic(mConfig); in gridCachedBorderstTest() 58 final boolean vertical = mConfig.mOrientation == GridLayoutManager.VERTICAL; in gridCachedBorderstTest() 61 for (int i = 0; i < lastVisible; i += mConfig.mSpanCount) { in gridCachedBorderstTest() 62 if ((i + 1) * mConfig.mSpanCount - 1 < lastVisible) { in gridCachedBorderstTest() 64 for (int j = 0; j < mConfig.mSpanCount; j++) { in gridCachedBorderstTest() 65 View child = recyclerView.getChildAt(i * mConfig.mSpanCount + j); in gridCachedBorderstTest()
|
D | LinearLayoutManagerWrapContentWithAspectRatioTest.java | 44 final LinearLayoutManagerTest.Config mConfig; field in LinearLayoutManagerWrapContentWithAspectRatioTest 52 mConfig = config; in LinearLayoutManagerWrapContentWithAspectRatioTest() 114 int testOrientation = mConfig.mOrientation == VERTICAL ? HORIZONTAL : VERTICAL; in wrapContentAffectsOtherOrientation() 156 assertThat("first child dependant size", getSize(itemView1, mConfig.mOrientation), in wrapContentAffectsOtherOrientation() 162 assertThat("second child dependant size", getSize(itemView2, mConfig.mOrientation), in wrapContentAffectsOtherOrientation() 168 assertThat("third child dependant size", getSize(itemView3, mConfig.mOrientation), in wrapContentAffectsOtherOrientation() 202 final int totalScrollSize = getSize(itemView1, mConfig.mOrientation) in wrapContentAffectsOtherOrientation() 203 + getSize(itemView2, mConfig.mOrientation) in wrapContentAffectsOtherOrientation() 204 + getSize(itemView3, mConfig.mOrientation); in wrapContentAffectsOtherOrientation() 206 getSize(mRecyclerView, mConfig.mOrientation), CoreMatchers.is(totalScrollSize)); in wrapContentAffectsOtherOrientation() [all …]
|
D | LinearLayoutManagerSavedStateTest.java | 40 final Config mConfig; field in LinearLayoutManagerSavedStateTest 49 mConfig = config; in LinearLayoutManagerSavedStateTest() 274 mConfig + " post layout action " + mPostLayoutOperation.describe() + in savedStateTest() 277 setupByConfig(mConfig, false); in savedStateTest() 308 mConfig.mOrientation, mConfig.mReverseLayout); in savedStateTest() 309 mLayoutManager.setStackFromEnd(mConfig.mStackFromEnd); in savedStateTest() 320 mPostRestoreOperation.onAfterRestore(mConfig); in savedStateTest() 327 final String logPrefix = mConfig + "\npostLayout:" + mPostLayoutOperation.describe() + in savedStateTest() 330 mConfig.mReverseLayout, mLayoutManager.getReverseLayout()); in savedStateTest() 332 mConfig.mOrientation, mLayoutManager.getOrientation()); in savedStateTest() [all …]
|
D | StaggeredGridLayoutManagerCacheTest.java | 42 final Config mConfig; field in StaggeredGridLayoutManagerCacheTest 47 mConfig = config; in StaggeredGridLayoutManagerCacheTest() 79 int[] positions = new int[mConfig.mSpanCount]; in findFirstVisibleItemPosition() 86 int[] positions = new int[mConfig.mSpanCount]; in findLastVisibleItemPosition() 89 return positions[mConfig.mSpanCount - 1]; in findLastVisibleItemPosition() 95 final Config config = (Config) mConfig.clone(); in cacheAndPrefetch() 106 mRecyclerView.scrollToPosition(mConfig.mItemCount / 2); in cacheAndPrefetch() 141 if (mConfig.mReverseLayout == reverseScroll) { in cacheAndPrefetch()
|
D | GridLayoutManagerWrapContentWithAspectRatioTest.java | 72 private GridLayoutManagerTest.Config mConfig; field in GridLayoutManagerWrapContentWithAspectRatioTest 89 mConfig = config; in GridLayoutManagerWrapContentWithAspectRatioTest() 97 if (mConfig.mOrientation == VERTICAL) { in init() 108 mLayoutManager, 1 - mConfig.mOrientation); in init() 146 mConfig.mSpanCount, parentSize); in testChildWithMultipleSpans() 155 assertThat(behavior1.getSpec(1, mConfig.mOrientation), in testChildWithMultipleSpans() 167 assertThat(behavior1.getSpec(2, mConfig.mOrientation), in testChildWithMultipleSpans() 175 assertThat(behavior2.getSpec(1, mConfig.mOrientation), in testChildWithMultipleSpans() 223 int[] borders = GridLayoutManager.calculateItemBorders(null, mConfig.mSpanCount, in testChildWithMatchParentInOtherDirection() 233 assertThat(behavior1.getSpec(1, mConfig.mOrientation), in testChildWithMatchParentInOtherDirection() [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() 312 mConfig->pInputBuffer = in onQueueFilled() 315 mConfig->inputBufferCurrentLength = inHeader->nFilledLen; in onQueueFilled() 317 mConfig->pInputBuffer = NULL; in onQueueFilled() 318 mConfig->inputBufferCurrentLength = 0; in onQueueFilled() [all …]
|
/frameworks/base/services/tests/notification/src/com/android/server/notification/ |
D | BadgeExtractorTest.java | 47 @Mock RankingConfig mConfig; field in BadgeExtractorTest 64 when(mConfig.getNotificationChannel(mPkg, mUid, "a", false)).thenReturn(channel); in getNotificationRecord() 86 extractor.setConfig(mConfig); in testAppYesChannelNo() 88 when(mConfig.badgingEnabled(mUser)).thenReturn(true); in testAppYesChannelNo() 89 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(true); in testAppYesChannelNo() 100 extractor.setConfig(mConfig); in testAppNoChannelYes() 102 when(mConfig.badgingEnabled(mUser)).thenReturn(true); in testAppNoChannelYes() 103 when(mConfig.canShowBadge(mPkg, mUid)).thenReturn(false); in testAppNoChannelYes() 114 extractor.setConfig(mConfig); in testAppYesChannelYes() 116 when(mConfig.badgingEnabled(mUser)).thenReturn(true); in testAppYesChannelYes() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | PasspointProvider.java | 68 private final PasspointConfiguration mConfig; field in PasspointProvider 102 mConfig = new PasspointConfiguration(config); in PasspointProvider() 112 if (mConfig.getCredential().getUserCredential() != null) { in PasspointProvider() 115 mConfig.getCredential().getUserCredential().getNonEapInnerMethod())); in PasspointProvider() 118 } else if (mConfig.getCredential().getCertCredential() != null) { in PasspointProvider() 124 mEAPMethodID = mConfig.getCredential().getSimCredential().getEapType(); in PasspointProvider() 127 mConfig.getCredential().getSimCredential().getImsi()); in PasspointProvider() 134 return new PasspointConfiguration(mConfig); in getConfig() 174 if (mConfig.getCredential().getCaCertificate() != null) { in installCertsAndKeys() 177 mConfig.getCredential().getCaCertificate())) { in installCertsAndKeys() [all …]
|
/frameworks/base/core/java/android/security/net/config/ |
D | RootTrustManager.java | 41 private final ApplicationConfig mConfig; field in RootTrustManager 47 mConfig = config; in RootTrustManager() 55 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 64 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 73 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkClientTrusted() 87 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted() 103 NetworkSecurityConfig config = mConfig.getConfigForHostname(host); in checkServerTrusted() 110 if (mConfig.hasPerDomainConfigs()) { in checkServerTrusted() 115 NetworkSecurityConfig config = mConfig.getConfigForHostname(""); in checkServerTrusted() 126 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()
|
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/av/media/libeffects/loudness/ |
D | EffectLoudnessEnhancer.cpp | 58 effect_config_t mConfig; member 77 pContext->mCompressor->Initialize(targetAmp, pContext->mConfig.inputCfg.samplingRate); in LE_reset() 116 pContext->mConfig = *pConfig; in LE_setConfig() 140 *pConfig = pContext->mConfig; in LE_getConfig() 160 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LE_init() 161 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LE_init() 162 pContext->mConfig.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in LE_init() 163 pContext->mConfig.inputCfg.samplingRate = 44100; in LE_init() 164 pContext->mConfig.inputCfg.bufferProvider.getBuffer = NULL; in LE_init() 165 pContext->mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in LE_init() [all …]
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
D | ManageDialog.java | 42 private VpnConfig mConfig; field in ManageDialog 68 mConfig = mService.getVpnConfig(UserHandle.myUserId()); in onCreate() 71 if (mConfig == null) { in onCreate() 77 if (mConfig.session != null) { in onCreate() 78 ((TextView) view.findViewById(R.id.session)).setText(mConfig.session); in onCreate() 85 if (mConfig.legacy) { in onCreate() 88 mAlertParams.mTitle = VpnConfig.getVpnLabel(this, mConfig.user); in onCreate() 90 if (mConfig.configureIntent != null) { in onCreate() 123 mConfig.configureIntent.send(); in onClick() 126 if (mConfig.legacy) { in onClick() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ZenModeHelper.java | 107 protected ZenModeConfig mConfig; field in ZenModeHelper 135 mConfig = mDefaultConfig; in ZenModeHelper() 136 mConfigs.put(UserHandle.USER_SYSTEM, mConfig); in ZenModeHelper() 157 synchronized (mConfig) { in matchesCallFilter() 158 return ZenModeFiltering.matchesCallFilter(mContext, mZenMode, mConfig, userHandle, in matchesCallFilter() 172 synchronized (mConfig) { in shouldIntercept() 173 return mFiltering.shouldIntercept(mZenMode, mConfig, record); in shouldIntercept() 178 synchronized (mConfig) { in shouldSuppressWhenScreenOff() 179 return !mConfig.allowWhenScreenOff; in shouldSuppressWhenScreenOff() 184 synchronized (mConfig) { in shouldSuppressWhenScreenOn() [all …]
|
D | BadgeExtractor.java | 28 private RankingConfig mConfig; field in BadgeExtractor 40 if (mConfig == null) { in process() 44 boolean userWantsBadges = mConfig.badgingEnabled(record.sbn.getUser()); in process() 46 mConfig.canShowBadge(record.sbn.getPackageName(), record.sbn.getUid()); in process() 62 mConfig = config; in setConfig()
|
/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 | 246 memset(mConfig.inputCfg.buffer.raw, in updateState() 248 mConfig.inputCfg.buffer.frameCount*sizeof(int32_t)); in updateState() 291 ditherAndClamp(mConfig.inputCfg.buffer.s32, in process() 292 mConfig.inputCfg.buffer.s32, in process() 293 mConfig.inputCfg.buffer.frameCount/2); in process() 300 if (mConfig.inputCfg.buffer.raw != mConfig.outputCfg.buffer.raw) { in process() 301 size_t frameCnt = mConfig.inputCfg.buffer.frameCount * FCC_2; //always stereo here in process() 302 int16_t *in = mConfig.inputCfg.buffer.s16; in process() 303 int16_t *out = mConfig.outputCfg.buffer.s16; in process() 305 if (mConfig.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE) { in process() [all …]
|
/frameworks/av/media/libeffects/visualizer/ |
D | EffectVisualizer.cpp | 78 effect_config_t mConfig; member 151 pContext->mConfig = *pConfig; in Visualizer_setConfig() 175 *pConfig = pContext->mConfig; in Visualizer_getConfig() 193 pContext->mConfig.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Visualizer_init() 194 pContext->mConfig.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Visualizer_init() 195 pContext->mConfig.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Visualizer_init() 196 pContext->mConfig.inputCfg.samplingRate = 44100; in Visualizer_init() 197 pContext->mConfig.inputCfg.bufferProvider.getBuffer = NULL; in Visualizer_init() 198 pContext->mConfig.inputCfg.bufferProvider.releaseBuffer = NULL; in Visualizer_init() 199 pContext->mConfig.inputCfg.bufferProvider.cookie = NULL; in Visualizer_init() [all …]
|