/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/ |
H A D | ArraySetTest.kt | 27 val set = arraySetOf<String>() 32 val set = arraySetOf("foo", "bar", "baz")
|
H A D | LocaleTest.kt | 26 val ltrLocale = Locale.Builder().setLanguage("en").build() 31 val rtlLocale = Locale.Builder().setLanguage("ar").build()
|
H A D | SizeTest.kt | 28 val (w, h) = Size(320, 240) 34 val (w, h) = SizeF(1920.0f, 1080.0f)
|
/frameworks/support/core/ktx/src/main/java/androidx/core/os/ |
H A D | Handler.kt | 38 val runnable = Runnable { action() } 65 val runnable = Runnable { action() }
|
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/proguard/ |
H A D | ProGuardTypesMap.kt | 24 data class ProGuardTypesMap(private val rules: Map<ProGuardType, Set<ProGuardType>>) { 27 const val TAG = "ProGuardTypesMap" 29 val EMPTY = ProGuardTypesMap(emptyMap()) 32 private val expandedRules: Map<ProGuardType, Set<ProGuardType>> by lazy { 33 val expandedMap = mutableMapOf<ProGuardType, Set<ProGuardType>>() 61 data class JsonData(val rules: Map<String, List<String>>) { 76 val reversed = mutableMapOf<ProGuardType, ProGuardType>() 83 val conflictFrom = reversed[to.single()]
|
/frameworks/support/paging/common/src/test/java/androidx/paging/ |
H A D | AsyncListDataSource.kt | 21 private val workItems: MutableList<() -> Unit> = ArrayList() 22 private val listDataSource = ListDataSource(list)
|
/frameworks/support/paging/runtime/src/androidTest/java/androidx/paging/ |
H A D | TestExecutor.kt | 23 private val mTasks = LinkedList<Runnable>() 30 val consumed = !mTasks.isEmpty()
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/ |
H A D | OnConflictProcessor.kt | 27 val INVALID_ON_CONFLICT = -1 35 val onConflictValue = AnnotationMirrors
|
H A D | TransactionMethodProcessor.kt | 30 val containing: DeclaredType, 31 val executableElement: ExecutableElement) { 33 val context = baseContext.fork(executableElement) 36 val kotlinDefaultImpl = 43 val callType = when {
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/ |
H A D | EntityInsertionAdapterWriter.kt | 34 class EntityInsertionAdapterWriter(val entity: Entity, val onConflict: String) { 44 val primitiveAutoGenerateField = if (entity.primaryKey.autoGenerateId) { 61 val query = 76 val bindScope = CodeGenScope(classWriter) 78 val stmtParam = "stmt" 81 val valueParam = "value" 85 val mapped = FieldWithIndex.byOrder(entity.fields)
|
H A D | DatabaseWriter.kt | 45 class DatabaseWriter(val database: Database) : ClassWriter(database.implTypeName) { 47 val builder = TypeSpec.classBuilder(database.implTypeName) 60 val scope = CodeGenScope(this) 63 val dbVar = scope.getTmpVar("_db") 66 val deferVar = scope.getTmpVar("_supportsDeferForeignKeys") 116 val tableNames = database.entities.joinToString(",") { 124 val scope = CodeGenScope(this) 127 val name = method.dao.typeName.simpleName().decapitalize().stripNonJava() 128 val fieldName = scope.getTmpVar("_$name") 129 val fiel [all...] |
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/test/ |
H A D | LiveDataTestUtil.kt | 26 val data = arrayOfNulls<Any>(1) 27 val observer = object : Observer<T> {
|
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/vo/ |
H A D | BookAuthor.kt | 36 data class BookAuthor(val bookId: String, val authorId: String)
|
/frameworks/base/tools/aapt2/optimize/ |
H A D | VersionCollapser.cpp | 86 auto pred = [&](const std::unique_ptr<ResourceConfigValue>& val) -> bool { 88 if (!val) { 93 config_without_sdk.sdkVersion = val->config.sdkVersion; 94 return config_without_sdk == val->config && 95 val->config.sdkVersion <= min_sdk; 110 [](const std::unique_ptr<ResourceConfigValue>& val) 111 -> bool { return val == nullptr; }),
|
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/ |
H A D | DiffAndDocs.kt | 64 data class DacOptions(val libraryroot: String, val dataname: String) 71 private val docsTasks: MutableMap<String, GenerateDocsTask> = mutableMapOf() 83 val doclavaConfiguration = root.configurations.getByName("doclava") 84 val generateSdkApiTask = createGenerateSdkApiTask(root, doclavaConfiguration) 86 val task = createGenerateDocsTask( 108 val configName = "docs-temp_$mavenId" 109 val configuration = root.configurations.create(configName) 112 val artifacts = try { 121 val artifac [all...] |
H A D | MavenUploadHelper.kt | 44 val uploadTask = project.tasks.getByName("uploadArchives") as Upload 46 val repo = project.uri(project.rootProject.property("supportRepoOut") as File) 100 val allDeps = HashSet<ProjectDependency>() 111 val getGroupIdMethod = 113 val groupId: String = getGroupIdMethod.invoke(dep) as String 114 val getArtifactIdMethod = 116 val artifactId: String = getArtifactIdMethod.invoke(dep) as String 119 val setTypeMethod = dep::class.java.getDeclaredMethod("setType", 144 val config = project.configurations.findByName(name) 165 private const val ANDROID_GIT_UR [all...] |
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/ |
H A D | DiffAndDocs.kt | 64 data class DacOptions(val libraryroot: String, val dataname: String) 71 private val docsTasks: MutableMap<String, GenerateDocsTask> = mutableMapOf() 83 val doclavaConfiguration = root.configurations.getByName("doclava") 84 val generateSdkApiTask = createGenerateSdkApiTask(root, doclavaConfiguration) 86 val task = createGenerateDocsTask( 108 val configName = "docs-temp_$mavenId" 109 val configuration = root.configurations.create(configName) 112 val artifacts = try { 121 val artifac [all...] |
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/ |
H A D | BasicColumnTypeAdaptersTest.kt | 40 class BasicColumnTypeAdaptersTest(val input: Input, val bindCode: String, 41 val cursorCode: String) { 42 val scope = testCodeGenScope() 45 val SQLITE_STMT: TypeName = ClassName.get("android.database.sqlite", "SQLiteStatement") 46 val CURSOR: TypeName = ClassName.get("android.database", "Cursor") 89 val adapter = TypeAdapterStore.create(Context(invocation.processingEnv)) 103 val adapter = TypeAdapterStore.create(Context(invocation.processingEnv)) 121 val typeMirror = if (boxed) input.getBoxedTypeMirror(invocation.processingEnv) 123 val spe [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryablePrimitive.java | 77 final int val = (Integer) value; 78 marshalPrimitive(val, buffer); 81 final float val = (Float) value; 82 marshalPrimitive(val, buffer); 85 final long val = (Long) value; 86 marshalPrimitive(val, buffer); 92 final double val = (Double) value; 93 marshalPrimitive(val, buffer); 96 final byte val = (Byte) value; 97 marshalPrimitive(val, buffe [all...] |
/frameworks/base/tools/aapt/ |
H A D | ZipEntry.h | 111 void setMarked(bool val) { mMarked = val; } argument 123 static inline void putShortLE(unsigned char* buf, short val) { argument 124 buf[0] = (unsigned char) val; 125 buf[1] = (unsigned char) (val >> 8); 127 static inline void putLongLE(unsigned char* buf, long val) { argument 128 buf[0] = (unsigned char) val; 129 buf[1] = (unsigned char) (val >> 8); 130 buf[2] = (unsigned char) (val >> 16); 131 buf[3] = (unsigned char) (val >> 2 [all...] |
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/ |
H A D | Processor.kt | 43 private val context: TransformationContext, 44 private val transformers: List<Transformer> 48 private const val TAG = "Processor" 91 val versionsMap = DependencyVersions 115 val context = TransformationContext( 121 val transformers = if (rewritingSupportLib) { 131 private val oldDependenciesRegex: List<Regex> = context.config.pomRewriteRules.map { 139 private val newDependenciesRegex: List<Regex> = context.config.pomRewriteRules.map { 163 val inputLibraries = input.map { it.from }.toSet() 169 val librarie [all...] |
/frameworks/support/navigation/fragment/ktx/src/androidTest/java/androidx/navigation/fragment/ |
H A D | FragmentTest.kt | 32 @get:Rule val activityRule = ActivityTestRule<TestActivity>(TestActivity::class.java) 33 private val fragmentManager get() = activityRule.activity.supportFragmentManager 34 private val contentFragment get() = fragmentManager.findFragmentById(android.R.id.content) 38 val navHostFragment = NavHostFragment.create(R.navigation.test_graph) 43 val foundNavController = contentFragment.findNavController()
|
/frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/ |
H A D | InvalidXmlTest.kt | 30 class InvalidXmlTest(private val testCase: ErrorMessage) { 48 val context = Context() 49 val navigationXml = testData("invalid_xmls/${testCase.path}") 50 val expectedError = testCase.copy(path = navigationXml.path) 52 val messages = context.logger.allMessages()
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/query/result/ |
H A D | FlowableQueryResultBinder.kt | 37 class FlowableQueryResultBinder(val typeArg: TypeMirror, val queryTableNames: Set<String>, 45 val callableImpl = TypeSpec.anonymousClassBuilder("").apply { 46 val typeName = typeArg.typeName() 65 val tableNamesList = queryTableNames.joinToString(",") { "\"$it\"" }
|
/frameworks/base/libs/androidfw/include/androidfw/ |
H A D | ObbFile.h | 110 static inline void put4LE(unsigned char* buf, uint32_t val) { argument 111 buf[0] = val & 0xFF; 112 buf[1] = (val >> 8) & 0xFF; 113 buf[2] = (val >> 16) & 0xFF; 114 buf[3] = (val >> 24) & 0xFF;
|