/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
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | SettingsIncidentTest.java | 19 import android.providers.settings.SettingProto; 20 import android.providers.settings.SettingsOperationProto; 21 import android.providers.settings.SettingsServiceDumpProto; 22 import android.providers.settings.UserSettingsProto; 75 private static void verifySettings(Message settings, final int filterLevel) throws Exception { in verifySettings() argument 76 verifySettings(getSettingProtos(settings), filterLevel); in verifySettings() 78 final List<SettingsOperationProto> ops = invoke(settings, "getHistoricalOperationsList"); in verifySettings() 94 Map<SettingProto, Destination> settings = new HashMap<>(); in getSettingProtos() local 115 … settings.put((SettingProto) o, dest == Destination.DEST_UNSET ? Destination.DEST_EXPLICIT : dest); in getSettingProtos() 119 settings.putAll(getSettingProtos((Message) o)); in getSettingProtos() [all …]
|
D | AlarmManagerIncidentTest.java | 53 ConstantsProto settings = dump.getSettings(); in verifyAlarmManagerServiceDumpProto() local 54 assertTrue(0 < settings.getMinFuturityDurationMs()); in verifyAlarmManagerServiceDumpProto() 55 assertTrue(0 < settings.getMinIntervalDurationMs()); in verifyAlarmManagerServiceDumpProto() 56 assertTrue(0 < settings.getListenerTimeoutDurationMs()); in verifyAlarmManagerServiceDumpProto() 57 assertTrue(0 < settings.getAllowWhileIdleShortDurationMs()); in verifyAlarmManagerServiceDumpProto() 58 assertTrue(0 < settings.getAllowWhileIdleLongDurationMs()); in verifyAlarmManagerServiceDumpProto() 59 assertTrue(0 < settings.getAllowWhileIdleWhitelistDurationMs()); in verifyAlarmManagerServiceDumpProto()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebChromeClientTest.java | 162 final WebSettings settings = mOnUiThread.getSettings(); in runWindowTest() local 163 settings.setJavaScriptEnabled(true); in runWindowTest() 164 settings.setJavaScriptCanOpenWindowsAutomatically(true); in runWindowTest() 165 settings.setSupportMultipleWindows(true); in runWindowTest() 221 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsBeforeUnloadIsCalled() local 222 settings.setJavaScriptEnabled(true); in testOnJsBeforeUnloadIsCalled() 223 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsBeforeUnloadIsCalled() 267 final WebSettings settings = mOnUiThread.getSettings(); in testOnJsAlert() local 268 settings.setJavaScriptEnabled(true); in testOnJsAlert() 269 settings.setJavaScriptCanOpenWindowsAutomatically(true); in testOnJsAlert() [all …]
|
D | WebViewZoomTest.java | 136 WebSettings settings = mOnUiThread.getSettings(); in testGetZoomControls() local 137 assertTrue(settings.supportZoom()); in testGetZoomControls() 143 settings.setSupportZoom(false); in testGetZoomControls() 144 assertFalse(settings.supportZoom()); in testGetZoomControls() 154 WebSettings settings = mOnUiThread.getSettings(); in testInvokeZoomPicker() local 155 assertTrue(settings.supportZoom()); in testInvokeZoomPicker() 196 WebSettings settings = mOnUiThread.getSettings(); in testCanZoomWhileZoomSupportedFalse() local 197 settings.setSupportZoom(false); in testCanZoomWhileZoomSupportedFalse() 198 assertFalse(settings.supportZoom()); in testCanZoomWhileZoomSupportedFalse()
|
/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 | 107 PresetReverb.Settings settings = mReverb.getProperties(); in test1_1Properties() local 108 String str = settings.toString(); in test1_1Properties() 109 settings = new PresetReverb.Settings(str); in test1_1Properties() 110 short preset = (settings.preset == PresetReverb.PRESET_SMALLROOM) ? in test1_1Properties() 112 settings.preset = preset; in test1_1Properties() 113 mReverb.setProperties(settings); in test1_1Properties() 114 settings = mReverb.getProperties(); in test1_1Properties() 115 assertEquals("setProperties failed", settings.preset, preset); in test1_1Properties()
|
D | EnvReverbTest.java | 264 EnvironmentalReverb.Settings settings = mReverb.getProperties(); in test1_5Properties() local 265 String str = settings.toString(); in test1_5Properties() 266 settings = new EnvironmentalReverb.Settings(str); in test1_5Properties() 267 short level = (short)((settings.roomLevel == 0) ? -1000 : 0); in test1_5Properties() 268 settings.roomLevel = level; in test1_5Properties() 269 mReverb.setProperties(settings); in test1_5Properties() 270 settings = mReverb.getProperties(); in test1_5Properties() 272 (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) && in test1_5Properties() 273 (settings.roomLevel <= (level + MILLIBEL_TOLERANCE))); in test1_5Properties()
|
D | VirtualizerTest.java | 123 Virtualizer.Settings settings = mVirtualizer.getProperties(); in test1_1Properties() local 124 String str = settings.toString(); in test1_1Properties() 125 settings = new Virtualizer.Settings(str); in test1_1Properties() 127 short strength = settings.strength; in test1_1Properties() 131 settings.strength = strength; in test1_1Properties() 132 mVirtualizer.setProperties(settings); in test1_1Properties() 133 settings = mVirtualizer.getProperties(); in test1_1Properties() 138 ((float)settings.strength > (float)strength / STRENGTH_TOLERANCE) && in test1_1Properties() 139 ((float)settings.strength < (float)strength * STRENGTH_TOLERANCE)); in test1_1Properties()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | AppStandbyTests.java | 109 final StringBuilder settings = new StringBuilder(); 110 settings.append("min_futurity="); 111 settings.append(MIN_FUTURITY); 112 settings.append(",allow_while_idle_short_time="); 113 settings.append(ALLOW_WHILE_IDLE_SHORT_TIME); 115 settings.append(","); 116 settings.append(APP_BUCKET_DELAY_KEYS[i]); 117 settings.append("="); 118 settings.append(APP_STANDBY_DELAYS[i]); 120 settings.append(",app_standby_window="); [all …]
|
/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/tests/tests/telephony/current/src/android/telephony/cts/ |
D | VisualVoicemailServiceTest.java | 212 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_data() local 215 VisualVoicemailSms result = getSmsFromData(settings, (short) 1000, in testFilter_data() 379 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_originatingNumber_match_filtered() local 384 getSmsFromText(settings, "//CTSVVM:SYNC:key=value", true); in testFilter_originatingNumber_match_filtered() 393 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_originatingNumber_mismatch_notFiltered() local 398 getSmsFromText(settings, "//CTSVVM:SYNC:key=value", false); in testFilter_originatingNumber_mismatch_notFiltered() 412 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_port_match() local 416 getSmsFromData(settings, (short) 1000, in testFilter_port_match() 431 VisualVoicemailSmsFilterSettings settings = new VisualVoicemailSmsFilterSettings.Builder() in testFilter_port_mismatch() local 435 getSmsFromData(settings, (short) 1000, in testFilter_port_mismatch() [all …]
|
/cts/apps/CameraITS/tests/scene1/ |
D | test_post_raw_sensitivity_boost.py | 72 settings = [] 81 settings.append((s_raw, s_boost)) 99 (s, s_boost) = settings[i] 140 (s_prev, _) = settings[step - 1] 141 (s, s_boost) = settings[step]
|
D | test_raw_burst_sensitivity.py | 55 settings = [] 60 settings.append((s, e)) 78 (s, e) = settings[i]
|
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/ |
D | MediaBitstreamsDeviceSideTest.java | 189 SharedPreferences settings = ctx.getSharedPreferences(MediaBitstreams.K_MODULE, 0); in getSettings() local 190 return settings; in getSettings() 197 SharedPreferences settings = getSettings(); in setup() local 198 int n = settings.getInt(lastCrash, 0); in setup() 199 Editor editor = settings.edit(); in setup() 256 SharedPreferences settings = getSettings(); in verifyBitstream() local 260 if (settings.getInt(lastCrash, 0) >= 3) { in verifyBitstream() 277 if (settings.getInt(lastCrash, 0) >= 3) { in verifyBitstream()
|
/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/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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 476 Intent settings = new Intent(ACTION_NOTIFICATION_LISTENER_SETTINGS); in test() local 477 if (settings.resolveActivity(mPackageManager) == null) { in test() 518 Intent settings = new Intent(ACTION_NOTIFICATION_LISTENER_SETTINGS); in test() local 519 if (settings.resolveActivity(mPackageManager) == null) { in test()
|