This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2020 Google LLC. | |
| # SPDX-License-Identifier: Apache-2.0 | |
| function talkback() { | |
| if [[ -z $1 ]]; then | |
| echo "Usage: $0 [on/off]" | |
| exit | |
| fi | |
| if [[ $1 == 'on' ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public void two_truths_and_a_lie() { | |
| assertThat(benjamin.lovesRoadTrips()).isTrue() | |
| assertThat(benjamin.lovesSkiing()).isTrue() | |
| assertThat(benjamin.lovesPizza()).isTrue() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| adb shell cmd package compile -m speed-profile -f <package name> | |
| adb shell am force-stop <package name> | |
| # Download record_android_trace following the instructions here: | |
| # https://perfetto.dev/docs/quickstart/android-tracing#recording-a-trace-through-the-cmdline | |
| ~/android-scripts/traces/record_android_trace -c /path/to/default_perfetto_config.textproto |
OlderNewer