Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 28) 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.java131 ScanSettings settings = new ScanSettings.Builder().setScanMode( in testScanFilter() local
133 mScanner.startScan(filters, settings, filterLeScanCallback); in testScanFilter()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebChromeClientTest.java148 final WebSettings settings = mOnUiThread.getSettings(); in runWindowTest() local
149 settings.setJavaScriptEnabled(true); in runWindowTest()
150 settings.setJavaScriptCanOpenWindowsAutomatically(true); in runWindowTest()
151 settings.setSupportMultipleWindows(true); in runWindowTest()
208 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsBeforeUnloadIsCalled() local
209 settings.setJavaScriptEnabled(true); in testOnJsBeforeUnloadIsCalled()
210 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsBeforeUnloadIsCalled()
233 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsAlert() local
234 settings.setJavaScriptEnabled(true); in testOnJsAlert()
235 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsAlert()
[all …]
DWebViewTest.java281 WebSettings settings = mWebView.getSettings(); in testGetZoomControls() local
282 assertTrue(settings.supportZoom()); in testGetZoomControls()
287 settings.setSupportZoom(false); in testGetZoomControls()
288 assertFalse(settings.supportZoom()); in testGetZoomControls()
297 WebSettings settings = mWebView.getSettings(); in testInvokeZoomPicker() local
298 assertTrue(settings.supportZoom()); in testInvokeZoomPicker()
321 WebSettings settings = mOnUiThread.getSettings(); in testZoom() local
322 settings.setSupportZoom(false); in testZoom()
323 assertFalse(settings.supportZoom()); in testZoom()
356 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/apps/CameraITS/tests/scene1/
Dtest_raw_burst_sensitivity.py54 settings = []
59 settings.append((s,e))
65 (s,e) = settings[i]
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]
/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/backup/
DBackupAccessibilityTestActivity.java178 private void addSecureSettings(List<BackupItem> items, List<String> settings) { in addSecureSettings() argument
179 for (String setting : settings) { in addSecureSettings()
185 private void addSystemSettings(List<BackupItem> items, List<String> settings) { in addSystemSettings() argument
186 for (String setting : settings) { in addSystemSettings()
/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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/orientation/
DCameraOrientationActivity.java111 Settings settings = getSettings(stageIndex); in onCreate() local
130 mCurrentCameraId = settings.mCameraId; in onCreate()
136 mNextPreviewOrientation = settings.mOrientation; in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java390 Intent settings = new Intent(NOTIFICATION_LISTENER_SETTINGS); in test() local
391 if (settings.resolveActivity(mPackageManager) == null) { in test()

12