Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java695 WifiEnterpriseConfig config = new WifiEnterpriseConfig(); in testSettersAndGetters() local
696 assertTrue(config.getEapMethod() == Eap.NONE); in testSettersAndGetters()
697 config.setEapMethod(Eap.PEAP); in testSettersAndGetters()
698 assertTrue(config.getEapMethod() == Eap.PEAP); in testSettersAndGetters()
699 config.setEapMethod(Eap.PWD); in testSettersAndGetters()
700 assertTrue(config.getEapMethod() == Eap.PWD); in testSettersAndGetters()
701 config.setEapMethod(Eap.TLS); in testSettersAndGetters()
702 assertTrue(config.getEapMethod() == Eap.TLS); in testSettersAndGetters()
703 config.setEapMethod(Eap.TTLS); in testSettersAndGetters()
704 assertTrue(config.getEapMethod() == Eap.TTLS); in testSettersAndGetters()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingVariantsTest.java118 LineBreakConfig config = new LineBreakConfig.Builder() in testBreakVariant_loose() local
121 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 90, SAMPLE_TEXT); in testBreakVariant_loose()
122 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 80, in testBreakVariant_loose()
125 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 70, in testBreakVariant_loose()
128 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 60, in testBreakVariant_loose()
131 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 50, in testBreakVariant_loose()
134 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 40, in testBreakVariant_loose()
138 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 30, in testBreakVariant_loose()
142 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 20, in testBreakVariant_loose()
148 assertLineBreak(SAMPLE_TEXT, BREAK_STRATEGY_SIMPLE, "ja-JP", config, 10, in testBreakVariant_loose()
[all …]
DStaticLayoutLineBreakAutoTest.kt128 val config = LineBreakConfig.Builder() in testAuto_JapaneseNone() constant
135 config, in testAuto_JapaneseNone()
143 config, in testAuto_JapaneseNone()
152 config, in testAuto_JapaneseNone()
162 config, in testAuto_JapaneseNone()
173 config, in testAuto_JapaneseNone()
181 assertLineBreak(JP_TEXT.repeat(6), Language.Japanese, config, 100, in testAuto_JapaneseNone()
193 val config = LineBreakConfig.Builder() in testAuto_JapanesePhrase() constant
200 config, in testAuto_JapanesePhrase()
208 config, in testAuto_JapanesePhrase()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DConfigTest.java226 TotalConfig config = new TotalConfig(); in makeClassicConfig() local
227 config.setProperty(Properties.LANGUAGE, "en"); in makeClassicConfig()
228 config.setProperty(Properties.COUNTRY, "US"); in makeClassicConfig()
229 config.setProperty(Properties.MCC, 310); in makeClassicConfig()
230 config.setProperty(Properties.MNC, 001); // unused in makeClassicConfig()
231 config.setProperty(Properties.TOUCHSCREEN, Configuration.TOUCHSCREEN_FINGER); in makeClassicConfig()
232 config.setProperty(Properties.KEYBOARD, Configuration.KEYBOARD_QWERTY); in makeClassicConfig()
233 config.setProperty(Properties.KEYBOARDHIDDEN, Configuration.KEYBOARDHIDDEN_YES); in makeClassicConfig()
234 config.setProperty(Properties.NAVIGATION, Configuration.NAVIGATION_TRACKBALL); in makeClassicConfig()
235 config.setProperty(Properties.ORIENTATION, Configuration.ORIENTATION_PORTRAIT); in makeClassicConfig()
[all …]
DConfigurationTest.java299 Configuration config = new Configuration(); in testDiff() local
300 config.mcc = 1; in testDiff()
301 doConfigCompare(ActivityInfo.CONFIG_MCC, mConfigDefault, config); in testDiff()
302 config.mnc = 1; in testDiff()
304 | ActivityInfo.CONFIG_MNC, mConfigDefault, config); in testDiff()
305 config.locale = Locale.getDefault(); in testDiff()
306 config.setLayoutDirection(config.locale); in testDiff()
310 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff()
311 config.setLocales(LocaleList.forLanguageTags("fr,en")); in testDiff()
315 | ActivityInfo.CONFIG_LAYOUT_DIRECTION, mConfigDefault, config); in testDiff()
[all …]
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DProtoExtractors.java35 final Configuration config = new Configuration(); in extract() local
37 return config; in extract()
39 config.windowConfiguration.setTo(extract(proto.windowConfiguration)); in extract()
40 config.densityDpi = proto.densityDpi; in extract()
41 config.orientation = proto.orientation; in extract()
42 config.screenHeightDp = proto.screenHeightDp; in extract()
43 config.screenWidthDp = proto.screenWidthDp; in extract()
44 config.smallestScreenWidthDp = proto.smallestScreenWidthDp; in extract()
45 config.screenLayout = proto.screenLayout; in extract()
46 config.uiMode = proto.uiMode; in extract()
[all …]
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualInputDeviceConfigTest.java131 VirtualDpadConfig config = createVirtualDpadConfig(); in testConstructorAndGetters_virtualDpadConfig() local
132 assertThat(config.getInputDeviceName()).isEqualTo(DEVICE_NAME); in testConstructorAndGetters_virtualDpadConfig()
133 assertThat(config.getVendorId()).isEqualTo(VENDOR_ID); in testConstructorAndGetters_virtualDpadConfig()
134 assertThat(config.getProductId()).isEqualTo(PRODUCT_ID); in testConstructorAndGetters_virtualDpadConfig()
135 assertThat(config.getAssociatedDisplayId()).isEqualTo(DISPLAY_ID); in testConstructorAndGetters_virtualDpadConfig()
140 VirtualDpadConfig config = createVirtualDpadConfig(); in testParcel_virtualDpadConfig() local
142 config.writeToParcel(parcel, 0); in testParcel_virtualDpadConfig()
146 assertThat(configFromParcel.getInputDeviceName()).isEqualTo(config.getInputDeviceName()); in testParcel_virtualDpadConfig()
147 assertThat(configFromParcel.getVendorId()).isEqualTo(config.getVendorId()); in testParcel_virtualDpadConfig()
148 assertThat(configFromParcel.getProductId()).isEqualTo(config.getProductId()); in testParcel_virtualDpadConfig()
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDRMTest.java77 Config config = ConfigFactory.getConfig(plugInName); in setUp() local
78 if (null != config) { in setUp()
79 mConfigs.add(config); in setUp()
84 private void register(Config config) throws Exception { in register() argument
86 config.getInfoOfRegistration(), in register()
87 config.getMimeType()); in register()
88 executeProcessDrmInfo(drmInfo, config); in register()
91 private void acquireRights(Config config) throws Exception { in acquireRights() argument
93 config.getInfoOfRightsAcquisition(), in acquireRights()
94 config.getMimeType()); in acquireRights()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiConfigLockdownTest.java74 for (WifiConfiguration config : configs) { in tearDown()
75 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID) || in tearDown()
76 areMatchingSsids(CHANGED_DEVICE_OWNER_SSID, config.SSID) || in tearDown()
77 areMatchingSsids(ORIGINAL_REGULAR_SSID, config.SSID) || in tearDown()
78 areMatchingSsids(CHANGED_REGULAR_SSID, config.SSID)) { in tearDown()
79 Log.d(TAG, "Removing " + config.networkId); in tearDown()
80 mWifiManager.removeNetwork(config.networkId); in tearDown()
90 for (WifiConfiguration config : configs) { in testDeviceOwnerCanUpdateConfig()
91 Log.d(TAG, "testDeviceOwnerCanUpdateConfig(): testing " + config.SSID); in testDeviceOwnerCanUpdateConfig()
92 if (areMatchingSsids(ORIGINAL_DEVICE_OWNER_SSID, config.SSID)) { in testDeviceOwnerCanUpdateConfig()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DConfigUtils.java94 public static void addEventMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addEventMetricForUidAtom() argument
97 addEventMetric(config, atomId, Arrays.asList(fvm)); in addEventMetricForUidAtom()
108 public static void addEventMetric(StatsdConfig.Builder config, int atomId) { in addEventMetric() argument
109 addEventMetric(config, atomId, /*fvms=*/null); in addEventMetric()
120 public static void addEventMetric(StatsdConfig.Builder config, int atomId, in addEventMetric() argument
132 config.addAtomMatcher(AtomMatcher.newBuilder() in addEventMetric()
135 config.addEventMetric(EventMetric.newBuilder() in addEventMetric()
151 public static void addGaugeMetricForUidAtom(StatsdConfig.Builder config, int atomId, in addGaugeMetricForUidAtom() argument
153 addGaugeMetricInternal(config, atomId, /*filterByUid=*/true, uidInAttributionChain, pkgName, in addGaugeMetricForUidAtom()
163 public static void addGaugeMetricForUidAtomWithDimensions(StatsdConfig.Builder config, in addGaugeMetricForUidAtomWithDimensions() argument
[all …]
/cts/tests/tests/wifi/src/android/net/wifi/p2p/cts/
DWifiP2pConfigTest.java71 WifiP2pConfig config = new WifiP2pConfig.Builder() in testWifiP2pConfigBuilderForPersist() local
79 assertWifiP2pConfigHasFields(config, TEST_NETWORK_NAME, TEST_PASSPHRASE, in testWifiP2pConfigBuilderForPersist()
85 WifiP2pConfig config = new WifiP2pConfig.Builder() in testWifiP2pConfigBuilderForNonPersist() local
93 assertWifiP2pConfigHasFields(config, TEST_NETWORK_NAME, TEST_PASSPHRASE, in testWifiP2pConfigBuilderForNonPersist()
99 WifiP2pConfig config = new WifiP2pConfig.Builder() in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeDefault() local
106 assertWifiP2pConfigHasFields(config, TEST_NETWORK_NAME, TEST_PASSPHRASE, in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeDefault()
113 WifiP2pConfig config = new WifiP2pConfig.Builder() in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeIpv4Dhcp() local
121 assertWifiP2pConfigHasFields(config, TEST_NETWORK_NAME, TEST_PASSPHRASE, in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeIpv4Dhcp()
128 WifiP2pConfig config = new WifiP2pConfig.Builder() in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeIpv6LinkLocal() local
136 assertWifiP2pConfigHasFields(config, TEST_NETWORK_NAME, TEST_PASSPHRASE, in testWifiP2pConfigBuilderForGroupClientIpProvisioningModeIpv6LinkLocal()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DLineBreakConfigSpanTest.kt99 val config = LineBreakConfig.Builder() in testLineBreakConfigSpan() constant
104 LineBreakConfigSpan(config), in testLineBreakConfigSpan()
114 assertEquals(config, runs[0].lineBreakConfig) in testLineBreakConfigSpan()
120 val config = LineBreakConfig.Builder() in testLineBreakConfigSpan_getSpanTypeId() constant
123 val span = LineBreakConfigSpan(config) in testLineBreakConfigSpan_getSpanTypeId()
142 val config = LineBreakConfig.Builder() in testLineBreakConfigSpan_override() constant
151 LineBreakConfigSpan(config), in testLineBreakConfigSpan_override()
188 val config = LineBreakConfig.Builder() in testLineBreakConfigSpan_partialOverride() constant
197 LineBreakConfigSpan(config), in testLineBreakConfigSpan_partialOverride()
220 assertEquals(config, runs[1].lineBreakConfig) in testLineBreakConfigSpan_partialOverride()
[all …]
/cts/tests/tests/content/src/android/content/wm/cts/
DContextRegisterComponentCallbacksTest.java91 final Configuration config = new Configuration(); in testRegisterComponentCallbacksOnActivity() local
92 config.fontScale = 1.2f; in testRegisterComponentCallbacksOnActivity()
93 config.windowConfiguration.setWindowingMode( in testRegisterComponentCallbacksOnActivity()
95 config.windowConfiguration.setBounds(new Rect(0, 0, 100, 100)); in testRegisterComponentCallbacksOnActivity()
97 mActivityRule.runOnUiThread(() -> activity.onConfigurationChanged(config)); in testRegisterComponentCallbacksOnActivity()
102 .that(mTestCallbacks.mConfiguration).isEqualTo(config); in testRegisterComponentCallbacksOnActivity()
117 final Configuration config = new Configuration(); in testRegisterComponentCallbacksOnContextWrapper() local
118 config.fontScale = 1.2f; in testRegisterComponentCallbacksOnContextWrapper()
119 config.windowConfiguration.setWindowingMode( in testRegisterComponentCallbacksOnContextWrapper()
121 config.windowConfiguration.setBounds(new Rect(0, 0, 100, 100)); in testRegisterComponentCallbacksOnContextWrapper()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DEgl10Utils.java46 EGLConfig config = chooseConfig(egl, display, configs, configSpec); in chooseConfig() local
47 if (config == null) { in chooseConfig()
50 return config; in chooseConfig()
83 for (EGLConfig config : configs) { in chooseConfig()
84 int d = findConfigAttrib(egl, display, config, EGL10.EGL_DEPTH_SIZE); in chooseConfig()
85 int s = findConfigAttrib(egl, display, config, EGL10.EGL_STENCIL_SIZE); in chooseConfig()
87 int r = findConfigAttrib(egl, display, config, EGL10.EGL_RED_SIZE); in chooseConfig()
88 int g = findConfigAttrib(egl, display, config, EGL10.EGL_GREEN_SIZE); in chooseConfig()
89 int b = findConfigAttrib(egl, display, config, EGL10.EGL_BLUE_SIZE); in chooseConfig()
90 int a = findConfigAttrib(egl, display, config, EGL10.EGL_ALPHA_SIZE); in chooseConfig()
[all …]
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerFilterTest.java249 AlpFilterConfiguration config = in testAlpFilterConfiguration() local
257 assertEquals(Filter.TYPE_ALP, config.getType()); in testAlpFilterConfiguration()
258 assertEquals(AlpFilterConfiguration.PACKET_TYPE_COMPRESSED, config.getPacketType()); in testAlpFilterConfiguration()
260 AlpFilterConfiguration.LENGTH_TYPE_WITH_ADDITIONAL_HEADER, config.getLengthType()); in testAlpFilterConfiguration()
261 assertEquals(null, config.getSettings()); in testAlpFilterConfiguration()
266 IpFilterConfiguration config = in testIpFilterConfiguration() local
278 assertEquals(Filter.TYPE_IP, config.getType()); in testIpFilterConfiguration()
280 new byte[] {(byte) 0xC0, (byte) 0xA8, 0, 1}, config.getSrcIpAddress()); in testIpFilterConfiguration()
282 new byte[] {(byte) 0xC0, (byte) 0xA8, 3, 4}, config.getDstIpAddress()); in testIpFilterConfiguration()
283 assertEquals(33, config.getSrcPort()); in testIpFilterConfiguration()
[all …]
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerFilterTest.java249 AlpFilterConfiguration config = in testAlpFilterConfiguration() local
257 assertEquals(Filter.TYPE_ALP, config.getType()); in testAlpFilterConfiguration()
258 assertEquals(AlpFilterConfiguration.PACKET_TYPE_COMPRESSED, config.getPacketType()); in testAlpFilterConfiguration()
260 AlpFilterConfiguration.LENGTH_TYPE_WITH_ADDITIONAL_HEADER, config.getLengthType()); in testAlpFilterConfiguration()
261 assertEquals(null, config.getSettings()); in testAlpFilterConfiguration()
266 IpFilterConfiguration config = in testIpFilterConfiguration() local
278 assertEquals(Filter.TYPE_IP, config.getType()); in testIpFilterConfiguration()
280 new byte[] {(byte) 0xC0, (byte) 0xA8, 0, 1}, config.getSrcIpAddress()); in testIpFilterConfiguration()
282 new byte[] {(byte) 0xC0, (byte) 0xA8, 3, 4}, config.getDstIpAddress()); in testIpFilterConfiguration()
283 assertEquals(33, config.getSrcPort()); in testIpFilterConfiguration()
[all …]
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/loading/
DCommonConfigLoadingTest.java26 import com.android.tradefed.config.ConfigurationDescriptor;
27 import com.android.tradefed.config.ConfigurationException;
28 import com.android.tradefed.config.ConfigurationFactory;
29 import com.android.tradefed.config.IConfiguration;
30 import com.android.tradefed.config.IDeviceConfiguration;
155 for (File config : listConfigs) { in testConfigurationLoad()
157 .createConfigurationFromArgs(new String[] {config.getAbsolutePath()}); in testConfigurationLoad()
159 … throw new ConfigurationException(String.format("%s declares more than 2 devices.", config)); in testConfigurationLoad()
170 + "the same.", config)); in testConfigurationLoad()
177 config.getName(), prep.getClass())); in testConfigurationLoad()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmap_ConfigTest.java46 Config[] config = Config.values(); in testValues() local
48 assertTrue(config.length >= 7); in testValues()
49 assertEquals(Config.ALPHA_8, config[0]); in testValues()
50 assertEquals(Config.RGB_565, config[1]); in testValues()
51 assertEquals(Config.ARGB_4444, config[2]); in testValues()
52 assertEquals(Config.ARGB_8888, config[3]); in testValues()
53 assertEquals(Config.RGBA_F16, config[4]); in testValues()
54 assertEquals(Config.HARDWARE, config[5]); in testValues()
55 assertEquals(Config.RGBA_1010102, config[6]); in testValues()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCarrierConfigManagerTest.java164 private void checkConfig(PersistableBundle config) { in checkConfig() argument
165 if (config == null) { in checkConfig()
170 assertNotNull("CarrierConfigManager should not return null config", config); in checkConfig()
174 config.getBoolean(CarrierConfigManager.KEY_ADDITIONAL_CALL_SETTING_BOOL), true); in checkConfig()
177 config.getString(CarrierConfigManager.KEY_VVM_DESTINATION_NUMBER_STRING), ""); in checkConfig()
179 config.getInt(CarrierConfigManager.KEY_VVM_PORT_NUMBER_INT), 0); in checkConfig()
181 config.getString(CarrierConfigManager.KEY_VVM_TYPE_STRING), ""); in checkConfig()
183 config.getBoolean(CarrierConfigManager.KEY_VVM_CELLULAR_DATA_REQUIRED_BOOL), in checkConfig()
186 config.getBoolean(CarrierConfigManager.KEY_VVM_PREFETCH_BOOL), true); in checkConfig()
188 config.getString(CarrierConfigManager.KEY_CARRIER_VVM_PACKAGE_NAME_STRING), ""); in checkConfig()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DFullScreenMagnificationControllerTest.java135 final MagnificationConfig config = new MagnificationConfig.Builder() in zoomIn() local
142 setConfig.set(controller.setMagnificationConfig(config, false)); in zoomIn()
144 waitUntilMagnificationConfigEquals(controller, config); in zoomIn()
151 final MagnificationConfig config = controller.getMagnificationConfig(); in currentScale() local
153 assertThat(config).isNotNull(); in currentScale()
155 return config.getScale(); in currentScale()
160 MagnificationConfig config) throws Exception { in waitUntilMagnificationConfigEquals() argument
162 "Failed to apply the config. expected: " + config + " , actual: " in waitUntilMagnificationConfigEquals()
169 if (config.isActivated()) { in waitUntilMagnificationConfigEquals()
170 return actualConfig.getMode() == config.getMode() in waitUntilMagnificationConfigEquals()
[all …]
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/
DApkPackageNameCheck.java23 import com.android.tradefed.config.ConfigurationException;
24 import com.android.tradefed.config.ConfigurationFactory;
25 import com.android.tradefed.config.IConfiguration;
26 import com.android.tradefed.config.IDeviceConfiguration;
101 for (File config : listConfigs) { in testApkPackageNames()
103 .createConfigurationFromArgs(new String[] {config.getAbsolutePath()}); in testApkPackageNames()
115 … errors.add(String.format("Config %s should not disable abort-on-push-failure", config.getName())); in testApkPackageNames()
119 File file32 = FileUtil.findFile(config.getParentFile(), path + "32"); in testApkPackageNames()
120 File file64 = FileUtil.findFile(config.getParentFile(), path + "64"); in testApkPackageNames()
130 path, config.getName())); in testApkPackageNames()
[all …]
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceConfigTest.java55 SmartspaceConfig config = new SmartspaceConfig.Builder(getContext(), in testCreateSmartspaceConfig() local
59 assertThat(config.getUiSurface()).isEqualTo("ui_surface"); in testCreateSmartspaceConfig()
60 assertThat(config.getExtras()).isEqualTo(extras); in testCreateSmartspaceConfig()
61 assertThat(config.getSmartspaceTargetCount()).isEqualTo(5); in testCreateSmartspaceConfig()
62 assertThat(config.getPackageName()).isEqualTo(getContext().getPackageName()); in testCreateSmartspaceConfig()
66 config.writeToParcel(parcel, 0); in testCreateSmartspaceConfig()
69 assertThat(config.getUiSurface()).isEqualTo(copy.getUiSurface()); in testCreateSmartspaceConfig()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DActivityManagerGetConfigTests.java113 EGLConfig config, in addExtensionsForConfig() argument
119 egl.eglCreateContext(display, config, EGL10.EGL_NO_CONTEXT, contextAttribs); in addExtensionsForConfig()
126 EGLSurface surface = egl.eglCreatePbufferSurface(display, config, surfaceSize); in addExtensionsForConfig()
227 private void checkResourceConfig(Configuration config, DisplayMetrics metrics, in checkResourceConfig() argument
248 config.fontScale, resConfig.configuration.fontScale, Float.MIN_VALUE*5); in checkResourceConfig()
250 config.mcc, resConfig.configuration.mcc); in checkResourceConfig()
252 config.mnc, resConfig.configuration.mnc); in checkResourceConfig()
253 LocaleList llist = config.getLocales(); in checkResourceConfig()
261 config.screenLayout, resConfig.configuration.screenLayout); in checkResourceConfig()
263 config.colorMode, resConfig.configuration.colorMode); in checkResourceConfig()
[all …]
/cts/tests/tests/virtualdevice/sensor/src/android/virtualdevice/cts/sensor/
DVirtualSensorConfigTest.java128 final VirtualSensorConfig config = in sensorConfig_onlyRequiredFields() local
130 assertThat(config.getVendor()).isNull(); in sensorConfig_onlyRequiredFields()
131 assertThat(config.getHighestDirectReportRateLevel()).isEqualTo(RATE_STOP); in sensorConfig_onlyRequiredFields()
132 assertThat(config.getDirectChannelTypesSupported()).isEqualTo(0); in sensorConfig_onlyRequiredFields()
133 assertThat(config.getMaximumRange()).isEqualTo(0f); in sensorConfig_onlyRequiredFields()
134 assertThat(config.getResolution()).isEqualTo(0f); in sensorConfig_onlyRequiredFields()
135 assertThat(config.getPower()).isEqualTo(0f); in sensorConfig_onlyRequiredFields()
136 assertThat(config.getMinDelay()).isEqualTo(0); in sensorConfig_onlyRequiredFields()
137 assertThat(config.getMaxDelay()).isEqualTo(0); in sensorConfig_onlyRequiredFields()
138 assertThat(config.getFlags()).isEqualTo(0); in sensorConfig_onlyRequiredFields()
/cts/tests/tests/vcn/src/android/net/vcn/cts/
DVcnConfigTest.java67 final VcnConfig config = makeMinimalTestConfigBuilder().build(); in testBuilderAndGettersWithMinimumSet() local
71 config.getGatewayConnectionConfigs()); in testBuilderAndGettersWithMinimumSet()
73 RESTRICTED_TRANSPORTS_DEFAULT, config.getRestrictedUnderlyingNetworkTransports()); in testBuilderAndGettersWithMinimumSet()
78 final VcnConfig config = in testBuilderAndGettersWithRestrictedTransports() local
85 config.getGatewayConnectionConfigs()); in testBuilderAndGettersWithRestrictedTransports()
86 assertEquals(RESTRICTED_TRANSPORTS, config.getRestrictedUnderlyingNetworkTransports()); in testBuilderAndGettersWithRestrictedTransports()
99 final VcnConfig config = in testBuilderAndGettersWithMultipleGatewayConfigs() local
108 assertEquals(expectedGatewayConfigs, config.getGatewayConnectionConfigs()); in testBuilderAndGettersWithMultipleGatewayConfigs()

12345678910>>...15