/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | DisableAnimationsRule.kt | 19 import android.platform.uiautomator_helpers.DeviceHelpers.shell 28 shell("settings get global transition_animation_scale").toFloatOrNull() ?: 1f, 29 shell("settings get global window_animation_scale").toFloatOrNull() ?: 1f, 30 shell("settings get global animator_duration_scale").toFloatOrNull() ?: 1f, 33 shell("settings put global transition_animation_scale ${value.transitions}") 34 shell("settings put global window_animation_scale ${value.windows}") 35 shell("settings put global animator_duration_scale ${value.animators}")
|
D | SystemSettingRule.kt | 4 import android.platform.uiautomator_helpers.DeviceHelpers.shell 20 shell("settings delete system $settingName") in getSettingValueAsString() 22 shell("settings put system $settingName $value") in getSettingValueAsString()
|
D | ScreenRecordRule.kt | 24 import android.platform.uiautomator_helpers.DeviceHelpers.shell in <lambda>() 116 return "root".equals(shell("whoami").trim()) in <lambda>() 164 val killOutput = shell("kill -INT $screenRecordPid") in <lambda>() 180 shell("rm $outputFile") in <lambda>() 225 get() = shell("pidof screenrecord").split(" ").filter { it != "" } in <lambda>()
|
D | EnsureDeviceSettingsRule.kt | 4 import android.platform.uiautomator_helpers.DeviceHelpers.shell 24 val adbIdResult = uiDevice.shell("id -u").trim() in checkAdbRootEnabled()
|
D | NotesRoleManagerSecondaryUserRule.kt | 87 DeviceHelpers.shell( in starting()
|
/platform_testing/utils/shell-as/ |
D | Android.bp | 16 name: "shell-as", 24 ":shell-as-test-app-apk-cpp", 37 srcs: ["shell-code/*-arm.S"] 40 srcs: ["shell-code/*-arm64.S"] 43 srcs: ["shell-code/*-x86.S"] 46 srcs: ["shell-code/*-x86_64.S"] 52 // functionality. This can be used as a target for shell-as to emulate the 55 name: "shell-as-test-app", 56 manifest: ":shell-as-test-app-manifest", 59 certificate: ":shell-as-test-app-cert", [all …]
|
D | README.md | 1 # shell-as 3 shell-as is a utility that can be used to execute a binary in a less privileged 15 ```shell 16 shell-as \ 24 ```shell 25 shell-as --pid 1 /system/bin/id 31 ```shell 32 shell-as --profile untrusted-app /system/bin/id
|
D | OWNERS | 1 # Code owners for shell-as
|
/platform_testing/tests/bettertogether/quickstart/performance_test/ |
D | setup_utils.py | 62 ad.adb.shell('cmd wifi set-wifi-enabled disabled') 64 ad.adb.shell( 68 ad.adb.shell(f'cmd wifi force-country-code enabled {country_code}') 72 ad.adb.shell('cmd wifi set-wifi-enabled enabled') 74 ad.adb.shell('dumpsys wifi | grep mTelephonyCountryCode') 85 ad.adb.shell(f'setprop log.tag.{tag} VERBOSE') 104 ad.adb.shell( 166 ad.adb.shell( 176 ad.adb.shell(['settings', 'put', 'global', 'airplane_mode_on', '1']) 177 ad.adb.shell([ [all …]
|
D | gms_auto_updates_util.py | 83 self._device.adb.shell(
|
/platform_testing/tests/bettertogether/betocq/ |
D | setup_utils.py | 87 ad.adb.shell('cmd wifi set-wifi-enabled disabled') 89 ad.adb.shell( 93 ad.adb.shell(f'cmd wifi force-country-code enabled {country_code}') 97 ad.adb.shell('cmd wifi set-wifi-enabled enabled') 99 ad.adb.shell('dumpsys wifi | grep mTelephonyCountryCode') 110 ad.adb.shell(f'setprop log.tag.{tag} VERBOSE') 157 ad.adb.shell( 229 ad.adb.shell( 250 ad.adb.shell(['settings', 'put', 'global', 'airplane_mode_on', '1']) 251 ad.adb.shell([ [all …]
|
D | android_wifi_utils.py | 82 ad.adb.shell(cmd) 94 ad.adb.shell(['cmd', 'wifi', 'set-wifi-enabled', 'disabled']) 114 ad.adb.shell(['cmd', 'wifi', 'set-wifi-enabled', 'enabled']) 131 ad.adb.shell(['cmd', 'wifi', 'forget-network', saved_wifi.id]) 146 stdout = ad.adb.shell(['cmd', 'wifi', 'forget-network', saved_wifi.id]) 157 if match := _SSID_PATTERN.search(ad.adb.shell(['cmd', 'wifi', 'status'])): 164 return ad.adb.shell(['cmd', 'wifi', 'status']).startswith(b'Wifi is enabled') 170 stdout = ad.adb.shell(['cmd', 'wifi', 'list-networks']).decode() 188 return b'5 received' in ad.adb.shell(['ping', '-c', '5', '8.8.8.8'])
|
D | iperf_utils.py | 46 self.iperf_process = utils.start_standing_subprocess(cmd, shell=True) 212 return ad.adb.shell('ifconfig').decode('utf-8').strip() 219 ifconfig = ad.adb.shell('ifconfig | grep -A5 aware').decode('utf-8').strip() 229 return ad.adb.shell('ifconfig | grep -A5 wlan').decode('utf-8').strip() 236 return ad.adb.shell('ifconfig | grep -A5 p2p').decode('utf-8').strip() 254 ad.adb.shell(
|
D | gms_auto_updates_util.py | 83 self._device.adb.shell(
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/wm/ |
D | ShellTransitionTraceParser.kt | 24 import com.android.wm.shell.nano.Transition 25 import com.android.wm.shell.nano.WmShellTransitionTraceProto 46 override fun shouldParseEntry(entry: com.android.wm.shell.nano.Transition): Boolean { in doDecodeByteArray() 52 ): Collection<com.android.wm.shell.nano.Transition> = input.transitions.toList() in getEntries() 54 override fun getTimestamp(entry: com.android.wm.shell.nano.Transition): Timestamp { in getEntries() 93 entry: com.android.wm.shell.nano.Transition in doParseEntry() 133 private fun requireValidTimestamp(entry: com.android.wm.shell.nano.Transition) { in requireValidTimestamp()
|
D | WmTransitionTraceParser.kt | 26 import com.android.server.wm.shell.nano.Transition 27 import com.android.server.wm.shell.nano.TransitionTraceProto 45 override fun shouldParseEntry(entry: com.android.server.wm.shell.nano.Transition): Boolean { in doDecodeByteArray() 51 ): Collection<com.android.server.wm.shell.nano.Transition> = input.transitions.toList() in getEntries() 53 override fun getTimestamp(entry: com.android.server.wm.shell.nano.Transition): Timestamp { in getEntries() 88 entry: com.android.server.wm.shell.nano.Transition in doParseEntry() 143 private fun requireValidTimestamp(entry: com.android.server.wm.shell.nano.Transition) { in requireValidTimestamp()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | ProcessUtil.kt | 3 import android.platform.uiautomator_helpers.DeviceHelpers.shell in <lambda>() 17 val result = shell(killCmd) in <lambda>() 29 val pidofResult = shell("pidof $packageName").trim() in <lambda>()
|
/platform_testing/tests/automotive/mobly_tests/utilities/ |
D | video_utils_service.py | 24 self._device.adb.shell(ENABLE_SCREEN_RECORDING_COMMAND) 32 self._device.adb.shell(constants.STOP_VIDEO_RECORDING) 48 self._device.adb.shell(DELETE_SCREEN_RECORDING_COMMAND)
|
D | media_utils.py | 37 return self.target.adb.shell(shell_command) 46 return self.discoverer.adb.shell(shell_command)
|
/platform_testing/libraries/health/runners/longevity/ |
D | README.md | 35 `adb shell am instrument -w -r -e <option> <value> -e class <suite> 40 `adb shell am instrument -w -r -e iterations 50 -e quitter true 46 `adb shell am instrument -w -r -e iterations 10 -e shuffle true -e suite-timeout_msec 1800000 52 `adb shell am instrument -w -r -e iterations 100 -e min-battery 0.05 58 `adb shell am instrument -w -r -e profile sample_profile 81 `tests/` directory. Run them using `adb shell am instrument -w -r
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/ |
D | ScreenshotTestRuleTest.kt | 22 import android.platform.uiautomator_helpers.DeviceHelpers.shell 382 shell("settings get system ${System.POINTER_LOCATION}").trim().toIntOrNull() ?: 0 in goldenIdentifierResolver() 384 shell("settings put system ${System.POINTER_LOCATION} $value") in goldenIdentifierResolver() 388 get() = shell("settings get system ${System.SHOW_TOUCHES}").trim().toIntOrNull() ?: 0 in goldenIdentifierResolver() 390 shell("settings put system ${System.SHOW_TOUCHES} $value") in goldenIdentifierResolver()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | ScreenshotTestRule.kt | 25 import android.platform.uiautomator_helpers.DeviceHelpers.shell in <lambda>() 324 get() = shell("settings get system ${System.POINTER_LOCATION}").trim().toIntOrNull() ?: 0 326 shell("settings put system ${System.POINTER_LOCATION} $value") 330 get() = shell("settings get system ${System.SHOW_TOUCHES}").trim().toIntOrNull() ?: 0 332 shell("settings put system ${System.SHOW_TOUCHES} $value")
|
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/ |
D | DeviceHelpers.kt | 274 fun UiDevice.shell(command: String): String = DeviceHelpers.shell(command) in shell() method 286 fun shell(command: String): String { in shell() method
|
/platform_testing/libraries/notes-role-test-helper/src/android/platform/helpers/notesrole/ |
D | NotesRoleUtil.kt | 73 DeviceHelpers.shell("am force-stop $packageName") in forceStopPackage()
|
/platform_testing/libraries/flicker/collector/trace_config/ |
D | trace_config.textproto | 85 name: "com.android.wm.shell.transition"
|