|
void | onCreate (Bundle savedInstanceState) |
|
Definition at line 12 of file SkQPActivity.java.
◆ onCreate()
void org.skia.skqp.SkQPActivity.onCreate |
( |
Bundle |
savedInstanceState | ) |
|
|
inlineprotected |
Definition at line 14 of file SkQPActivity.java.
14 {
15 super.onCreate(savedInstanceState);
16 setContentView(
R.layout.activity_skqp);
17 Toolbar toolbar = (Toolbar) findViewById(
R.id.toolbar);
18 setSupportActionBar(toolbar);
19
20
22 }
◆ run()
void org.skia.skqp.SkQPActivity.run |
( |
| ) |
|
|
inline |
Definition at line 25 of file SkQPActivity.java.
25 {
26
27
28
29
30 Context context = getApplicationContext();
31 String outputDirPath = "/sdcard/Android/data/" + context.getPackageName();
33
34 Log.i(
SkQP.LOG_PREFIX,
"Output Dir: " + outputDirPath);
35 File outputDir = new File(outputDirPath);
36 try {
37 SkQPActivity.ensureEmptyDirectory(outputDir);
38 }
catch (IOException
e) {
39 Log.e(
SkQP.LOG_PREFIX,
"ensureEmptyDirectory:" +
e.getMessage());
40 }
41
42
43 AssetManager assetManager = context.getResources().getAssets();
44 impl.nInit(assetManager, outputDirPath);
45
46 for (int unitTest = 0; unitTest < impl.mUnitTests.length; unitTest++) {
47 String
testName = SkQP.kSkiaUnitTests +
"_" + impl.mUnitTests[unitTest];
49 String[]
errors = impl.nExecuteUnitTest(unitTest);
53 }
54 } else {
55 Log.i(
SkQP.LOG_PREFIX,
"Test: " +
testName +
" finished successfully.");
56 }
57 }
58 Log.i(
SkQP.LOG_PREFIX,
"Finished running all tests.");
59 impl.nMakeReport();
60
61 finish();
62 }
const uint8_t uint32_t uint32_t GError ** error
void Log(const char *format,...) SK_PRINTF_LIKE(1
The documentation for this class was generated from the following file:
- third_party/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/SkQPActivity.java