Home
last modified time | relevance | path

Searched refs:mShellCommandExecutor (Results 1 – 10 of 10) sorted by relevance

/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/
DTimeZoneDetectorShellHelper.java83 private final DeviceShellCommandExecutor mShellCommandExecutor; field in TimeZoneDetectorShellHelper
86 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in TimeZoneDetectorShellHelper()
91 return mShellCommandExecutor.executeToBoolean( in isAutoDetectionEnabled()
98 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in setAutoDetectionEnabled()
103 return mShellCommandExecutor.executeToBoolean( in isGeoDetectionEnabled()
110 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in setGeoDetectionEnabled()
115 return mShellCommandExecutor.executeToBoolean( in isGeoDetectionSupported()
121 return mShellCommandExecutor.executeToBoolean( in isTelephonyDetectionSupported()
131 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in setTimeZoneState()
139 String result = mShellCommandExecutor.executeToString(SETTINGS_CMD_PREFIX + cmd); in isAutoTimeZoneEnabledExplicitly()
[all …]
DLocationTimeZoneManagerShellHelper.java73 private final DeviceShellCommandExecutor mShellCommandExecutor; field in LocationTimeZoneManagerShellHelper
76 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in LocationTimeZoneManagerShellHelper()
93 String serviceList = mShellCommandExecutor.executeToString("cmd -l"); in isLocationTimeZoneManagerPresent()
108 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + SHELL_COMMAND_START); in start()
113 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + SHELL_COMMAND_STOP); in stop()
119 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in clearRecordedProviderStates()
128 return mShellCommandExecutor.executeToBytes(SHELL_CMD_PREFIX + cmd); in dumpState()
144 mShellCommandExecutor.executeToBytes(SHELL_CMD_PREFIX + cmd); in startWithTestProviders()
DNetworkTimeUpdateServiceShellHelper.java38 private final DeviceShellCommandExecutor mShellCommandExecutor; field in NetworkTimeUpdateServiceShellHelper
41 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in NetworkTimeUpdateServiceShellHelper()
57 String serviceList = mShellCommandExecutor.executeToString("cmd -l"); in isNetworkTimeUpdateServicePresent()
75 mShellCommandExecutor.executeToTrimmedString( in setServerConfigForTests()
82 mShellCommandExecutor.executeToTrimmedString( in resetServerConfigForTests()
88 return mShellCommandExecutor.executeToBoolean(SHELL_CMD_PREFIX + " force_refresh"); in forceRefresh()
DLocationShellHelper.java45 private final DeviceShellCommandExecutor mShellCommandExecutor; field in LocationShellHelper
48 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in LocationShellHelper()
53 return mShellCommandExecutor.executeToBoolean( in isLocationEnabledForCurrentUser()
60 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in setLocationEnabledForCurrentUser()
DTimeDetectorShellHelper.java192 private final DeviceShellCommandExecutor mShellCommandExecutor; field in TimeDetectorShellHelper
195 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in TimeDetectorShellHelper()
207 mShellCommandExecutor.executeToTrimmedString(SHELL_CMD_PREFIX + cmd); in setTimeState()
211 String output = mShellCommandExecutor.executeToTrimmedString( in getNetworkTime()
220 mShellCommandExecutor.executeToTrimmedString( in clearNetworkTime()
229 mShellCommandExecutor.executeToTrimmedString( in setSystemClockNetworkTime()
242 mShellCommandExecutor.executeToTrimmedString( in clearSystemClockNetworkTime()
DDeviceConfigShellHelper.java63 private final DeviceShellCommandExecutor mShellCommandExecutor; field in DeviceConfigShellHelper
66 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in DeviceConfigShellHelper()
76 return mShellCommandExecutor.executeToTrimmedString(cmd); in getSyncDisabled()
87 mShellCommandExecutor.executeToTrimmedString(cmd); in setSyncDisabled()
97 String output = mShellCommandExecutor.executeToTrimmedString(cmd); in list()
123 mShellCommandExecutor.executeToTrimmedString(cmd); in put()
129 mShellCommandExecutor.executeToTrimmedString(cmd); in delete()
DFakeTimeZoneProviderAppShellHelper.java96 private final DeviceShellCommandExecutor mShellCommandExecutor; field in FakeTimeZoneProviderAppShellHelper
99 mShellCommandExecutor = Objects.requireNonNull(shellCommandExecutor); in FakeTimeZoneProviderAppShellHelper()
251 mShellCommandExecutor.executeToTrimmedString(SHELL_COMMAND_PREFIX + cmd); in ping()
263 return mShellCommandExecutor.executeToTrimmedString(SHELL_COMMAND_PREFIX + cmd); in executeContentProviderCall()
/cts/tests/tests/os/src/android/os/cts/
DSystemClockNetworkTimeTest.java72 private DeviceShellCommandExecutor mShellCommandExecutor; field in SystemClockNetworkTimeTest
84 mShellCommandExecutor = new InstrumentationShellCommandExecutor( in setUp()
86 mTimeDetectorShellHelper = new TimeDetectorShellHelper(mShellCommandExecutor); in setUp()
87 mDeviceConfigShellHelper = new DeviceConfigShellHelper(mShellCommandExecutor); in setUp()
113 mShellCommandExecutor.executeToTrimmedString( in tearDown()
/cts/tests/tests/time/src/android/app/time/cts/
DNetworkTimeUpdateServiceSntpTest.java85 private DeviceShellCommandExecutor mShellCommandExecutor; field in NetworkTimeUpdateServiceSntpTest
96 mShellCommandExecutor = new InstrumentationShellCommandExecutor( in setUp()
99 new NetworkTimeUpdateServiceShellHelper(mShellCommandExecutor); in setUp()
105 mTimeDetectorShellHelper = new TimeDetectorShellHelper(mShellCommandExecutor); in setUp()
106 mDeviceConfigShellHelper = new DeviceConfigShellHelper(mShellCommandExecutor); in setUp()
139 mShellCommandExecutor.executeToTrimmedString( in tearDown()
/cts/tests/backup/src/android/backup/cts/
DAppLocalesBackupTest.java81 private DeviceShellCommandExecutor mShellCommandExecutor; field in AppLocalesBackupTest
90 mShellCommandExecutor = new InstrumentationShellCommandExecutor( in setUp()
93 mOriginalAutoTime = isAutoDetectionEnabled(mShellCommandExecutor); in setUp()
96 assertTrue(setAutoTimeEnabled(/*enabled*/ true, mShellCommandExecutor)); in setUp()
107 setAutoTimeEnabled(/*enabled*/ false, mShellCommandExecutor); in tearDown()
261 mShellCommandExecutor); in testRetentionPeriod_backupPassAfterRetentionPeriod_removesStagedData()
357 mShellCommandExecutor); in testRetentionPeriod_lazyRestoreAfterRetentionPeriod_removesStagedData()