Home
last modified time | relevance | path

Searched refs:settings (Results 1 – 25 of 43) 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
/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;
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
115settings.put((SettingProto) o, dest == Destination.DEST_UNSET ? Destination.DEST_EXPLICIT : dest); in getSettingProtos()
119 settings.putAll(getSettingProtos((Message) o)); in getSettingProtos()
[all …]
DAlarmManagerIncidentTest.java53 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/
DWebChromeClientTest.java162 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 …]
DWebViewZoomTest.java136 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/
DEqualizerTest.java160 Equalizer.Settings settings = mEqualizer.getProperties(); in test1_3Properties() local
161 assertTrue("no enough bands", settings.numBands >= MIN_NUMBER_OF_BANDS); in test1_3Properties()
163 if (settings.bandLevels[0] == 0) { in test1_3Properties()
166 String str = settings.toString(); in test1_3Properties()
167 settings = new Equalizer.Settings(str); in test1_3Properties()
168 settings.curPreset = (short)-1; in test1_3Properties()
169 settings.bandLevels[0] = newLevel; in test1_3Properties()
170 mEqualizer.setProperties(settings); in test1_3Properties()
171 settings = mEqualizer.getProperties(); in test1_3Properties()
173 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties()
[all …]
DBassBoostTest.java117 BassBoost.Settings settings = mBassBoost.getProperties(); in test1_1Properties() local
118 String str = settings.toString(); in test1_1Properties()
119 settings = new BassBoost.Settings(str); in test1_1Properties()
121 short strength = settings.strength; in test1_1Properties()
125 settings.strength = strength; in test1_1Properties()
126 mBassBoost.setProperties(settings); in test1_1Properties()
127 settings = mBassBoost.getProperties(); in test1_1Properties()
132 ((float)settings.strength > (float)strength / STRENGTH_TOLERANCE) && in test1_1Properties()
133 ((float)settings.strength < (float)strength * STRENGTH_TOLERANCE)); in test1_1Properties()
DPresetReverbTest.java108 PresetReverb.Settings settings = mReverb.getProperties(); in test1_1Properties() local
109 String str = settings.toString(); in test1_1Properties()
110 settings = new PresetReverb.Settings(str); in test1_1Properties()
111 short preset = (settings.preset == PresetReverb.PRESET_SMALLROOM) ? in test1_1Properties()
113 settings.preset = preset; in test1_1Properties()
114 mReverb.setProperties(settings); in test1_1Properties()
115 settings = mReverb.getProperties(); in test1_1Properties()
116 assertEquals("setProperties failed", settings.preset, preset); in test1_1Properties()
DEnvReverbTest.java265 EnvironmentalReverb.Settings settings = mReverb.getProperties(); in test1_5Properties() local
266 String str = settings.toString(); in test1_5Properties()
267 settings = new EnvironmentalReverb.Settings(str); in test1_5Properties()
268 short level = (short)((settings.roomLevel == 0) ? -1000 : 0); in test1_5Properties()
269 settings.roomLevel = level; in test1_5Properties()
270 mReverb.setProperties(settings); in test1_5Properties()
271 settings = mReverb.getProperties(); in test1_5Properties()
273 (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) && in test1_5Properties()
274 (settings.roomLevel <= (level + MILLIBEL_TOLERANCE))); in test1_5Properties()
DVirtualizerTest.java124 Virtualizer.Settings settings = mVirtualizer.getProperties(); in test1_1Properties() local
125 String str = settings.toString(); in test1_1Properties()
126 settings = new Virtualizer.Settings(str); in test1_1Properties()
128 short strength = settings.strength; in test1_1Properties()
132 settings.strength = strength; in test1_1Properties()
133 mVirtualizer.setProperties(settings); in test1_1Properties()
134 settings = mVirtualizer.getProperties(); in test1_1Properties()
139 ((float)settings.strength > (float)strength / STRENGTH_TOLERANCE) && in test1_1Properties()
140 ((float)settings.strength < (float)strength * STRENGTH_TOLERANCE)); in test1_1Properties()
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DAppStandbyTests.java109 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/tests/tests/telephony/current/src/android/telephony/cts/
DVisualVoicemailServiceTest.java212 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/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_post_raw_sensitivity_boost.py72 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]
Dtest_raw_burst_sensitivity.py55 settings = []
60 settings.append((s, e))
78 (s, e) = settings[i]
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/
DMediaBitstreamsDeviceSideTest.java220 SharedPreferences settings = ctx.getSharedPreferences(MediaBitstreams.K_MODULE, 0); in getSettings() local
221 return settings; in getSettings()
228 SharedPreferences settings = getSettings(); in setup() local
229 int n = settings.getInt(lastCrash, 0); in setup()
230 Editor editor = settings.edit(); in setup()
288 SharedPreferences settings = getSettings(); in verifyBitstream() local
292 if (settings.getInt(lastCrash, 0) >= 3) { in verifyBitstream()
309 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;
/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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java476 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()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2356 SceneModeSettings[] settings = new SceneModeSettings[supportedSceneModes.size()]; in testSceneModeByCamera() local
2361 settings[i] = new SceneModeSettings(parameters); in testSceneModeByCamera()
2379 settings[i].mFlash, parameters.getFlashMode()); in testSceneModeByCamera()
2381 settings[i].mFocus, parameters.getFocusMode()); in testSceneModeByCamera()
2383 settings[i].mWhiteBalance, parameters.getWhiteBalance()); in testSceneModeByCamera()
2386 settings[i].mSupportedFlash, parameters.getSupportedFlashModes()); in testSceneModeByCamera()
2388 settings[i].mSupportedFocus, parameters.getSupportedFocusModes()); in testSceneModeByCamera()
2390 settings[i].mSupportedWhiteBalance, parameters.getSupportedWhiteBalance()); in testSceneModeByCamera()
2393 for (int i = 0; i < settings.length; i++) { in testSceneModeByCamera()
2394 if (Parameters.SCENE_MODE_AUTO.equals(settings[i].mScene)) continue; in testSceneModeByCamera()
[all …]

12