Home
last modified time | relevance | path

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

12

/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DScanSettingsTest.java31 ScanSettings settings = new ScanSettings.Builder().build(); in testDefaultSettings() local
32 assertEquals(ScanSettings.CALLBACK_TYPE_ALL_MATCHES, settings.getCallbackType()); in testDefaultSettings()
33 assertEquals(ScanSettings.SCAN_MODE_LOW_POWER, settings.getScanMode()); in testDefaultSettings()
34 assertEquals(0, settings.getScanResultType()); in testDefaultSettings()
35 assertEquals(0, settings.getReportDelayMillis()); in testDefaultSettings()
40 ScanSettings settings = new ScanSettings.Builder().build(); in testDescribeContents() local
41 assertEquals(0, settings.describeContents()); in testDescribeContents()
48 ScanSettings settings = new ScanSettings.Builder() in testReadWriteParcel() local
54 settings.writeToParcel(parcel, 0); in testReadWriteParcel()
58 assertEquals(ScanSettings.SCAN_MODE_LOW_LATENCY, settings.getScanMode()); in testReadWriteParcel()
DAdvertiseSettingsTest.java31 AdvertiseSettings settings = new AdvertiseSettings.Builder().build(); in testDefaultSettings() local
32 assertEquals(AdvertiseSettings.ADVERTISE_MODE_LOW_POWER, settings.getMode()); in testDefaultSettings()
33 assertEquals(AdvertiseSettings.ADVERTISE_TX_POWER_MEDIUM, settings.getTxPowerLevel()); in testDefaultSettings()
34 assertEquals(0, settings.getTimeout()); in testDefaultSettings()
35 assertTrue(settings.isConnectable()); in testDefaultSettings()
40 AdvertiseSettings settings = new AdvertiseSettings.Builder().build(); in testDescribeContents() local
41 assertEquals(0, settings.describeContents()); in testDescribeContents()
48 AdvertiseSettings settings = new AdvertiseSettings.Builder() in testReadWriteParcel() local
54 settings.writeToParcel(parcel, 0); in testReadWriteParcel()
61 assertFalse(settings.isConnectable()); in testReadWriteParcel()
DScanCallbackTest.java50 ScanSettings settings = new ScanSettings.Builder().setReportDelay(1000).build(); in testBatchScans() local
52 mMockScanner.startScan(settings, mMockScanCallback); in testBatchScans()
57 ScanSettings settings = new ScanSettings.Builder().build(); in testScanFail() local
60 mMockScanner.startScan(settings, mMockScanCallback); in testScanFail()
63 mMockScanner.startScan(settings, mMockScanCallback); in testScanFail()
70 void startScan(ScanSettings settings, ScanCallback callback) { in startScan() argument
77 if (settings.getReportDelayMillis() == 0) { in startScan()
DAdvertiseCallbackTest.java74 public void onStartSuccess(AdvertiseSettings settings) { in onStartSuccess() argument
DBluetoothLeScanTest.java135 ScanSettings settings = new ScanSettings.Builder().setScanMode( in testScanFilter() local
137 mScanner.startScan(filters, settings, filterLeScanCallback); in testScanFilter()
/cts/hostsidetests/incident/src/com/android/server/cts/
DSettingsIncidentTest.java19 import android.providers.settings.SettingProto;
20 import android.providers.settings.SettingsOperationProto;
21 import android.providers.settings.SettingsServiceDumpProto;
22 import android.providers.settings.UserSettingsProto;
58 private void verifySettings(GeneratedMessage settings) throws Exception { in verifySettings() argument
59 verifySettings(getSettingProtos(settings)); in verifySettings()
61 final List<SettingsOperationProto> ops = invoke(settings, "getHistoricalOpList"); in verifySettings()
104 private void verifySettings(List<SettingProto> settings) throws Exception { in verifySettings() argument
105 assertFalse(settings.isEmpty()); in verifySettings()
107 for (SettingProto setting : settings) { in verifySettings()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java149 final WebSettings settings = mOnUiThread.getSettings(); in runWindowTest() local
150 settings.setJavaScriptEnabled(true); in runWindowTest()
151 settings.setJavaScriptCanOpenWindowsAutomatically(true); in runWindowTest()
152 settings.setSupportMultipleWindows(true); in runWindowTest()
209 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsBeforeUnloadIsCalled() local
210 settings.setJavaScriptEnabled(true); in testOnJsBeforeUnloadIsCalled()
211 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsBeforeUnloadIsCalled()
234 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsAlert() local
235 settings.setJavaScriptEnabled(true); in testOnJsAlert()
236 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsAlert()
[all …]
DWebViewTest.java290 WebSettings settings = mWebView.getSettings(); in testGetZoomControls() local
291 assertTrue(settings.supportZoom()); in testGetZoomControls()
296 settings.setSupportZoom(false); in testGetZoomControls()
297 assertFalse(settings.supportZoom()); in testGetZoomControls()
306 WebSettings settings = mWebView.getSettings(); in testInvokeZoomPicker() local
307 assertTrue(settings.supportZoom()); in testInvokeZoomPicker()
330 WebSettings settings = mOnUiThread.getSettings(); in testZoom() local
331 settings.setSupportZoom(false); in testZoom()
332 assertFalse(settings.supportZoom()); in testZoom()
365 settings.setSupportZoom(true); in testZoom()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DEqualizerTest.java159 Equalizer.Settings settings = mEqualizer.getProperties(); in test1_3Properties() local
160 assertTrue("no enough bands", settings.numBands >= MIN_NUMBER_OF_BANDS); in test1_3Properties()
162 if (settings.bandLevels[0] == 0) { in test1_3Properties()
165 String str = settings.toString(); in test1_3Properties()
166 settings = new Equalizer.Settings(str); in test1_3Properties()
167 settings.curPreset = (short)-1; in test1_3Properties()
168 settings.bandLevels[0] = newLevel; in test1_3Properties()
169 mEqualizer.setProperties(settings); in test1_3Properties()
170 settings = mEqualizer.getProperties(); in test1_3Properties()
172 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties()
[all …]
DBassBoostTest.java116 BassBoost.Settings settings = mBassBoost.getProperties(); in test1_1Properties() local
117 String str = settings.toString(); in test1_1Properties()
118 settings = new BassBoost.Settings(str); in test1_1Properties()
120 short strength = settings.strength; in test1_1Properties()
124 settings.strength = strength; in test1_1Properties()
125 mBassBoost.setProperties(settings); in test1_1Properties()
126 settings = mBassBoost.getProperties(); in test1_1Properties()
131 ((float)settings.strength > (float)strength / STRENGTH_TOLERANCE) && in test1_1Properties()
132 ((float)settings.strength < (float)strength * STRENGTH_TOLERANCE)); in test1_1Properties()
DPresetReverbTest.java105 PresetReverb.Settings settings = mReverb.getProperties(); in test1_1Properties() local
106 String str = settings.toString(); in test1_1Properties()
107 settings = new PresetReverb.Settings(str); in test1_1Properties()
108 short preset = (settings.preset == PresetReverb.PRESET_SMALLROOM) ? in test1_1Properties()
110 settings.preset = preset; in test1_1Properties()
111 mReverb.setProperties(settings); in test1_1Properties()
112 settings = mReverb.getProperties(); in test1_1Properties()
113 assertEquals("setProperties failed", settings.preset, preset); in test1_1Properties()
DEnvReverbTest.java262 EnvironmentalReverb.Settings settings = mReverb.getProperties(); in test1_5Properties() local
263 String str = settings.toString(); in test1_5Properties()
264 settings = new EnvironmentalReverb.Settings(str); in test1_5Properties()
265 short level = (short)((settings.roomLevel == 0) ? -1000 : 0); in test1_5Properties()
266 settings.roomLevel = level; in test1_5Properties()
267 mReverb.setProperties(settings); in test1_5Properties()
268 settings = mReverb.getProperties(); in test1_5Properties()
270 (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) && in test1_5Properties()
271 (settings.roomLevel <= (level + MILLIBEL_TOLERANCE))); in test1_5Properties()
DVirtualizerTest.java121 Virtualizer.Settings settings = mVirtualizer.getProperties(); in test1_1Properties() local
122 String str = settings.toString(); in test1_1Properties()
123 settings = new Virtualizer.Settings(str); in test1_1Properties()
125 short strength = settings.strength; in test1_1Properties()
129 settings.strength = strength; in test1_1Properties()
130 mVirtualizer.setProperties(settings); in test1_1Properties()
131 settings = mVirtualizer.getProperties(); in test1_1Properties()
136 ((float)settings.strength > (float)strength / STRENGTH_TOLERANCE) && in test1_1Properties()
137 ((float)settings.strength < (float)strength * STRENGTH_TOLERANCE)); in test1_1Properties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DGyroscopeTestActivity.java68 Settings settings = getSettings(stageIndex); in onCreate() local
77 mSensorListener = new SensorListener(settings.mSensorEventIndex, in onCreate()
78 settings.mExpectPositiveValue); in onCreate()
82 mRenderer.setRotation(settings.mRotateX, settings.mRotateY, settings.mRotateZ); in onCreate()
87 settings.mStageIndex + 1, settings.mTotalStages)); in onCreate()
/cts/tests/tests/telephony/src/android/telephony/cts/
DVisualVoicemailServiceTest.java202 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_data() local
205 VisualVoicemailSms result = getSmsFromData(settings, (short) 1000, in testFilter_data()
356 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_originatingNumber_match_filtered() local
361 getSmsFromText(settings, "//CTSVVM:SYNC:key=value", true); in testFilter_originatingNumber_match_filtered()
369 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_originatingNumber_mismatch_notFiltered() local
374 getSmsFromText(settings, "//CTSVVM:SYNC:key=value", false); in testFilter_originatingNumber_mismatch_notFiltered()
387 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_port_match() local
391 getSmsFromData(settings, (short) 1000, in testFilter_port_match()
405 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_port_mismatch() local
409 getSmsFromData(settings, (short) 1000, in testFilter_port_mismatch()
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_post_raw_sensitivity_boost.py69 settings = []
78 settings.append((s_raw, s_boost))
96 (s, s_boost) = settings[i]
128 (s_prev, s_boost_prev) = settings[step - 1]
129 (s, s_boost) = settings[step]
Dtest_raw_burst_sensitivity.py54 settings = []
59 settings.append((s, e))
77 (s, e) = settings[i]
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java180 SharedPreferences settings = ctx.getSharedPreferences(MediaBitstreams.K_MODULE, 0); in getSettings() local
181 return settings; in getSettings()
188 SharedPreferences settings = getSettings(); in setup() local
189 int n = settings.getInt(lastCrash, 0); in setup()
190 Editor editor = settings.edit(); in setup()
247 SharedPreferences settings = getSettings(); in verifyBitstream() local
251 if (settings.getInt(lastCrash, 0) >= 3) { in verifyBitstream()
268 if (settings.getInt(lastCrash, 0) >= 3) { in verifyBitstream()
/cts/tests/tests/tv/src/android/tv/settings/cts/
DSettingsLeanbackStubActivity.java17 package android.tv.settings.cts;
DUtils.java17 package android.tv.settings.cts;
DSettingsLeanbackTest.java17 package android.tv.settings.cts;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DConnectionAccessClientActivity.java55 View settings = findViewById(R.id.bt_settings); in onCreate() local
56 settings.setOnClickListener(new OnClickListener() { in onCreate()
DConnectionAccessServerActivity.java61 View settings = findViewById(R.id.bt_settings); in onCreate() local
62 settings.setOnClickListener(new OnClickListener() { in onCreate()
DBleAdvertiserService.java247 AdvertiseSettings settings = generateSetting(t); in handleIntent() local
248 mAdvertiser.startAdvertising(settings, d, mPowerCallback.get(t)); in handleIntent()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2105 SceneModeSettings[] settings = new SceneModeSettings[supportedSceneModes.size()];
2110 settings[i] = new SceneModeSettings(parameters);
2128 settings[i].mFlash, parameters.getFlashMode());
2130 settings[i].mFocus, parameters.getFocusMode());
2132 settings[i].mWhiteBalance, parameters.getWhiteBalance());
2135 settings[i].mSupportedFlash, parameters.getSupportedFlashModes());
2137 settings[i].mSupportedFocus, parameters.getSupportedFocusModes());
2139 settings[i].mSupportedWhiteBalance, parameters.getSupportedWhiteBalance());
2142 for (int i = 0; i < settings.length; i++) {
2143 if (Parameters.SCENE_MODE_AUTO.equals(settings[i].mScene)) continue;
[all …]

12