Home
last modified time | relevance | path

Searched refs:mConfig (Results 1 – 25 of 155) sorted by relevance

1234567

/frameworks/ex/camera2/extensions/service_based_sample/extensions_service/src/com/android/oemextensions/
DCameraOutputConfigBuilder.java29 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/
DBadgeExtractorTest.java54 @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 …]
DVisibilityExtractorTest.java52 @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/
DMp3DecoderTest.cpp42 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/
DCCodecConfig_test.cpp294 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/
DEditorTouchStateTest.java44 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/
DFakeInputReaderPolicy.cpp63 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/
DSoftMP3.cpp45 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/
Dmp3_dec_fuzzer.cpp161 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/
DRootTrustManager.java43 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 …]
DConfigNetworkSecurityPolicy.java25 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()
DTrustedCertificateStoreAdapter.java29 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/
DVpnService.java491 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/
DProtoLogViewerConfigReaderTest.java76 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/
DC2SoftMp3Dec.cpp101 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/
DManageDialog.java42 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/
DEffectLoudnessEnhancer.cpp78 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/
DCarDisplayCompatConfigTest.java66 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/
DCarrierDisplayNameResolverTest.java63 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/
DUiObject.java72 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/
DBadgeExtractor.java31 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/
DActivityRelaunchItem.java51 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/
DSipDelegateConfiguration.java231 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/
DScreenInternalAudioRecorder.java44 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/
DEffects.cpp572 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 …]

1234567