/frameworks/base/native/android/ |
D | configuration.cpp | 28 AConfiguration* config = new AConfiguration; in AConfiguration_new() local 29 memset(config, 0, sizeof(AConfiguration)); in AConfiguration_new() 30 return config; in AConfiguration_new() 33 void AConfiguration_delete(AConfiguration* config) { in AConfiguration_delete() argument 34 delete config; in AConfiguration_delete() 39 ResTable_config config = locked_mgr->GetConfigurations()[0]; in AConfiguration_fromAssetManager() local 42 memcpy(out, &config, sizeof(config)); in AConfiguration_fromAssetManager() 49 int32_t AConfiguration_getMcc(AConfiguration* config) { in AConfiguration_getMcc() argument 50 return config->mcc; in AConfiguration_getMcc() 53 int32_t AConfiguration_getMnc(AConfiguration* config) { in AConfiguration_getMnc() argument [all …]
|
/frameworks/native/cmds/installd/ |
D | installd.rc | 8 mkdir /config/sdcardfs/extensions/1055 9 mkdir /config/sdcardfs/extensions/1056 10 mkdir /config/sdcardfs/extensions/1057 11 mkdir /config/sdcardfs/extensions/1056/3gpp 12 mkdir /config/sdcardfs/extensions/1056/3gp 13 mkdir /config/sdcardfs/extensions/1056/3gpp2 14 mkdir /config/sdcardfs/extensions/1056/3g2 15 mkdir /config/sdcardfs/extensions/1056/avi 16 mkdir /config/sdcardfs/extensions/1056/dl 17 mkdir /config/sdcardfs/extensions/1056/dif [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ConfigDescription_test.cpp | 29 ConfigDescription* config = nullptr) { in TestParse() argument 30 if (ConfigDescription::Parse(input, config)) { in TestParse() 51 ConfigDescription config; in TEST() local 52 EXPECT_TRUE(TestParse("", &config)); in TEST() 53 EXPECT_EQ(std::string(""), config.toString().c_str()); in TEST() 55 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 56 EXPECT_EQ(std::string("fr-land"), config.toString().c_str()); in TEST() 61 &config)); in TEST() 64 config.toString().c_str()); in TEST() 68 ConfigDescription config; in TEST() local [all …]
|
/frameworks/base/tools/aapt/tests/ |
D | ResourceFilter_test.cpp | 34 ConfigDescription config; in TEST() local 35 config.density = 320; in TEST() 37 EXPECT_TRUE(filter.match(config)); in TEST() 39 config.language[0] = 'f'; in TEST() 40 config.language[1] = 'r'; in TEST() 42 EXPECT_TRUE(filter.match(config)); in TEST() 49 ConfigDescription config; in TEST() local 50 config.density = 320; in TEST() 52 EXPECT_TRUE(filter.match(config)); in TEST() 59 ConfigDescription config; in TEST() local [all …]
|
D | AaptConfig_test.cpp | 26 static ::testing::AssertionResult TestParse(const String8& input, ConfigDescription* config=NULL) { in TestParse() argument 27 if (AaptConfig::parse(String8(input), config)) { in TestParse() 33 static ::testing::AssertionResult TestParse(const char* input, ConfigDescription* config=NULL) { in TestParse() argument 34 return TestParse(String8(input), config); in TestParse() 52 ConfigDescription config; in TEST() local 53 EXPECT_TRUE(TestParse("", &config)); in TEST() 54 EXPECT_EQ(String8(""), config.toString()); in TEST() 56 EXPECT_TRUE(TestParse("fr-land", &config)); in TEST() 57 EXPECT_EQ(String8("fr-land"), config.toString()); in TEST() 60 "xhdpi-keyssoft-qwerty-navexposed-nonav", &config)); in TEST() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 78 val config = mContext.resources.configuration in configChanged_listenerNotified() constant 79 config.densityDpi = 12 in configChanged_listenerNotified() 80 config.smallestScreenWidthDp = 240 in configChanged_listenerNotified() 81 mConfigurationController.onConfigurationChanged(config) in configChanged_listenerNotified() 86 config.densityDpi = 20 in configChanged_listenerNotified() 87 config.smallestScreenWidthDp = 300 in configChanged_listenerNotified() 88 mConfigurationController.onConfigurationChanged(config) in configChanged_listenerNotified() 97 val config = mContext.resources.configuration in densityChanged_listenerNotified() constant 98 config.densityDpi = 12 in densityChanged_listenerNotified() 99 mConfigurationController.onConfigurationChanged(config) in densityChanged_listenerNotified() [all …]
|
/frameworks/native/include/android/ |
D | configuration.h | 515 void AConfiguration_delete(AConfiguration* config); 531 int32_t AConfiguration_getMcc(AConfiguration* config); 536 void AConfiguration_setMcc(AConfiguration* config, int32_t mcc); 541 int32_t AConfiguration_getMnc(AConfiguration* config); 546 void AConfiguration_setMnc(AConfiguration* config, int32_t mnc); 553 void AConfiguration_getLanguage(AConfiguration* config, char* outLanguage); 559 void AConfiguration_setLanguage(AConfiguration* config, const char* language); 566 void AConfiguration_getCountry(AConfiguration* config, char* outCountry); 572 void AConfiguration_setCountry(AConfiguration* config, const char* country); 577 int32_t AConfiguration_getOrientation(AConfiguration* config); [all …]
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | ConfigurationInternalTest.java | 78 ConfigurationInternal config = new ConfigurationInternal.Builder(baseConfig) in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() local 82 assertTrue(config.getAutoDetectionEnabledSetting()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 83 assertTrue(config.getLocationEnabledSetting()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 84 assertTrue(config.getGeoDetectionEnabledSetting()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 85 assertTrue(config.getAutoDetectionEnabledBehavior()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 86 assertTrue(config.isGeoDetectionExecutionEnabled()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 87 assertEquals(DETECTION_MODE_GEO, config.getDetectionMode()); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 89 TimeZoneCapabilities capabilities = config.asCapabilities(bypassUserPolicyChecks); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 105 TimeZoneConfiguration configuration = config.asConfiguration(); in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() 112 ConfigurationInternal config = new ConfigurationInternal.Builder(baseConfig) in test_telephonyAndGeoSupported_capabilitiesAndConfiguration() local [all …]
|
/frameworks/compile/slang/lit-tests/ |
D | lit.cfg | 6 config.name = 'slang_lit_tests' 9 config.suffixes = ['.rs', '.ll'] 13 config.test_format = lit.formats.ShTest() 16 config.base_path = os.getenv('ANDROID_BUILD_TOP') 20 config.test_source_root = None 24 config.test_exec_root = os.path.join(config.base_path, 'out', 'tests', 'slang', 'lit-tests') 27 config.target_triple = 'slang' 47 config.slang = inferTool('llvm-rs-cc', 'SLANG', os.path.join(os.getenv('ANDROID_HOST_OUT'), 'bin'))… 48 config.llvm_rs_as = inferTool('llvm-rs-as', 'LLVM_RS_AS', os.path.join(os.getenv('ANDROID_HOST_OUT'… 50 config.filecheck = inferTool('FileCheck', 'FILECHECK', config.environment['PATH']) [all …]
|
/frameworks/base/tools/aapt2/filter/ |
D | ConfigFilter.cpp | 26 void AxisConfigFilter::AddConfig(ConfigDescription config) { in AddConfig() argument 27 uint32_t diff_mask = ConfigDescription::DefaultConfig().diff(config); in AddConfig() 34 config.density = 0; in AddConfig() 38 configs_.insert(std::make_pair(config, diff_mask)); in AddConfig() 55 static bool ScriptsMatch(const ConfigDescription& config, const ConfigDescription& entry) { in ScriptsMatch() argument 56 const char* config_script = config.localeScript; in ScriptsMatch() 62 char script_buffer[sizeof(config.localeScript)]; in ScriptsMatch() 64 android::localeDataComputeScript(script_buffer, config.language, config.country); in ScriptsMatch() 76 return memcmp(config_script, entry_script, sizeof(config.localeScript)) == 0; in ScriptsMatch() 79 bool AxisConfigFilter::Match(const ConfigDescription& config) const { in Match() [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/glowboxeffect/ |
D | GlowBoxEffect.kt | 28 private var config: GlowBoxConfig, variable in com.android.systemui.surfaceeffects.glowboxeffect.GlowBoxEffect 34 setSize(config.width, config.height) in <lambda>() 35 setCenter(config.startCenterX, config.startCenterY) in <lambda>() 36 setBlur(config.blurAmount) in <lambda>() 37 setColor(config.color) in <lambda>() 44 this.config = newConfig in updateConfig() 47 setSize(config.width, config.height) in updateConfig() 48 setCenter(config.startCenterX, config.startCenterY) in updateConfig() 49 setBlur(config.blurAmount) in updateConfig() 50 setColor(config.color) in updateConfig() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 63 Configuration config = new Configuration(); in testUpdateFromPreservesRoundBit() local 64 config.screenLayout = Configuration.SCREENLAYOUT_ROUND_YES; in testUpdateFromPreservesRoundBit() 67 config.updateFrom(config2); in testUpdateFromPreservesRoundBit() 68 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_ROUND_YES); in testUpdateFromPreservesRoundBit() 73 Configuration config = new Configuration(); in testUpdateFromPreservesCompatNeededBit() local 74 config.screenLayout = Configuration.SCREENLAYOUT_COMPAT_NEEDED; in testUpdateFromPreservesCompatNeededBit() 76 config.updateFrom(config2); in testUpdateFromPreservesCompatNeededBit() 77 assertEquals(config.screenLayout, Configuration.SCREENLAYOUT_COMPAT_NEEDED); in testUpdateFromPreservesCompatNeededBit() 79 config2.updateFrom(config); in testUpdateFromPreservesCompatNeededBit() 121 Configuration config = new Configuration(); in testMaskedSet() local [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ZenModeConfigTest.java | 126 ZenModeConfig config = getMutedRingerConfig(); in testPriorityOnlyMutingAllNotifications() local 127 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 130 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications() 134 config.setAllowReminders(true); in testPriorityOnlyMutingAllNotifications() 136 assertFalse(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 138 config.manualRule.zenPolicy = new ZenPolicy.Builder(config.manualRule.zenPolicy) in testPriorityOnlyMutingAllNotifications() 142 config.setAllowReminders(false); in testPriorityOnlyMutingAllNotifications() 144 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() 146 config.areChannelsBypassingDnd = true; in testPriorityOnlyMutingAllNotifications() 147 assertTrue(ZenModeConfig.areAllPriorityOnlyRingerSoundsMuted(config)); in testPriorityOnlyMutingAllNotifications() [all …]
|
/frameworks/base/services/core/xsd/ |
D | Android.bp | 18 name: "platform-compat-config", 19 srcs: ["platform-compat/config/platform-compat-config.xsd"], 20 api_dir: "platform-compat/config/schema", 21 package_name: "com.android.server.compat.config", 33 name: "display-device-config", 34 srcs: ["display-device-config/display-device-config.xsd"], 35 api_dir: "display-device-config/schema", 36 package_name: "com.android.server.display.config", 40 name: "display-layout-config", 41 srcs: ["display-layout-config/display-layout-config.xsd"], [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/target-tests/ |
D | lit.cfg | 28 build_top = getattr(config, 'build_top', None) 30 lit.load_config(config, os.path.join(os.getenv('ANDROID_BUILD_TOP', 33 build_top = config.build_top 36 default_sdk_dir = os.path.join(config.base_build_path, 'sdk', 'android-sdk_' \ 44 config.name = 'target_renderscript_debug' 45 config.suffixes = ['.rs'] 46 config.target_triple = 'target-bcc' 50 config.test_exec_root = os.path.join(config.build_top, 'out', 'debug', 53 config.test_exec_root = os.path.join(config.build_top, 'out', 'target', 59 config.sdk_dir = lit.params.get('android_sdk', default_sdk_dir) [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 59 WifiConfiguration config = createGenericConfig(ssid); in createOpenConfig() local 61 config.allowedKeyManagement.set(KeyMgmt.NONE); in createOpenConfig() 62 return config; in createOpenConfig() 73 WifiConfiguration config = createGenericConfig(ssid); in createWepConfig() local 76 config.wepKeys[0] = password; in createWepConfig() 78 config.wepKeys[0] = quotedString(password); in createWepConfig() 81 config.allowedKeyManagement.set(KeyMgmt.NONE); in createWepConfig() 82 config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN); in createWepConfig() 83 config.allowedAuthAlgorithms.set(AuthAlgorithm.SHARED); in createWepConfig() 84 return config; in createWepConfig() [all …]
|
/frameworks/av/media/libeffects/preprocessing/aidl/ |
D | PreProcessingContext.cpp | 43 auto config = mAudioProcessingModule->GetConfig(); in init() local 46 config.echo_canceller.mobile_mode = true; in init() 49 config.gain_controller1.target_level_dbfs = kAgcDefaultTargetLevel; in init() 50 config.gain_controller1.compression_gain_db = kAgcDefaultCompGain; in init() 51 config.gain_controller1.enable_limiter = kAgcDefaultLimiter; in init() 54 config.gain_controller2.fixed_digital.gain_db = 0.f; in init() 57 config.noise_suppression.level = kNsDefaultLevel; in init() 60 mAudioProcessingModule->ApplyConfig(config); in init() 81 auto config = mAudioProcessingModule->GetConfig(); in enable() local 84 config.echo_canceller.enabled = true; in enable() [all …]
|
/frameworks/base/core/tests/GameManagerTests/src/android/app/ |
D | GameModeConfigurationTest.java | 38 GameModeConfiguration config = new GameModeConfiguration.Builder() in testEqualsAndHashCode() local 40 assertTrue(config.equals(config)); in testEqualsAndHashCode() 44 assertTrue(config.equals(config1)); in testEqualsAndHashCode() 45 assertEquals(config.hashCode(), config1.hashCode()); in testEqualsAndHashCode() 49 assertFalse(config.equals(config2)); in testEqualsAndHashCode() 50 assertNotEquals(config.hashCode(), config2.hashCode()); in testEqualsAndHashCode() 54 assertFalse(config.equals(config3)); in testEqualsAndHashCode() 55 assertNotEquals(config.hashCode(), config3.hashCode()); in testEqualsAndHashCode() 61 assertFalse(config.equals(config4)); in testEqualsAndHashCode() 62 assertNotEquals(config.hashCode(), config4.hashCode()); in testEqualsAndHashCode() [all …]
|
/frameworks/base/tests/vcn/java/android/net/vcn/ |
D | VcnConfigTest.java | 107 final VcnGatewayConnectionConfig config = VcnGatewayConnectionConfigTest.buildTestConfig(); in testBuilderRequiresUniqueGatewayConnectionNames() local 110 .addGatewayConnectionConfig(config) in testBuilderRequiresUniqueGatewayConnectionNames() 111 .addGatewayConnectionConfig(config); in testBuilderRequiresUniqueGatewayConnectionNames() 119 final VcnConfig config = buildTestConfig(mContext); in testBuilderAndGettersDefaultValues() local 121 assertEquals(TEST_PACKAGE_NAME, config.getProvisioningPackageName()); in testBuilderAndGettersDefaultValues() 122 assertEquals(GATEWAY_CONNECTION_CONFIGS, config.getGatewayConnectionConfigs()); in testBuilderAndGettersDefaultValues() 123 assertFalse(config.isTestModeProfile()); in testBuilderAndGettersDefaultValues() 126 config.getRestrictedUnderlyingNetworkTransports()); in testBuilderAndGettersDefaultValues() 131 final VcnConfig config = buildTestConfig(mContext, RESTRICTED_TRANSPORTS); in testBuilderAndGettersConfigRestrictedTransports() local 133 assertEquals(TEST_PACKAGE_NAME, config.getProvisioningPackageName()); in testBuilderAndGettersConfigRestrictedTransports() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/bubbles/ |
D | BubblePopupDrawable.kt | 34 class BubblePopupDrawable(val config: Config) : Drawable() { in <lambda>() constant in com.android.wm.shell.common.bubbles.BubblePopupDrawable 78 paint.color = config.color in <lambda>() 95 config.contentPadding, in <lambda>() 96 config.contentPadding, in <lambda>() 97 config.contentPadding, in <lambda>() 98 config.contentPadding in <lambda>() 101 ArrowDirection.UP -> padding.top += config.arrowHeight.toInt() in <lambda>() 102 ArrowDirection.DOWN -> padding.bottom += config.arrowHeight.toInt() in <lambda>() 149 contentRect.top += config.arrowHeight in <lambda>() 162 contentRect.bottom -= config.arrowHeight in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeConfigurationUtil.java | 53 AmbientDisplayConfiguration config = mock(AmbientDisplayConfiguration.class, in createMockConfig() local 55 when(config.doubleTapGestureEnabled(anyInt())).thenReturn(false); in createMockConfig() 56 when(config.pickupGestureEnabled(anyInt())).thenReturn(false); in createMockConfig() 57 when(config.pulseOnNotificationEnabled(anyInt())).thenReturn(true); in createMockConfig() 58 when(config.alwaysOnEnabled(anyInt())).thenReturn(false); in createMockConfig() 59 when(config.dozeSuppressed(anyInt())).thenReturn(false); in createMockConfig() 60 when(config.enabled(anyInt())).thenReturn(true); in createMockConfig() 61 when(config.getWakeLockScreenDebounce()).thenReturn(0L); in createMockConfig() 63 when(config.doubleTapSensorType()).thenReturn(null); in createMockConfig() 64 when(config.longPressSensorType()).thenReturn(null); in createMockConfig() [all …]
|
/frameworks/av/services/audioflinger/datapath/ |
D | AudioHwDevice.cpp | 45 struct audio_config *config, in openOutputStream() argument 49 struct audio_config originalConfig = *config; in openOutputStream() 53 ALOGV("openOutputStream(), try sampleRate %d, format %#x, channelMask %#x", config->sample_rate, in openOutputStream() 54 config->format, config->channel_mask); in openOutputStream() 55 status_t status = outputStream->open(handle, deviceType, config, address); in openOutputStream() 65 " status %d", config->sample_rate, config->format, config->channel_mask, status); in openOutputStream() 98 struct audio_config *config, in openInputStream() argument 104 struct audio_config originalConfig = *config; in openInputStream() 108 ALOGV("openInputStream(), try sampleRate %d, format %#x, channelMask %#x", config->sample_rate, in openInputStream() 109 config->format, config->channel_mask); in openInputStream() [all …]
|
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/surfaceeffects/ripple/ |
D | RippleAnimation.kt | 26 class RippleAnimation(private val config: RippleAnimationConfig) { in <lambda>() constant in com.android.systemui.surfaceeffects.ripple.RippleAnimation 28 val rippleShader: RippleShader = RippleShader(config.rippleShape) in <lambda>() 37 config.apply { config.color = color } in <lambda>() 47 animator.duration = config.duration in <lambda>() 52 rippleShader.distortionStrength = if (config.shouldDistort) 1 - progress else 0f in <lambda>() 70 setCenter(config.centerX, config.centerY) in <lambda>() 71 rippleSize.setMaxSize(config.maxWidth, config.maxHeight) in <lambda>() 72 pixelDensity = config.pixelDensity in <lambda>() 73 color = ColorUtils.setAlphaComponent(config.color, config.opacity) in <lambda>() 74 sparkleStrength = config.sparkleStrength in <lambda>() [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiAssociationTest.java | 71 WifiConfiguration config = getConfig(ssid, securityType, password); in testWifiAssociation() local 73 logv("Network config: %s", config.toString()); in testWifiAssociation() 74 connectToWifi(config); in testWifiAssociation() 83 WifiConfiguration config = null; in getConfig() local 86 config = WifiConfigurationHelper.createOpenConfig(ssid); in getConfig() 92 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 93 config.allowedGroupCiphers.set(GroupCipher.WEP40); in getConfig() 99 config = WifiConfigurationHelper.createWepConfig(ssid, password); in getConfig() 100 config.allowedGroupCiphers.set(GroupCipher.WEP104); in getConfig() 104 config = WifiConfigurationHelper.createPskConfig(ssid, password); in getConfig() [all …]
|
/frameworks/compile/libbcc/tests/debuginfo/ |
D | lit.site.cfg | 43 config.build_top = os.getenv('ANDROID_BUILD_TOP') 45 config.base_build_path = os.path.join(config.build_top, 'out', 'host', 49 config.test_format = lit.formats.ShTest() 52 config.filecheck = inferTool(lit, 'FileCheck', 'FILECHECK', \ 53 os.path.join(config.base_build_path, 'bin')) 56 config.test_bcc_debuginfo = inferTool(lit, 'test_bcc_debuginfo.pl', \ 57 'TEST_JIT_DEBUGINFO', os.path.join(config.build_top, 'frameworks', \ 61 config.gdb = inferTool(lit, 'arm-linux-androideabi-gdb', 'GDB', 62 config.environment['PATH']) 65 config.gdb_plugin = inferTool(lit, 'android-commands.py', [all …]
|