publicclass Main { publicstaticvoid main(String[] args) { // Test a flag in libcore/libcore.aconfig. if (!isVTrunkStableFlagEnabled()) { thrownew AssertionError( "The value of com.android.libcore.v_apis flag is expected to be true.");
}
// Test a flag in art/build/flags/art-flags.aconfig. if (!isArtTestFlagEnabled()) { thrownew AssertionError( "The value of com.android.art.flags.test flag is expected to be true.");
}
// TODO: Ramp the flag fully and assert the value.
isArtTestRwFlagEnabled();
}
privatestaticboolean isVTrunkStableFlagEnabled() { // The Flags class definition is expected to be in core-libart.jar. return com.android.libcore.Flags.vApis();
}
privatestaticboolean isArtTestFlagEnabled() { // The Flags class definition is expected to be in core-libart.jar. return com.android.art.flags.Flags.test();
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.