/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | ScanSettingsTest.java | 31 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()
|
D | AdvertiseSettingsTest.java | 31 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()
|
D | ScanCallbackTest.java | 50 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()
|
D | AdvertiseCallbackTest.java | 74 public void onStartSuccess(AdvertiseSettings settings) { in onStartSuccess() argument
|
D | BluetoothLeScanTest.java | 131 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/ |
D | WebChromeClientTest.java | 148 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 …]
|
D | WebViewTest.java | 281 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/ |
D | EqualizerTest.java | 159 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 …]
|
D | BassBoostTest.java | 116 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()
|
D | PresetReverbTest.java | 105 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()
|
D | EnvReverbTest.java | 262 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()
|
D | VirtualizerTest.java | 121 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/ |
D | GyroscopeTestActivity.java | 68 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/ |
D | test_raw_burst_sensitivity.py | 54 settings = [] 59 settings.append((s,e)) 65 (s,e) = settings[i]
|
D | test_post_raw_sensitivity_boost.py | 69 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/ |
D | SettingsLeanbackStubActivity.java | 17 package android.tv.settings.cts;
|
D | Utils.java | 17 package android.tv.settings.cts;
|
D | SettingsLeanbackTest.java | 17 package android.tv.settings.cts;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
D | BackupAccessibilityTestActivity.java | 178 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/ |
D | ConnectionAccessClientActivity.java | 55 View settings = findViewById(R.id.bt_settings); in onCreate() local 56 settings.setOnClickListener(new OnClickListener() { in onCreate()
|
D | ConnectionAccessServerActivity.java | 61 View settings = findViewById(R.id.bt_settings); in onCreate() local 62 settings.setOnClickListener(new OnClickListener() { in onCreate()
|
D | BleAdvertiserService.java | 247 AdvertiseSettings settings = generateSetting(t); in handleIntent() local 248 mAdvertiser.startAdvertising(settings, d, mPowerCallback.get(t)); in handleIntent()
|
/cts/tests/camera/src/android/hardware/cts/ |
D | CameraTest.java | 2105 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/ |
D | CameraOrientationActivity.java | 111 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/ |
D | InteractiveVerifierActivity.java | 390 Intent settings = new Intent(NOTIFICATION_LISTENER_SETTINGS); in test() local 391 if (settings.resolveActivity(mPackageManager) == null) { in test()
|