Lines Matching refs:sdkVersion
43 sdkVersion() sdkSpec methodSpec
106 type sdkVersion int type
110 sdkVersionCurrent sdkVersion = sdkVersion(android.FutureApiLevel)
113 sdkVersionNone sdkVersion = sdkVersion(0)
117 func (v sdkVersion) isCurrent() bool {
122 func (v sdkVersion) isNumbered() bool {
127 func (v sdkVersion) String() string {
140 func (v sdkVersion) asNumberString() string {
147 version sdkVersion
205 version := sdkVersion(LatestSdkVersionInt(ctx))
232 func (s sdkSpec) effectiveVersion(ctx android.EarlyModuleContext) (sdkVersion, error) {
242 return sdkVersion(ctx.Config().DefaultAppTargetSdkInt()), nil
311 var version sdkVersion
315 version = sdkVersion(i)
347 sdkVersion := sdkContext.sdkVersion()
348 if !sdkVersion.valid() {
349 ctx.PropertyErrorf("sdk_version", "invalid version %q", sdkVersion.raw)
354 sdkVersion = sdkVersion.forPdkBuild(ctx)
356 if !sdkVersion.validateSystemSdk(ctx) {
360 if sdkVersion.usePrebuilt(ctx) {
361 dir := filepath.Join("prebuilts", "sdk", sdkVersion.version.String(), sdkVersion.kind.String())
365 public_dir := filepath.Join("prebuilts", "sdk", sdkVersion.version.String(), "public")
374 …bootclasspath: []string{fmt.Sprintf("sdk_%s_%s_android", sdkVersion.kind, sdkVersion.version.Stri…
379 …ctx.PropertyErrorf("sdk_version", "invalid sdk version %q, %q does not exist", sdkVersion.raw, jar)
384 …ctx.PropertyErrorf("sdk_version", "invalid sdk version %q, %q does not exist", sdkVersion.raw, aid…
389 if sdkVersion.defaultJavaLanguageVersion(ctx).usesJavaModules() {
390 systemModules = "sdk_public_" + sdkVersion.version.String() + "_system_modules"
412 switch sdkVersion.kind {
465 panic(fmt.Errorf("invalid sdk %q", sdkVersion.raw))