Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 888) sorted by relevance

12345678910>>...36

/frameworks/av/media/libstagefright/renderfright/include/renderengine/
DLayerSettings.h195 static inline void PrintTo(const Buffer& settings, ::std::ostream* os) { in PrintTo() argument
197 *os << "\n .buffer = " << settings.buffer.get(); in PrintTo()
198 *os << "\n .fence = " << settings.fence.get(); in PrintTo()
199 *os << "\n .textureName = " << settings.textureName; in PrintTo()
200 *os << "\n .useTextureFiltering = " << settings.useTextureFiltering; in PrintTo()
201 *os << "\n .textureTransform = " << settings.textureTransform; in PrintTo()
202 *os << "\n .usePremultipliedAlpha = " << settings.usePremultipliedAlpha; in PrintTo()
203 *os << "\n .isOpaque = " << settings.isOpaque; in PrintTo()
204 *os << "\n .isY410BT2020 = " << settings.isY410BT2020; in PrintTo()
205 *os << "\n .maxMasteringLuminance = " << settings.maxMasteringLuminance; in PrintTo()
[all …]
DDisplaySettings.h73 static inline void PrintTo(const DisplaySettings& settings, ::std::ostream* os) { in PrintTo() argument
76 PrintTo(settings.physicalDisplay, os); in PrintTo()
78 PrintTo(settings.clip, os); in PrintTo()
79 *os << "\n .maxLuminance = " << settings.maxLuminance; in PrintTo()
81 PrintTo(settings.outputDataspace, os); in PrintTo()
82 *os << "\n .colorTransform = " << settings.colorTransform; in PrintTo()
84 PrintTo(settings.clearRegion, os); in PrintTo()
85 *os << "\n .orientation = " << settings.orientation; in PrintTo()
/frameworks/native/libs/renderengine/include/renderengine/
DLayerSettings.h238 static inline void PrintTo(const Buffer& settings, ::std::ostream* os) { in PrintTo() argument
240 *os << "\n .buffer = " << settings.buffer.get() << " " in PrintTo()
241 << (settings.buffer.get() ? decodePixelFormat(settings.buffer->getPixelFormat()).c_str() in PrintTo()
243 *os << "\n .fence = " << settings.fence.get(); in PrintTo()
244 *os << "\n .textureName = " << settings.textureName; in PrintTo()
245 *os << "\n .useTextureFiltering = " << settings.useTextureFiltering; in PrintTo()
247 PrintMatrix(settings.textureTransform, os); in PrintTo()
248 *os << "\n .usePremultipliedAlpha = " << settings.usePremultipliedAlpha; in PrintTo()
249 *os << "\n .isOpaque = " << settings.isOpaque; in PrintTo()
250 *os << "\n .isY410BT2020 = " << settings.isY410BT2020; in PrintTo()
[all …]
DDisplaySettings.h129 static inline void PrintTo(const DisplaySettings& settings, ::std::ostream* os) { in PrintTo() argument
131 *os << "\n .display = " << settings.namePlusId; in PrintTo()
133 PrintTo(settings.physicalDisplay, os); in PrintTo()
135 PrintTo(settings.clip, os); in PrintTo()
136 *os << "\n .maxLuminance = " << settings.maxLuminance; in PrintTo()
137 *os << "\n .currentLuminanceNits = " << settings.currentLuminanceNits; in PrintTo()
139 PrintTo(settings.outputDataspace, os); in PrintTo()
141 PrintMatrix(settings.colorTransform, os); in PrintTo()
142 *os << "\n .deviceHandlesColorTransform = " << settings.deviceHandlesColorTransform; in PrintTo()
143 *os << "\n .orientation = " << orientation_to_string(settings.orientation); in PrintTo()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/app/
DGameManagerServiceSettingsTests.java123 GameManagerSettings settings = new GameManagerSettings(context.getFilesDir()); in testReadGameServiceSettings() local
124 assertTrue(settings.readPersistentDataLocked()); in testReadGameServiceSettings()
127 assertEquals(GameManager.GAME_MODE_STANDARD, settings.getGameModeLocked(PACKAGE_NAME_1)); in testReadGameServiceSettings()
128 assertEquals(GameManager.GAME_MODE_PERFORMANCE, settings.getGameModeLocked(PACKAGE_NAME_2)); in testReadGameServiceSettings()
129 assertEquals(GameManager.GAME_MODE_BATTERY, settings.getGameModeLocked(PACKAGE_NAME_3)); in testReadGameServiceSettings()
130 assertEquals(GameManager.GAME_MODE_STANDARD, settings.getGameModeLocked(PACKAGE_NAME_4)); in testReadGameServiceSettings()
133 assertNull(settings.getConfigOverride(PACKAGE_NAME_1)); in testReadGameServiceSettings()
134 assertNull(settings.getConfigOverride(PACKAGE_NAME_3)); in testReadGameServiceSettings()
135 GamePackageConfiguration config = settings.getConfigOverride(PACKAGE_NAME_2); in testReadGameServiceSettings()
155 config = settings.getConfigOverride(PACKAGE_NAME_4); in testReadGameServiceSettings()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassificationConstantsTest.java40 settings -> assertThat(settings.isLocalTextClassifierEnabled()).isFalse()); in booleanSettings()
48 settings -> assertThat(settings.getGenerateLinksMaxTextLength()).isEqualTo(128)); in intSettings()
56 settings -> assertThat( in stringSettings()
57 settings.getTextClassifierServicePackageOverride()) in stringSettings()
66 settings -> assertThat( in longSettings()
67 settings.getSystemTextClassifierApiTimeoutInSecond()) in longSettings()
75 TextClassificationConstants settings = new TextClassificationConstants(); in assertSettings() local
78 settingsConsumer.accept(settings); in assertSettings()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistSettingsTests.java71 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsing() local
72 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
74 assertEquals(HARD_CODED_SECRET_KEY, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsing()
80 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsingWithoutKey() local
81 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_parsingWithoutKey()
85 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
87 settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_parsingWithoutKey()
88 assertEquals(tmpKey1, HexDump.toHexString(settings.getPrivacySecretKey())); in testWatchlistSettings_parsingWithoutKey()
93 WatchlistSettings settings = new WatchlistSettings(mTestXmlFile); in testWatchlistSettings_noExistingXml() local
94 final String tmpKey1 = HexDump.toHexString(settings.getPrivacySecretKey()); in testWatchlistSettings_noExistingXml()
[all …]
/frameworks/base/media/java/android/media/audiofx/
DEnvironmentalReverb.java521 public Settings(String settings) { in Settings() argument
522 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
525 throw new IllegalArgumentException("settings: " + settings); in Settings()
623 Settings settings = new Settings(); in getProperties() local
624 settings.roomLevel = byteArrayToShort(param, 0); in getProperties()
625 settings.roomHFLevel = byteArrayToShort(param, 2); in getProperties()
626 settings.decayTime = byteArrayToInt(param, 4); in getProperties()
627 settings.decayHFRatio = byteArrayToShort(param, 8); in getProperties()
628 settings.reflectionsLevel = byteArrayToShort(param, 10); in getProperties()
629 settings.reflectionsDelay = byteArrayToInt(param, 12); in getProperties()
[all …]
DEqualizer.java460 public Settings(String settings) { in Settings() argument
461 StringTokenizer st = new StringTokenizer(settings, "=;"); in Settings()
464 throw new IllegalArgumentException("settings: " + settings); in Settings()
483 throw new IllegalArgumentException("settings: " + settings); in Settings()
526 Settings settings = new Settings(); in getProperties() local
527 settings.curPreset = byteArrayToShort(param, 0); in getProperties()
528 settings.numBands = byteArrayToShort(param, 2); in getProperties()
529 settings.bandLevels = new short[mNumBands]; in getProperties()
531 settings.bandLevels[i] = byteArrayToShort(param, 4 + 2*i); in getProperties()
533 return settings; in getProperties()
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFE.h185 static inline void PrintTo(const LayerFE::ClientCompositionTargetSettings& settings, in PrintTo() argument
189 PrintTo(settings.clip, os); in PrintTo()
190 *os << "\n .needsFiltering = " << settings.needsFiltering; in PrintTo()
191 *os << "\n .isSecure = " << settings.isSecure; in PrintTo()
192 *os << "\n .supportsProtectedContent = " << settings.supportsProtectedContent; in PrintTo()
194 PrintTo(settings.viewport, os); in PrintTo()
196 PrintTo(settings.dataspace, os); in PrintTo()
197 *os << "\n .realContentIsVisible = " << settings.realContentIsVisible; in PrintTo()
198 *os << "\n .clearContent = " << settings.clearContent; in PrintTo()
199 *os << "\n .blurSetting = " << settings.blurSetting; in PrintTo()
[all …]
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/
DCameraCapabilities.java572 public boolean supports(final CameraSettings settings) { in supports() argument
573 if (zoomCheck(settings) && exposureCheck(settings) && focusCheck(settings) && in supports()
574 flashCheck(settings) && photoSizeCheck(settings) && previewSizeCheck(settings) && in supports()
575 videoStabilizationCheck(settings)) { in supports()
679 private boolean zoomCheck(final CameraSettings settings) { in zoomCheck() argument
680 final float ratio = settings.getCurrentZoomRatio(); in zoomCheck()
687 if (settings.getCurrentZoomRatio() > getMaxZoomRatio()) { in zoomCheck()
689 settings.getCurrentZoomRatio()); in zoomCheck()
696 private boolean exposureCheck(final CameraSettings settings) { in exposureCheck() argument
697 final int index = settings.getExposureCompensationIndex(); in exposureCheck()
[all …]
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineTest.cpp254 void invokeDraw(renderengine::DisplaySettings settings, in invokeDraw()
259 sRE->drawLayers(settings, layers, buffer, true, base::unique_fd(), &fence); in invokeDraw()
275 renderengine::DisplaySettings settings; in drawEmptyLayers() local
279 invokeDraw(settings, layers, buffer); in drawEmptyLayers()
443 renderengine::DisplaySettings settings; in fillBuffer() local
444 settings.physicalDisplay = fullscreenRect(); in fillBuffer()
445 settings.clip = fullscreenRect(); in fillBuffer()
456 invokeDraw(settings, layers, mBuffer); in fillBuffer()
485 renderengine::DisplaySettings settings; in fillRedOffsetBuffer() local
486 settings.physicalDisplay = offsetRect(); in fillRedOffsetBuffer()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDeviceProvisionedControllerImplTest.kt26 import com.android.systemui.settings.UserTracker
31 import com.android.systemui.util.settings.FakeSettings
70 private lateinit var settings: FakeSettings variable in com.android.systemui.statusbar.policy.DeviceProvisionedControllerImplTest
77 settings = FakeSettings() in setUp()
81 settings, in setUp()
82 settings, in setUp()
111 settings.putInt(Settings.Global.DEVICE_PROVISIONED, 1) in testProvisionedWhenCreated()
119 settings.putInt(Settings.Secure.SECURE_FRP_MODE, 1) in testFrpActiveWhenCreated()
127 settings.putIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 1, START_USER) in testUserSetupWhenCreated()
137 settings.putInt(Settings.Global.DEVICE_PROVISIONED, 1) in testDeviceProvisionedChange()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayWindowSettings.java124 private int getWindowingModeLocked(SettingsProvider.SettingsEntry settings, DisplayContent dc) { in getWindowingModeLocked() argument
125 int windowingMode = settings.mWindowingMode; in getWindowingModeLocked()
144 final SettingsProvider.SettingsEntry settings = mSettingsProvider.getSettings(displayInfo); in getWindowingModeLocked() local
145 return getWindowingModeLocked(settings, dc); in getWindowingModeLocked()
162 final SettingsProvider.SettingsEntry settings = mSettingsProvider.getSettings(displayInfo); in getRemoveContentModeLocked() local
163 if (settings.mRemoveContentMode == REMOVE_CONTENT_MODE_UNDEFINED) { in getRemoveContentModeLocked()
171 return settings.mRemoveContentMode; in getRemoveContentModeLocked()
184 final SettingsProvider.SettingsEntry settings = mSettingsProvider.getSettings(displayInfo); in shouldShowWithInsecureKeyguardLocked() local
185 return settings.mShouldShowWithInsecureKeyguard != null in shouldShowWithInsecureKeyguardLocked()
186 ? settings.mShouldShowWithInsecureKeyguard : false; in shouldShowWithInsecureKeyguardLocked()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/airplane/data/repository/
DAirplaneModeRepositoryImplTest.kt26 import com.android.systemui.util.settings.FakeSettings
51 private lateinit var settings: FakeSettings variable in com.android.systemui.statusbar.pipeline.airplane.data.repository.AirplaneModeRepositoryImplTest
58 settings = FakeSettings() in setUp()
59 settings.userId = UserHandle.USER_ALL in setUp()
64 settings, in setUp()
78 settings.putInt(Global.AIRPLANE_MODE_ON, 1) in isAirplaneMode_initiallyGetsSettingsValue()
83 settings, in isAirplaneMode_initiallyGetsSettingsValue()
100 settings.putInt(Global.AIRPLANE_MODE_ON, 0) in isAirplaneMode_settingUpdated_valueUpdated()
104 settings.putInt(Global.AIRPLANE_MODE_ON, 1) in isAirplaneMode_settingUpdated_valueUpdated()
108 settings.putInt(Global.AIRPLANE_MODE_ON, 0) in isAirplaneMode_settingUpdated_valueUpdated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/dagger/
DMultiUserUtilsModule.java17 package com.android.systemui.settings.dagger;
30 import com.android.systemui.settings.DisplayTracker;
31 import com.android.systemui.settings.DisplayTrackerImpl;
32 import com.android.systemui.settings.UserContentResolverProvider;
33 import com.android.systemui.settings.UserContextProvider;
34 import com.android.systemui.settings.UserFileManager;
35 import com.android.systemui.settings.UserFileManagerImpl;
36 import com.android.systemui.settings.UserTracker;
37 import com.android.systemui.settings.UserTrackerImpl;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DMockTracker.java23 import org.mockito.internal.creation.settings.CreationSettings;
63 public void onMockCreated(Object mock, MockCreationSettings settings) { in onMockCreated() argument
65 clearSpiedInstanceIfNeeded(mock, settings); in onMockCreated()
70 private void clearSpiedInstanceIfNeeded(Object mock, MockCreationSettings settings) { in clearSpiedInstanceIfNeeded() argument
71 if (mock != settings.getSpiedInstance()) { in clearSpiedInstanceIfNeeded()
75 if (!(settings instanceof CreationSettings)) { in clearSpiedInstanceIfNeeded()
76 throw new IllegalStateException("Unexpected type of settings: " + settings.getClass()); in clearSpiedInstanceIfNeeded()
79 SPIED_INSTANCE_FIELD.set(settings, null); in clearSpiedInstanceIfNeeded()
/frameworks/base/core/proto/android/providers/
Dsettings.proto18 package android.providers.settings;
23 import "frameworks/base/core/proto/android/providers/settings/config.proto";
24 import "frameworks/base/core/proto/android/providers/settings/generation.proto";
25 import "frameworks/base/core/proto/android/providers/settings/global.proto";
26 import "frameworks/base/core/proto/android/providers/settings/secure.proto";
27 import "frameworks/base/core/proto/android/providers/settings/system.proto";
33 // Per user settings
36 // Global settings
39 // Config settings
52 // The secure settings for this user
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/settings/
DLocationSettingsTest.java17 package com.android.server.location.settings;
102 settings -> settings.withAdasGnssLocationEnabled(true)); in testUpdate()
106 settings -> settings.withAdasGnssLocationEnabled(false)); in testUpdate()
114 settings -> settings.withAdasGnssLocationEnabled(true)); in testSerialization()
135 settings -> settings.withAdasGnssLocationEnabled(true)); in testListeners()
144 settings -> settings.withAdasGnssLocationEnabled(false)); in testListeners()
152 settings -> settings.withAdasGnssLocationEnabled(true)); in testListeners()
167 settings -> settings.withAdasGnssLocationEnabled(true)); in testNonAutomotive()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DWriteFallbackSettingsFilesJobService.java17 package com.android.providers.settings;
19 import static com.android.providers.settings.SettingsProvider.TABLE_CONFIG;
20 import static com.android.providers.settings.SettingsProvider.TABLE_GLOBAL;
21 import static com.android.providers.settings.SettingsProvider.TABLE_SECURE;
22 import static com.android.providers.settings.SettingsProvider.TABLE_SSAID;
23 import static com.android.providers.settings.SettingsProvider.TABLE_SYSTEM;
24 import static com.android.providers.settings.SettingsProvider.WRITE_FALLBACK_SETTINGS_FILES_JOB_ID;
/frameworks/base/packages/SettingsProvider/
DAndroid.bp26 "src/com/android/providers/settings/EventLogTags.logtags",
49 "src/android/provider/settings/backup/*",
50 "src/android/provider/settings/validators/*",
51 "src/com/android/providers/settings/GenerationRegistry.java",
52 "src/com/android/providers/settings/SettingsBackupAgent.java",
53 "src/com/android/providers/settings/SettingsState.java",
54 "src/com/android/providers/settings/SettingsHelper.java",
55 "src/com/android/providers/settings/WifiSoftApConfigChangedNotifier.java",
74 "com.android.providers.settings",
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp505 void invokeDraw(const renderengine::DisplaySettings& settings, in invokeDraw() argument
508 mRE->drawLayers(settings, layers, mBuffer, true, base::unique_fd()); in invokeDraw()
519 renderengine::DisplaySettings settings; in drawEmptyLayers() local
521 invokeDraw(settings, layers); in drawEmptyLayers()
713 renderengine::DisplaySettings settings; in fillBuffer() local
714 settings.physicalDisplay = fullscreenRect(); in fillBuffer()
715 settings.clip = fullscreenRect(); in fillBuffer()
716 settings.outputDataspace = ui::Dataspace::V0_SRGB_LINEAR; in fillBuffer()
728 invokeDraw(settings, layers); in fillBuffer()
757 renderengine::DisplaySettings settings; in fillRedOffsetBuffer() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DKeyguardQuickAffordanceLegacySettingSyncerTest.kt28 import com.android.systemui.settings.FakeUserTracker
34 import com.android.systemui.util.settings.FakeSettings
63 private lateinit var settings: FakeSettings variable in com.android.systemui.keyguard.data.quickaffordance.KeyguardQuickAffordanceLegacySettingSyncerTest
98 settings = FakeSettings() in setUp()
99 settings.putInt(Settings.Secure.LOCKSCREEN_SHOW_CONTROLS, 0) in setUp()
100 settings.putInt(Settings.Secure.LOCKSCREEN_SHOW_WALLET, 0) in setUp()
101 settings.putInt(Settings.Secure.LOCK_SCREEN_SHOW_QR_CODE_SCANNER, 0) in setUp()
107 secureSettings = settings, in setUp()
117 settings.putInt( in settingAsettingSelectsTheAffordance()
140 settings.putInt( in clearingAsettingSelectsTheAffordance()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbSettingsManager.java75 UsbUserSettingsManager settings = mSettingsByUser.get(userId); in getSettingsForUser() local
76 if (settings == null) { in getSettingsForUser()
77 settings = new UsbUserSettingsManager(mContext, UserHandle.of(userId)); in getSettingsForUser()
78 mSettingsByUser.put(userId, settings); in getSettingsForUser()
80 return settings; in getSettingsForUser()
102 UsbProfileGroupSettingsManager settings = mSettingsByProfileGroup.get( in getSettingsForProfileGroup() local
104 if (settings == null) { in getSettingsForProfileGroup()
105 settings = new UsbProfileGroupSettingsManager(mContext, parentUser, this, in getSettingsForProfileGroup()
107 mSettingsByProfileGroup.put(parentUser.getIdentifier(), settings); in getSettingsForProfileGroup() local
109 return settings; in getSettingsForProfileGroup()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestDisplayWindowSettingsProvider.java58 SettingsEntry settings; in getOrCreateOverrideSettingsEntry() local
59 if ((settings = mOverrideSettingsMap.get(identifier)) != null) { in getOrCreateOverrideSettingsEntry()
60 return settings; in getOrCreateOverrideSettingsEntry()
62 settings = new SettingsEntry(); in getOrCreateOverrideSettingsEntry()
63 mOverrideSettingsMap.put(identifier, settings); in getOrCreateOverrideSettingsEntry()
64 return settings; in getOrCreateOverrideSettingsEntry()

12345678910>>...36