Home
last modified time | relevance | path

Searched refs:Properties (Results 1 – 25 of 181) sorted by relevance

12345678

/frameworks/base/libs/hwui/
DProperties.cpp47 bool Properties::debugLayersUpdates = false;
48 bool Properties::debugOverdraw = false;
49 bool Properties::showDirtyRegions = false;
50 bool Properties::skipEmptyFrames = true;
51 bool Properties::useBufferAge = true;
52 bool Properties::enablePartialUpdates = true;
54 bool Properties::enableRenderEffectCache = true;
56 DebugLevel Properties::debugLevel = kDebugDisabled;
57 OverdrawColorSet Properties::overdrawColorSet = OverdrawColorSet::Default;
59 float Properties::overrideLightRadius = -1.0f;
[all …]
DLightingInfo.h29 if (CC_UNLIKELY(Properties::overrideLightRadius > 0)) { in getLightRadius()
30 return Properties::overrideLightRadius; in getLightRadius()
36 if (CC_UNLIKELY(Properties::overrideAmbientShadowStrength >= 0)) { in getAmbientShadowAlpha()
37 return Properties::overrideAmbientShadowStrength; in getAmbientShadowAlpha()
43 if (CC_UNLIKELY(Properties::overrideSpotShadowStrength >= 0)) { in getSpotShadowAlpha()
44 return Properties::overrideSpotShadowStrength; in getSpotShadowAlpha()
50 if (CC_UNLIKELY(Properties::overrideLightPosY > 0 || Properties::overrideLightPosZ > 0)) { in getLightCenter()
52 if (CC_UNLIKELY(Properties::overrideLightPosY > 0)) { in getLightCenter()
54 adjustedLightCenter.y = -Properties::overrideLightPosY; in getLightCenter()
56 if (CC_UNLIKELY(Properties::overrideLightPosZ > 0)) { in getLightCenter()
[all …]
DVectorDrawable.h102 class Properties {
104 explicit Properties(Node* node) : mNode(node) {} in Properties() function
118 virtual void onPropertyChanged(Properties* properties) = 0;
141 class PathProperties : public Properties {
143 explicit PathProperties(Node* node) : Properties(node) {} in PathProperties()
171 virtual void onPropertyChanged(Properties* prop) override { in onPropertyChanged()
205 class FullPathProperties : public Properties {
221 explicit FullPathProperties(Node* mNode) : Properties(mNode), mTrimDirty(false) {} in FullPathProperties()
340 virtual void onPropertyChanged(Properties* properties) override { in onPropertyChanged()
383 class GroupProperties : public Properties {
[all …]
/frameworks/base/libs/hwui/tests/unit/
DTestUtilsTests.cpp25 bool previous = Properties::debugOverdraw; in TEST()
27 ScopedProperty<bool> debugOverdraw(Properties::debugOverdraw, true); in TEST()
28 EXPECT_TRUE(Properties::debugOverdraw); in TEST()
30 EXPECT_EQ(previous, Properties::debugOverdraw); in TEST()
32 ScopedProperty<bool> debugOverdraw(Properties::debugOverdraw, false); in TEST()
33 EXPECT_FALSE(Properties::debugOverdraw); in TEST()
35 EXPECT_EQ(previous, Properties::debugOverdraw); in TEST()
DStretchEffectTests.cpp26 Properties::setStretchEffectBehavior(StretchEffectBehavior::ShaderHWUI); in TEST()
30 Properties::setStretchEffectBehavior(StretchEffectBehavior::UniformScale); in TEST()
35 Properties::setStretchEffectBehavior(StretchEffectBehavior::ShaderHWUI); in TEST()
39 Properties::setStretchEffectBehavior(StretchEffectBehavior::UniformScale); in TEST()
44 Properties::setStretchEffectBehavior(StretchEffectBehavior::ShaderHWUI); in TEST()
49 Properties::setStretchEffectBehavior(StretchEffectBehavior::UniformScale); in TEST()
54 Properties::setStretchEffectBehavior(StretchEffectBehavior::ShaderHWUI); in TEST()
59 Properties::setStretchEffectBehavior(StretchEffectBehavior::UniformScale); in TEST()
Dmain.cpp66 Properties::isolatedProcess = true; in main()
68 Properties::overrideRenderPipelineType(RenderPipelineType::SkiaGL); in main()
/frameworks/base/libs/hwui/hwui/
DAnimatedImageDrawable.h145 struct Properties { struct
151 Properties() = default; argument
152 Properties(Properties&) = default;
153 Properties& operator=(Properties&) = default; argument
156 Properties mStagingProperties;
157 Properties mProperties;
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DVolumeLoader.java29 import java.util.Properties;
33 HashMap<String, Properties> map = new HashMap<String, Properties>();
45 Properties[] prop = getPropertyFiles(baseDir); in VolumeLoader()
65 Properties p = map.get(name); in getVolume()
98 static Properties[] getPropertyFiles(File dir) { in getPropertyFiles()
108 Properties[]ret = new Properties[f.length]; in getPropertyFiles()
110 Properties prop = new Properties(); in getPropertyFiles()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/
DDeviceConfigProxyFake.java22 import android.provider.DeviceConfig.Properties;
72 Properties.Builder propBuilder = new Properties.Builder(namespace); in setProperty()
90 private Properties propsForNamespaceAndName(String namespace, String name) { in propsForNamespaceAndName()
92 return new Properties.Builder(namespace) in propsForNamespaceAndName()
96 return new Properties.Builder(namespace) in propsForNamespaceAndName()
105 Properties props = propsForNamespaceAndName(namespace, name); in getBoolean()
115 Properties props = propsForNamespaceAndName(namespace, name); in getInt()
125 Properties props = propsForNamespaceAndName(namespace, name); in getLong()
140 Properties props = propsForNamespaceAndName(namespace, name); in getString()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/compat/overrides/
DAppCompatOverridesServiceTest.java54 import android.provider.DeviceConfig.Properties;
169 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagNotSet_appliesPackageOverrides()
219 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_ownedChangeIdsFlagNotSet_onlyAddsOverrides()
236 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagSetBefore_skipsOverridesToRemove()
246 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagSetBefore_skipsOverridesToRemove()
278 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagChangedNoPackageOverridesFlags_removesOnly()
286 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagChangedNoPackageOverridesFlags_removesOnly()
317 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagAndSomePackageOverrideFlagsChanged_ok()
327 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_removeOverridesFlagAndSomePackageOverrideFlagsChanged_ok()
372 DeviceConfig.setProperties(new Properties.Builder(NAMESPACE_1) in onPropertiesChanged_ownedChangeIdsFlagAndSomePackageOverrideFlagsChanged_ok()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DDeviceConfigTest.java19 import static android.provider.DeviceConfig.Properties;
405 Properties properties = DeviceConfig.getProperties(NAMESPACE); in getProperties_fullNamespace()
434 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2); in getProperties_getString()
446 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2, KEY3); in getProperties_getBoolean()
467 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2); in getProperties_getInt()
481 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2); in getProperties_getFloat()
495 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2); in getProperties_getLong()
507 Properties properties = DeviceConfig.getProperties(NAMESPACE, KEY, KEY2); in getProperties_defaults()
518 Properties properties = new Properties.Builder(NAMESPACE).setString(KEY, VALUE) in setProperties()
527 properties = new Properties.Builder(NAMESPACE).setString(KEY, VALUE2) in setProperties()
[all …]
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
DFakeDeviceConfigInterface.java58 DeviceConfig.Properties properties = makeProperties(namespace, key, value); in putPropertyAndNotify()
83 private DeviceConfig.Properties makeProperties(String namespace, String key, String value) { in makeProperties()
85 final Constructor<DeviceConfig.Properties> ctor = in makeProperties()
86 DeviceConfig.Properties.class.getDeclaredConstructor(String.class, Map.class); in makeProperties()
102 public DeviceConfig.Properties getProperties(String namespace, String... names) { in getProperties()
104 return new DeviceConfig.Properties(namespace, null); in getProperties()
106 DeviceConfig.Properties.Builder propertiesBuilder = new DeviceConfig.Properties.Builder( in getProperties()
133 public boolean setProperties(DeviceConfig.Properties properties) in setProperties()
/frameworks/base/core/java/android/app/admin/
DProvisioningIntentHelper.java65 import java.util.Properties;
104 Properties properties = loadPropertiesFromPayload(firstRecord.getPayload()); in createProvisioningIntentFromNdefRecord()
121 private static Properties loadPropertiesFromPayload(byte[] payload) { in loadPropertiesFromPayload()
122 Properties properties = new Properties(); in loadPropertiesFromPayload()
134 private static Bundle createBundleFromProperties(Properties properties) { in createBundleFromProperties()
146 String propertyName, Properties properties, Bundle bundle) { in addPropertyToBundle()
182 Properties properties, String extraName) throws IOException { in deserializeExtrasBundle()
187 Properties bundleProperties = new Properties(); in deserializeExtrasBundle()
/frameworks/libs/modules-utils/java/com/android/modules/utils/testing/
DTestableDeviceConfig.java31 import android.provider.DeviceConfig.Properties;
112 Properties properties = invocationOnMock.getArgument(0); in setUpMockBehaviors()
122 }).when(() -> DeviceConfig.setProperties(any(Properties.class))); in setUpMockBehaviors()
130 doAnswer((Answer<Properties>) invocationOnMock -> { in setUpMockBehaviors()
170 private void invokeListeners(String namespace, Properties properties) { in invokeListeners()
180 private Properties getProperties(String namespace, String name, String value) { in getProperties()
184 private Properties getProperties(String namespace, Map<String, String> keyValues) { in getProperties()
185 Properties properties = Mockito.mock(Properties.class); in getProperties()
/frameworks/base/core/java/android/provider/
DDeviceConfigInterface.java24 import android.provider.DeviceConfig.Properties;
47 Properties getProperties(@NonNull String namespace, @NonNull String... names); in getProperties()
60 boolean setProperties(@NonNull Properties properties) throws BadConfigException; in setProperties()
132 public DeviceConfig.Properties getProperties(@NonNull String namespace,
145 public boolean setProperties(@NonNull Properties properties)
DDeviceConfig.java815 public static Properties getProperties(@NonNull String namespace, @NonNull String ... names) { in getProperties()
817 return new Properties(namespace, in getProperties()
978 public static boolean setProperties(@NonNull Properties properties) throws BadConfigException { in setProperties()
1185 Properties.Builder propBuilder = new Properties.Builder(namespace); in handleChange()
1187 Properties allProperties = getProperties(namespace); in handleChange()
1197 Properties properties = propBuilder.build(); in handleChange()
1255 void onPropertiesChanged(@NonNull Properties properties); in onPropertiesChanged()
1273 public static class Properties { class in DeviceConfig
1285 public Properties(@NonNull String namespace, @Nullable Map<String, String> keyValueMap) { in Properties() method in DeviceConfig.Properties
1488 public Properties build() { in build()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java35 import java.util.Properties;
157 final Properties props = new Properties(); in loadSlotMap()
195 final Properties props = new Properties(); in saveSlotMap()
/frameworks/base/media/aidl/android/media/soundtrigger_middleware/
DSoundTriggerModuleDescriptor.aidl18 import android.media.soundtrigger.Properties;
30 Properties properties;
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DHw2CompatUtil.java83 static android.hardware.soundtrigger.V2_3.Properties convertProperties_2_0_to_2_3( in convertProperties_2_0_to_2_3()
84 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.Properties properties) { in convertProperties_2_0_to_2_3()
85 android.hardware.soundtrigger.V2_3.Properties properties_2_3 = in convertProperties_2_0_to_2_3()
86 new android.hardware.soundtrigger.V2_3.Properties(); in convertProperties_2_0_to_2_3()
/frameworks/base/test-runner/src/junit/runner/
DBaseTestRunner.java16 import java.util.Properties;
30 private static Properties fPreferences;
42 protected static void setPreferences(Properties preferences) { in setPreferences()
46 protected static Properties getPreferences() { in getPreferences()
48 fPreferences= new Properties(); in getPreferences()
242 setPreferences(new Properties(getPreferences())); in readPreferences()
/frameworks/base/libs/hwui/pipeline/skia/
DRenderNodeDrawable.cpp127 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) { in MarkDraw()
132 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) { in ~MarkDraw()
249 if (!Properties::enableRenderEffectCache) { in drawContent()
278 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) { in drawContent()
285 Properties::getStretchEffectBehavior() == StretchEffectBehavior::UniformScale) { in drawContent()
331 if (CC_UNLIKELY(Properties::debugLayersUpdates)) { in drawContent()
335 } else if (CC_UNLIKELY(Properties::debugOverdraw)) { in drawContent()
374 if (Properties::getStretchEffectBehavior() == StretchEffectBehavior::UniformScale) { in setViewProperties()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DDeviceConfigProxyFakeTest.java19 import static android.provider.DeviceConfig.Properties;
91 Properties mProperties;
96 public void onPropertiesChanged(@NonNull Properties properties) { in onPropertiesChanged()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DConstrainDisplayApisConfigTest.java26 import android.provider.DeviceConfig.Properties;
45 private Properties mInitialConstrainDisplayApisFlags;
52 new Properties.Builder(NAMESPACE_CONSTRAIN_DISPLAY_APIS).build()); in setUp()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp221 Properties::load(); in RenderThread()
233 if (!Properties::isolatedProcess) { in initializeChoreographer()
312 if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { in destroyRenderingContext()
331 switch (auto renderType = Properties::getRenderPipelineType()) { in pipelineToString()
376 if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { in requireGrContext()
479 auto renderType = Properties::getRenderPipelineType(); in allocateHardwareBitmap()
496 if (Properties::getRenderPipelineType() == RenderPipelineType::SkiaGL) { in preload()
/frameworks/base/services/tests/servicestests/src/com/android/server/soundtrigger_middleware/
DTestUtil.java39 import android.media.soundtrigger.Properties;
165 static android.hardware.soundtrigger.V2_0.ISoundTriggerHw.Properties
167 android.hardware.soundtrigger.V2_0.ISoundTriggerHw.Properties properties = in createDefaultProperties_2_0()
168 new android.hardware.soundtrigger.V2_0.ISoundTriggerHw.Properties(); in createDefaultProperties_2_0()
194 static android.hardware.soundtrigger.V2_3.Properties createDefaultProperties_2_3() { in createDefaultProperties_2_3()
195 android.hardware.soundtrigger.V2_3.Properties properties = in createDefaultProperties_2_3()
196 new android.hardware.soundtrigger.V2_3.Properties(); in createDefaultProperties_2_3()
205 static Properties createDefaultProperties() { in createDefaultProperties()
206 Properties properties = new Properties(); in createDefaultProperties()
228 static void validateDefaultProperties(Properties properties) { in validateDefaultProperties()
[all …]

12345678