/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/ |
H A D | Version.kt | 27 val major: Int, 28 val minor: Int, 29 val patch: Int, 30 val extra: String? = null 61 private val VERSION_FILE_REGEX = Pattern.compile("^(\\d+\\.\\d+\\.\\d+).txt$") 62 private val VERSION_REGEX = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(-.+)?$") 65 val matcher = VERSION_REGEX.matcher(versionString) 77 val matcher = VERSION_FILE_REGEX.matcher(file.name) 85 val matcher = VERSION_REGEX.matcher(versionString)
|
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/ |
H A D | Version.kt | 27 val major: Int, 28 val minor: Int, 29 val patch: Int, 30 val extra: String? = null 61 private val VERSION_FILE_REGEX = Pattern.compile("^(\\d+\\.\\d+\\.\\d+).txt$") 62 private val VERSION_REGEX = Pattern.compile("^(\\d+)\\.(\\d+)\\.(\\d+)(-.+)?$") 65 val matcher = VERSION_REGEX.matcher(versionString) 77 val matcher = VERSION_FILE_REGEX.matcher(file.name) 85 val matcher = VERSION_REGEX.matcher(versionString)
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/res/ |
H A D | TypedArrayTest.kt | 31 private val context = InstrumentationRegistry.getContext() 34 val attrs = context.getAttributeSet(R.layout.typed_array) 35 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes) 45 val attrs = context.getAttributeSet(R.layout.typed_array) 46 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes) 56 val attrs = context.getAttributeSet(R.layout.typed_array) 57 val array = context.obtainStyledAttributes(attrs, R.styleable.TypedArrayTypes) 58 val stateList = array.getColorStateListOrThrow(R.styleable.TypedArrayTypes_color_present) 68 val attrs = context.getAttributeSet(R.layout.typed_array) 69 val arra [all...] |
/frameworks/support/navigation/safe-args-gradle-plugin/src/main/kotlin/androidx/navigation/safeargs/gradle/ |
H A D | SafeArgsPlugin.kt | 27 private const val PLUGIN_DIRNAME = "navigation-args" 28 internal const val GENERATED_PATH = "generated/source/$PLUGIN_DIRNAME" 29 internal const val INTERMEDIATES_PATH = "intermediates/$PLUGIN_DIRNAME" 35 val appExtension = project.extensions.findByType(AppExtension::class.java) 38 val task = project.tasks.create("generateSafeArgs${variant.name.capitalize()}", 65 val mainSourceSet = sourceSets.find { it.name == "main" } 66 val sourceSet = mainSourceSet ?: sourceSets[0] 67 val manifest = sourceSet.manifestFile 68 val parsed = XmlSlurper(false, false).parse(manifest)
|
/frameworks/support/collection/ktx/src/test/java/androidx/collection/ |
H A D | LongSparseArrayTest.kt | 29 val array = LongSparseArray<String>() 36 val array = LongSparseArray<String>() 43 val array = LongSparseArray<String>() 53 val array = LongSparseArray<String>() 59 val first = LongSparseArray<String>().apply { put(1L, "one") } 60 val second = LongSparseArray<String>().apply { put(2L, "two") } 61 val combined = first + second 70 val array = LongSparseArray<String>() 77 val array = LongSparseArray<String>() 87 val arra [all...] |
H A D | SparseArrayTest.kt | 29 val array = SparseArrayCompat<String>() 36 val array = SparseArrayCompat<String>() 43 val array = SparseArrayCompat<String>() 53 val array = SparseArrayCompat<String>() 59 val first = SparseArrayCompat<String>().apply { put(1, "one") } 60 val second = SparseArrayCompat<String>().apply { put(2, "two") } 61 val combined = first + second 70 val array = SparseArrayCompat<String>() 77 val array = SparseArrayCompat<String>() 84 val arra [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/ |
H A D | SparseArrayTest.kt | 30 val array = SparseArray<String>() 37 val array = SparseArray<String>() 44 val array = SparseArray<String>() 54 val array = SparseArray<String>() 60 val first = SparseArray<String>().apply { put(1, "one") } 61 val second = SparseArray<String>().apply { put(2, "two") } 62 val combined = first + second 71 val array = SparseArray<String>() 78 val array = SparseArray<String>() 85 val arra [all...] |
H A D | RangeTest.kt | 27 val range: Range<String> = "a" rangeTo "c" 33 val range = ("a" rangeTo "c") + "e" 39 val range = ("a" rangeTo "c") + ("e" rangeTo "g") 45 val range = ("a" rangeTo "e") and ("c" rangeTo "g") 51 val range: Range<Int> = (1..3).toRange() 57 val range: ClosedRange<String> = Range<String>("a", "c").toClosedRange()
|
H A D | SparseBooleanArrayTest.kt | 29 val array = SparseBooleanArray() 36 val array = SparseBooleanArray() 43 val array = SparseBooleanArray() 53 val array = SparseBooleanArray() 59 val first = SparseBooleanArray().apply { put(1, true) } 60 val second = SparseBooleanArray().apply { put(2, false) } 61 val combined = first + second 70 val array = SparseBooleanArray() 77 val array = SparseBooleanArray() 87 val arra [all...] |
H A D | SparseIntArrayTest.kt | 29 val array = SparseIntArray() 36 val array = SparseIntArray() 43 val array = SparseIntArray() 53 val array = SparseIntArray() 59 val first = SparseIntArray().apply { put(1, 11) } 60 val second = SparseIntArray().apply { put(2, 22) } 61 val combined = first + second 70 val array = SparseIntArray() 77 val array = SparseIntArray() 87 val arra [all...] |
H A D | SparseLongArrayTest.kt | 31 val array = SparseLongArray() 38 val array = SparseLongArray() 45 val array = SparseLongArray() 55 val array = SparseLongArray() 61 val first = SparseLongArray().apply { put(1, 11L) } 62 val second = SparseLongArray().apply { put(2, 22L) } 63 val combined = first + second 72 val array = SparseLongArray() 79 val array = SparseLongArray() 89 val arra [all...] |
/frameworks/support/jetifier/jetifier/standalone/src/main/kotlin/com/android/tools/build/jetifier/standalone/ |
H A D | Main.kt | 35 const val TAG = "Main" 36 const val TOOL_NAME = "Jetifier (standalone)" 38 val OPTIONS = Options() 39 val OPTION_INPUT = createOption( 45 val OPTION_OUTPUT = createOption( 51 val OPTION_CONFIG = createOption( 57 val OPTION_LOG_LEVEL = createOption( 63 val OPTION_REVERSED = createOption( 70 val OPTION_STRICT = createOption( 77 val OPTION_REBUILD_TOP_OF_TRE [all...] |
/frameworks/layoutlib/bridge/src/android/util/ |
H A D | PathParser_Delegate.java | 183 float[] val = getFloats(s); 184 addNode(list, s.charAt(0), val); 373 @NonNull float[] val) { 374 list.add(new PathDataNode(cmd, val)); 447 char previousCmd, char cmd, @NonNull float[] val) { 502 for (int k = 0; k < val.length; k += incr) { 505 currentX += val[k + 0]; 506 currentY += val[k + 1]; 512 path.rLineTo(val[k + 0], val[ 372 addNode(@onNull ArrayList<PathDataNode> list, char cmd, @NonNull float[] val) argument 446 addCommand(@onNull Path_Delegate path, float[] current, char previousCmd, char cmd, @NonNull float[] val) argument [all...] |
/frameworks/support/jetifier/jetifier/preprocessor/src/main/kotlin/com/android/tools/build/jetifier/preprocessor/ |
H A D | Main.kt | 33 const val TAG = "Main" 34 const val TOOL_NAME = "preprocessor" 36 val OPTIONS = Options() 37 val OPTION_INPUT_LIBS = createOption("i", "Input libraries paths", multiple = true) 38 val OPTION_INPUT_CONFIG = createOption("c", "Input config path") 39 val OPTION_OUTPUT_CONFIG = createOption("o", "Output config path") 40 val OPTION_LOG_LEVEL = createOption("l", "Logging level. debug, verbose, default", 49 val op = Option(argName, true, desc) 60 val cmd = parseCmdLine(args) 68 val inputLibrarie [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/ |
H A D | ShortcutParameterProcessor.kt | 35 val containing: DeclaredType, 36 val element: VariableElement) { 37 val context = baseContext.fork(element) 39 val asMember = MoreTypes.asMemberOf(context.processingEnv.typeUtils, containing, element) 40 val name = element.simpleName.toString() 44 val (entityType, isMultiple) = extractEntityType(asMember) 59 val elementUtils = context.processingEnv.elementUtils 60 val typeUtils = context.processingEnv.typeUtils 65 val boundedVar = entityType.extendsBound() 70 val entityElemen [all...] |
H A D | FieldProcessor.kt | 33 class FieldProcessor(baseContext: Context, val containing: DeclaredType, val element: Element, 34 val bindingScope: BindingScope, 36 val fieldParent: EmbeddedField?) { 37 val context = baseContext.fork(element) 39 val member = context.processingEnv.typeUtils.asMemberOf(containing, element) 40 val type = TypeName.get(member) 41 val columnInfoAnnotation = MoreElements.getAnnotationMirror(element, 43 val name = element.simpleName.toString() 44 val columnNam [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/ |
H A D | Field.kt | 30 data class Field(val element: Element, val name: String, val type: TypeMirror, 32 val collate: Collate? = null, 33 val columnName: String = name, 36 val parent: EmbeddedField? = null, 45 val typeName: TypeName by lazy { type.typeName() } 48 val nonNull = element.isNonNull() && (parent == null || parent.isNonNullRecursively()) 66 private val pathWithDotNotation: String by lazy { 79 val nameWithVariation [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/ |
H A D | RelationCollectorMethodWriter.kt | 38 class RelationCollectorMethodWriter(private val collector: RelationCollector) 43 val KEY_SET_VARIABLE = "__mapKeySet" 46 val relation = collector.relation 56 val scope = CodeGenScope(writer) 57 val relation = collector.relation 59 val param = ParameterSpec.builder(collector.mapTypeName, "_map") 62 val sqlQueryVar = scope.getTmpVar("_sql") 63 val keySetVar = KEY_SET_VARIABLE 65 val cursorVar = "_cursor" 66 val itemKeyIndexVa [all...] |
/frameworks/base/core/java/android/util/ |
H A D | BackupUtils.java | 46 public static void writeString(DataOutputStream out, String val) throws IOException { argument 47 if (val != null) { 49 out.writeUTF(val);
|
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/docs/ |
H A D | GenerateDocsTask.kt | 25 private data class Since(val path: String, val apiLevel: String) 26 private data class Artifact(val path: String, val artifact: String) 28 private val sinces = mutableListOf<Since>() 29 private val artifacts = mutableListOf<Artifact>()
|
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/docs/ |
H A D | GenerateDocsTask.kt | 25 private data class Since(val path: String, val apiLevel: String) 26 private data class Artifact(val path: String, val artifact: String) 28 private val sinces = mutableListOf<Since>() 29 private val artifacts = mutableListOf<Artifact>()
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/database/sqlite/ |
H A D | SQLiteDatabaseTest.kt | 28 private val context = InstrumentationRegistry.getContext() 29 private val openHelper = object : SQLiteOpenHelper(context, null, null, 1) { 37 private val db = openHelper.writableDatabase 40 val exception = RuntimeException() 48 val query = db.rawQuery("SELECT COUNT(*) FROM test", emptyArray()) 55 val result = db.transaction {
|
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/ |
H A D | PathTest.kt | 30 val p = Path() 55 val r1 = Path().apply { addRect(0.0f, 0.0f, 10.0f, 10.0f, Path.Direction.CW) } 56 val r2 = Path().apply { addRect(5.0f, 0.0f, 15.0f, 15.0f, Path.Direction.CW) } 58 val p = r1 + r2 59 val r = RectF() 67 val r1 = Path().apply { addRect(0.0f, 0.0f, 10.0f, 10.0f, Path.Direction.CW) } 68 val r2 = Path().apply { addRect(5.0f, 0.0f, 15.0f, 15.0f, Path.Direction.CW) } 70 val p = r1 and r2 71 val r = RectF() 79 val r [all...] |
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/rule/ |
H A D | RewriteRulesMap.kt | 24 class RewriteRulesMap(val rewriteRules: List<RewriteRule>) { 27 private const val TAG = "RewriteRulesMap" 29 val EMPTY = RewriteRulesMap(emptyList()) 34 val runtimeIgnoreRules = rewriteRules.filter { it.isRuntimeIgnoreRule() }.toSet() 45 val typeRewriteResult = rule.apply(type) 73 data class JsonData(val rules: Set<RewriteRule.JsonData>)
|
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/metainf/ |
H A D | MetaInfTransformer.kt | 31 private val context: TransformationContext 35 const val FROM_VERSION = "28.0.0-SNAPSHOT" 37 const val TO_VERSION = "1.0.0-SNAPSHOT" 39 const val META_INF_DIR = "meta-inf" 41 const val VERSION_FILE_SUFFIX = ".version" 51 val sb = StringBuilder(file.data.toString(StandardCharsets.UTF_8))
|