Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 27) 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.java113 ScanSettings settings = new ScanSettings.Builder().setScanMode( in testScanFilter() local
115 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 testOnJsBeforeUnload() local
209 settings.setJavaScriptEnabled(true); in testOnJsBeforeUnload()
210 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsBeforeUnload()
234 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsAlert() local
235 settings.setJavaScriptEnabled(true); in testOnJsAlert()
236 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsAlert()
[all …]
DWebViewTest.java241 WebSettings settings = mWebView.getSettings(); in testGetZoomControls() local
242 assertTrue(settings.supportZoom()); in testGetZoomControls()
247 settings.setSupportZoom(false); in testGetZoomControls()
248 assertFalse(settings.supportZoom()); in testGetZoomControls()
257 WebSettings settings = mWebView.getSettings(); in testInvokeZoomPicker() local
258 assertTrue(settings.supportZoom()); in testInvokeZoomPicker()
281 WebSettings settings = mOnUiThread.getSettings(); in testZoom() local
282 settings.setSupportZoom(false); in testZoom()
283 assertFalse(settings.supportZoom()); in testZoom()
316 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.py52 settings = []
57 settings.append((s,e))
63 (s,e) = settings[i]
/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/tests/hardware/src/android/hardware/cts/
DCameraTest.java2108 SceneModeSettings[] settings = new SceneModeSettings[supportedSceneModes.size()];
2113 settings[i] = new SceneModeSettings(parameters);
2131 settings[i].mFlash, parameters.getFlashMode());
2133 settings[i].mFocus, parameters.getFocusMode());
2135 settings[i].mWhiteBalance, parameters.getWhiteBalance());
2138 settings[i].mSupportedFlash, parameters.getSupportedFlashModes());
2140 settings[i].mSupportedFocus, parameters.getSupportedFocusModes());
2142 settings[i].mSupportedWhiteBalance, parameters.getSupportedWhiteBalance());
2145 for (int i = 0; i < settings.length; i++) {
2146 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.java388 Intent settings = new Intent(NOTIFICATION_LISTENER_SETTINGS); in test() local
389 if (settings.resolveActivity(mPackageManager) == null) { in test()
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/ui/
DMainFragment.java148 HeaderItem gridHeader = new HeaderItem(i, getString(R.string.settings)); in buildRowAdapterItems()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dgbemu.js5954 this.usedBootROM = settings[1];
5962 if (!settings[11]) {
6038 if (!settings[9]) {
6203 if (!settings[2] && this.name + this.gameCode + this.ROM[0x143] == "Game and Watch 50") {
6212 this.cGBC = !settings[2];
6271 this.baseCPUCyclesPerIteration = 0x80000 / 0x7D * settings[6];
6326 this.canvas.width = this.onscreenWidth = (!settings[12]) ? 160 : this.canvas.width;
6327 this.canvas.height = this.onscreenHeight = (!settings[12]) ? 144 : this.canvas.height;
6333 this.offscreenWidth = (!settings[12]) ? 160 : this.canvas.width;
6334 this.offscreenHeight = (!settings[12]) ? 144 : this.canvas.height;
[all …]

12