Home
last modified time | relevance | path

Searched refs:configuration (Results 1 – 25 of 538) sorted by relevance

12345678910>>...22

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayAdjustmentsTests.java53 Configuration configuration = new Configuration(); in testConfigurationConstructor_copiesConfiguration() local
54 configuration.colorMode = 1000; in testConfigurationConstructor_copiesConfiguration()
55 DisplayAdjustments adjustments = new DisplayAdjustments(configuration); in testConfigurationConstructor_copiesConfiguration()
57 assertEquals(configuration, adjustments.getConfiguration()); in testConfigurationConstructor_copiesConfiguration()
62 Configuration configuration = new Configuration(); in testDisplayAdjustmentsConstructor_copiesConfiguration() local
63 configuration.colorMode = 1000; in testDisplayAdjustmentsConstructor_copiesConfiguration()
64 DisplayAdjustments oldAdjustments = new DisplayAdjustments(configuration); in testDisplayAdjustmentsConstructor_copiesConfiguration()
68 assertEquals(configuration, newAdjustments.getConfiguration()); in testDisplayAdjustmentsConstructor_copiesConfiguration()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/
DConfigurationInternalTest.java83 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_unrestricted() local
84 assertTrue(configuration.isAutoDetectionEnabled()); in test_unrestricted()
85 assertTrue(configuration.isGeoDetectionEnabled()); in test_unrestricted()
109 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_unrestricted() local
110 assertFalse(configuration.isAutoDetectionEnabled()); in test_unrestricted()
111 assertTrue(configuration.isGeoDetectionEnabled()); in test_unrestricted()
151 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_restricted() local
152 assertTrue(configuration.isAutoDetectionEnabled()); in test_restricted()
153 assertTrue(configuration.isGeoDetectionEnabled()); in test_restricted()
178 TimeZoneConfiguration configuration = capabilitiesAndConfig.getConfiguration(); in test_restricted() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DRemoteInputQuickSettingsDisablerTest.kt44 private lateinit var configuration: Configuration variable in com.android.systemui.statusbar.policy.RemoteInputQuickSettingsDisablerTest
54 configuration = Configuration(mContext.resources.configuration) in setUp()
60 configuration.orientation = Configuration.ORIENTATION_LANDSCAPE in setUp()
61 remoteInputQuickSettingsDisabler.onConfigChanged(configuration) in setUp()
90 remoteInputQuickSettingsDisabler.onConfigChanged(configuration) in whenSplitShadeEnabled_shouldNotDisableQs()
102 configuration.orientation = Configuration.ORIENTATION_PORTRAIT in whenPortrait_shouldNotDisableQs()
103 remoteInputQuickSettingsDisabler.onConfigChanged(configuration) in whenPortrait_shouldNotDisableQs()
124 configuration.orientation = Configuration.ORIENTATION_PORTRAIT in whenConfigChanges_recomputeTriggered()
125 remoteInputQuickSettingsDisabler.onConfigChanged(configuration) in whenConfigChanges_recomputeTriggered()
/frameworks/base/media/jni/
Dandroid_media_VolumeShaper.h108 sp<VolumeShaper::Configuration> configuration = new VolumeShaper::Configuration(); in convertJobjectToConfiguration() local
110 configuration->setType( in convertJobjectToConfiguration()
112 configuration->setId( in convertJobjectToConfiguration()
114 if (configuration->getType() == VolumeShaper::Configuration::TYPE_SCALE) { in convertJobjectToConfiguration()
115 configuration->setOptionFlags( in convertJobjectToConfiguration()
118 configuration->setDurationMs( in convertJobjectToConfiguration()
120 configuration->setInterpolatorType( in convertJobjectToConfiguration()
140 configuration->emplace(x[i], y[i]); in convertJobjectToConfiguration()
145 return configuration; in convertJobjectToConfiguration()
150 const sp<VolumeShaper::Configuration> &configuration) { in convertVolumeShaperToJobject()
[all …]
/frameworks/av/services/oboeservice/
DAAudioServiceEndpoint.cpp146 bool AAudioServiceEndpoint::matches(const AAudioStreamConfiguration& configuration) { in matches() argument
150 if (configuration.getDirection() != getDirection()) { in matches()
153 if (configuration.getDeviceId() != AAUDIO_UNSPECIFIED && in matches()
154 configuration.getDeviceId() != getDeviceId()) { in matches()
157 if (configuration.getSessionId() != AAUDIO_SESSION_ID_ALLOCATE && in matches()
158 configuration.getSessionId() != getSessionId()) { in matches()
161 if (configuration.getSampleRate() != AAUDIO_UNSPECIFIED && in matches()
162 configuration.getSampleRate() != getSampleRate()) { in matches()
165 if (configuration.getSamplesPerFrame() != AAUDIO_UNSPECIFIED && in matches()
166 configuration.getSamplesPerFrame() != getSamplesPerFrame()) { in matches()
[all …]
DAAudioEndpointManager.cpp111 const AAudioStreamConfiguration &configuration) { in findExclusiveEndpoint_l() argument
115 if (ep->matches(configuration)) { in findExclusiveEndpoint_l()
123 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findExclusiveEndpoint_l()
129 const AAudioStreamConfiguration &configuration) { in findSharedEndpoint_l() argument
133 if (ep->matches(configuration)) { in findSharedEndpoint_l()
141 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findSharedEndpoint_l()
167 const AAudioStreamConfiguration &configuration = request.getConstantConfiguration(); in openExclusiveEndpoint() local
170 sp<AAudioServiceEndpoint> endpoint = findExclusiveEndpoint_l(configuration); in openExclusiveEndpoint()
195 __func__, endpointMMap.get(), configuration.getDeviceId()); in openExclusiveEndpoint()
222 const AAudioStreamConfiguration &configuration = request.getConstantConfiguration(); in openSharedEndpoint() local
[all …]
/frameworks/base/services/core/java/com/android/server/app/
DGameServiceProviderInstanceFactoryImpl.java52 @NonNull GameServiceComponentConfiguration configuration) { in create()
53 final UserHandle userHandle = configuration.getUserHandle(); in create()
67 new GameServiceConnector(mContext, configuration), in create()
68 new GameSessionServiceConnector(mContext, configuration), in create()
78 @NonNull GameServiceComponentConfiguration configuration) { in GameServiceConnector() argument
80 .setComponent(configuration.getGameServiceComponentName()), in GameServiceConnector()
81 BINDING_FLAGS, configuration.getUserHandle().getIdentifier(), in GameServiceConnector()
101 @NonNull GameServiceComponentConfiguration configuration) { in GameSessionServiceConnector() argument
103 .setComponent(configuration.getGameSessionServiceComponentName()), in GameSessionServiceConnector()
104 BINDING_FLAGS, configuration.getUserHandle().getIdentifier(), in GameSessionServiceConnector()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser_test.cpp33 namespace configuration { namespace
47 using ::aapt::configuration::Abi;
48 using ::aapt::configuration::AndroidManifest;
49 using ::aapt::configuration::AndroidSdk;
50 using ::aapt::configuration::ConfiguredArtifact;
51 using ::aapt::configuration::DeviceFeature;
52 using ::aapt::configuration::ExtractConfiguration;
53 using ::aapt::configuration::GlTexture;
54 using ::aapt::configuration::Locale;
55 using ::aapt::configuration::PostProcessingConfiguration;
DConfigurationParser.cpp48 using ::aapt::configuration::Abi;
49 using ::aapt::configuration::AndroidManifest;
50 using ::aapt::configuration::AndroidSdk;
51 using ::aapt::configuration::ConfiguredArtifact;
52 using ::aapt::configuration::DeviceFeature;
53 using ::aapt::configuration::Entry;
54 using ::aapt::configuration::ExtractConfiguration;
55 using ::aapt::configuration::GlTexture;
56 using ::aapt::configuration::Group;
57 using ::aapt::configuration::Locale;
[all …]
DConfigurationParser.internal.h34 namespace configuration {
223 bool ArtifactTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
227 bool ArtifactFormatTagHandler(configuration::PostProcessingConfiguration* config,
231 bool AbiGroupTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
235 bool ScreenDensityGroupTagHandler(configuration::PostProcessingConfiguration* config,
239 bool LocaleGroupTagHandler(configuration::PostProcessingConfiguration* config,
243 bool AndroidSdkTagHandler(configuration::PostProcessingConfiguration* config, xml::Element* element,
247 bool GlTextureGroupTagHandler(configuration::PostProcessingConfiguration* config,
251 bool DeviceFeatureGroupTagHandler(configuration::PostProcessingConfiguration* config,
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DTaskContainerTest.java73 final Configuration configuration = new Configuration(); in testGetWindowingModeForSplitTaskFragment() local
78 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testGetWindowingModeForSplitTaskFragment()
79 taskContainer.updateTaskFragmentParentInfo(new TaskFragmentParentInfo(configuration, in testGetWindowingModeForSplitTaskFragment()
85 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in testGetWindowingModeForSplitTaskFragment()
86 taskContainer.updateTaskFragmentParentInfo(new TaskFragmentParentInfo(configuration, in testGetWindowingModeForSplitTaskFragment()
101 final Configuration configuration = new Configuration(); in testIsInPictureInPicture() local
105 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testIsInPictureInPicture()
106 taskContainer.updateTaskFragmentParentInfo(new TaskFragmentParentInfo(configuration, in testIsInPictureInPicture()
111 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_PINNED); in testIsInPictureInPicture()
112 taskContainer.updateTaskFragmentParentInfo(new TaskFragmentParentInfo(configuration, in testIsInPictureInPicture()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlsActivityTest.kt82 val currentConfig = activityRule.activity.resources.configuration in testOrientationChangeForwardsToUiController()
92 val currentConfig = activityRule.activity.resources.configuration in testScreenChangeForwardsToUiController()
102 val currentConfig = activityRule.activity.resources.configuration in testChangeSmallestScreenSizeForwardsToUiController()
119 private fun swapHeightWidth(configuration: Configuration) { in swapHeightWidth()
120 val oldHeight = configuration.screenHeightDp in swapHeightWidth()
121 val oldWidth = configuration.screenWidthDp in swapHeightWidth()
122 configuration.screenHeightDp = oldWidth in swapHeightWidth()
123 configuration.screenWidthDp = oldHeight in swapHeightWidth()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DConfigGenerator.java20 import com.android.ide.common.resources.configuration.CountryCodeQualifier;
21 import com.android.ide.common.resources.configuration.DensityQualifier;
22 import com.android.ide.common.resources.configuration.FolderConfiguration;
23 import com.android.ide.common.resources.configuration.KeyboardStateQualifier;
24 import com.android.ide.common.resources.configuration.LayoutDirectionQualifier;
25 import com.android.ide.common.resources.configuration.LocaleQualifier;
26 import com.android.ide.common.resources.configuration.NavigationMethodQualifier;
27 import com.android.ide.common.resources.configuration.NetworkCodeQualifier;
28 import com.android.ide.common.resources.configuration.NightModeQualifier;
29 import com.android.ide.common.resources.configuration.ScreenDimensionQualifier;
[all …]
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java38 public DisplayAdjustments(@Nullable Configuration configuration) { in DisplayAdjustments() argument
39 if (configuration != null) { in DisplayAdjustments()
40 mConfiguration.setTo(configuration); in DisplayAdjustments()
73 public void setConfiguration(@Nullable Configuration configuration) { in setConfiguration() argument
78 mConfiguration.setTo(configuration != null ? configuration : Configuration.EMPTY); in setConfiguration()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt78 val config = mContext.resources.configuration in configChanged_listenerNotified()
97 val config = mContext.resources.configuration in densityChanged_listenerNotified()
113 val config = mContext.resources.configuration in fontChanged_listenerNotified()
129 val config = mContext.resources.configuration in isCarAndUiModeChanged_densityListenerNotified()
146 val config = mContext.resources.configuration in isNotCarAndUiModeChanged_densityListenerNotNotified()
163 val config = mContext.resources.configuration in smallestScreenWidthChanged_listenerNotified()
179 val config = mContext.resources.configuration in maxBoundsChange_newConfigObject_listenerNotified()
197 val config = mContext.resources.configuration in maxBoundsChange_sameObject_listenerNotified()
214 val config = mContext.resources.configuration in localeListChanged_listenerNotified()
230 val config = mContext.resources.configuration in uiModeChanged_listenerNotified()
[all …]
DStatusBarContentInsetsProviderTest.kt52 private val configuration = Configuration() constant
61 `when`(contextMock.resources.configuration).thenReturn(configuration) in setup()
466 configuration.windowConfiguration.maxBounds = Rect(0, 0, 1080, 2160) in testDisplayChanged_returnsUpdatedInsets()
469 configuration.windowConfiguration.maxBounds = Rect(0, 0, 800, 600) in testDisplayChanged_returnsUpdatedInsets()
485 configuration.windowConfiguration.maxBounds = Rect(0, 0, 1080, 2160) in testDisplayChangedAndReturnedBack_returnsTheSameInsets()
489 configuration.windowConfiguration.maxBounds = Rect(0, 0, 800, 600) in testDisplayChangedAndReturnedBack_returnsTheSameInsets()
492 configuration.windowConfiguration.maxBounds = Rect(0, 0, 1080, 2160) in testDisplayChangedAndReturnedBack_returnsTheSameInsets()
506 configuration.windowConfiguration.setMaxBounds(0, 0, 100, 100) in onMaxBoundsChanged_listenerNotified()
507 configurationController.onConfigurationChanged(configuration) in onMaxBoundsChanged_listenerNotified()
520 configuration.windowConfiguration.setMaxBounds(0, 0, 456, 789) in onMaxBoundsChanged_listenerNotified()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/fontscaling/
DFontScalingDialog.kt42 private val configuration: Configuration = constant
94 override fun onConfigurationChanged(configuration: Configuration) { in onConfigurationChanged()
95 super.onConfigurationChanged(configuration) in onConfigurationChanged()
97 val configDiff = configuration.diff(this.configuration) in onConfigurationChanged()
98 this.configuration.setTo(configuration) in onConfigurationChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
DSplitWindowManagerTests.java50 final Configuration configuration = new Configuration(); in setup() local
51 configuration.setToDefaults(); in setup()
52 mSplitWindowManager = new SplitWindowManager("TestSplitDivider", mContext, configuration, in setup()
55 new Rect(0, 0, configuration.windowConfiguration.getBounds().width(), in setup()
56 configuration.windowConfiguration.getBounds().height())); in setup()
/frameworks/base/core/java/android/app/
DTaskInfo.java168 public final Configuration configuration = new Configuration(); field in TaskInfo
413 return configuration; in getConfiguration()
432 return configuration.windowConfiguration.getWindowingMode(); in getWindowingMode()
438 return configuration.windowConfiguration.getActivityType(); in getActivityType()
508 && configuration.uiMode == that.configuration.uiMode in equalsForTaskOrganizer()
539 && (!hasCompatUI() || configuration.windowConfiguration.getBounds() in equalsForCompatUi()
540 .equals(that.configuration.windowConfiguration.getBounds())) in equalsForCompatUi()
541 && (!hasCompatUI() || configuration.getLayoutDirection() in equalsForCompatUi()
542 == that.configuration.getLayoutDirection()) in equalsForCompatUi()
543 && (!hasCompatUI() || configuration.uiMode == that.configuration.uiMode) in equalsForCompatUi()
[all …]
/frameworks/base/core/java/android/window/
DDisplayAreaInfo.java41 public final Configuration configuration = new Configuration(); field in DisplayAreaInfo
67 configuration.readFromParcel(in); in DisplayAreaInfo()
76 configuration.writeToParcel(dest, flags); in writeToParcel()
98 + " config=" + configuration + "}"; in toString()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt71 private lateinit var configuration: Configuration variable in com.android.systemui.qs.tiles.UiModeNightTileTest
77 configuration = Configuration() in setUp()
83 `when`(resources.configuration).thenReturn(configuration) in setUp()
132 configuration.uiMode = Configuration.UI_MODE_NIGHT_YES in setNightModeOn()
137 configuration.uiMode = Configuration.UI_MODE_NIGHT_NO in setNightModeOff()
/frameworks/base/core/java/android/app/time/
DTimeManager.java114 public boolean updateTimeConfiguration(@NonNull TimeConfiguration configuration) { in updateTimeConfiguration() argument
116 Log.d(TAG, "updateTimeConfiguration called: " + configuration); in updateTimeConfiguration()
119 return mITimeDetectorService.updateConfiguration(configuration); in updateTimeConfiguration()
153 public boolean updateTimeZoneConfiguration(@NonNull TimeZoneConfiguration configuration) { in updateTimeZoneConfiguration() argument
155 Log.d(TAG, "updateTimeZoneConfiguration called: " + configuration); in updateTimeZoneConfiguration()
158 return mITimeZoneDetectorService.updateConfiguration(configuration); in updateTimeZoneConfiguration()
DTimeZoneCapabilitiesAndConfig.java57 @NonNull TimeZoneConfiguration configuration) { in TimeZoneCapabilitiesAndConfig() argument
59 this.mConfiguration = Objects.requireNonNull(configuration); in TimeZoneCapabilitiesAndConfig()
65 …TimeZoneConfiguration configuration = in.readParcelable(null, android.app.time.TimeZoneConfigurati… in createFromParcel() local
66 return new TimeZoneCapabilitiesAndConfig(capabilities, configuration); in createFromParcel()
/frameworks/av/services/audiopolicy/engineconfigurable/parameter-framework/examples/
DREADME.md4 This folder exposes a generic functional configurable policy engine configuration files
7 A vendor wishing to customize the behavior shall provides its own set of configuration files
10 For any question about the parameter framework and configuration files,
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java63 Configuration configuration = RenderAction.getConfiguration(params); in basic() local
65 params.getAssets(), params.getLayoutlibCallback(), configuration, in basic()
110 Configuration configuration = RenderAction.getConfiguration(params); in checkNoErrorWhenUsingDefaults() local
112 params.getAssets(), params.getLayoutlibCallback(), configuration, in checkNoErrorWhenUsingDefaults()
143 Configuration configuration = RenderAction.getConfiguration(params); in noExceptionForCustomService() local
145 params.getAssets(), params.getLayoutlibCallback(), configuration, in noExceptionForCustomService()

12345678910>>...22