Searched refs:val (Results 226 - 250 of 886) sorted by relevance

1234567891011>>

/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/type/
H A DTypesMap.kt30 data class TypesMap(private val types: Map<JavaType, JavaType>) {
33 private const val TAG = "TypesMap"
35 val EMPTY = TypesMap(emptyMap())
39 val containsNestedTypes = types.any { it.key.hasInnerType() || it.value.hasInnerType() }
57 val typesReversed = mutableMapOf<JavaType, JavaType>()
59 val conflictFrom = typesReversed[to]
78 val rootMapResult = types[type.getRootType()] ?: return null
85 val mergedMap = mutableMapOf<JavaType, JavaType>()
112 val pattern = Pattern.compile(selector)
114 val foundMatche
[all...]
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/archive/
H A DArchiveItem.kt34 val relativePath: Path
39 val fileName: String
46 val wasChanged: Boolean
/frameworks/support/lifecycle/viewmodel/ktx/src/test/java/androidx/lifecycle/
H A DViewModelProviderTest.kt32 val factory = object : ViewModelProvider.Factory {
35 val provider = ViewModelProvider(ViewModelStore(), factory)
37 val viewModel = provider.get<TestViewModel>()
/frameworks/support/navigation/runtime/ktx/src/androidTest/java/androidx/navigation/
H A DNavControllerTest.kt28 private val navController = NavController(InstrumentationRegistry.getTargetContext()).apply {
34 val graph = navController.createGraph(startDestination = DESTINATION_ID) {
42 private const val DESTINATION_ID = 1
/frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/
H A DNavArgumentResolverTest.kt48 val dest1Template = createTemplateDestination("first")
49 val dest2Template = createTemplateDestination("second")
50 val outerScopeAction = Action(id("toOuterScope"), id("outerScope"),
52 val dest1 = dest1Template.copy(actions = listOf(Action(id("action1"), dest2Template.id),
54 val dest2 = dest2Template.copy(actions = listOf(Action(id("action2"), dest1Template.id,
58 val topLevel = Destination(null, null, "test",
61 val resolveArguments = resolveArguments(topLevel)
64 val resolvedAction1 = Action(id("action1"), dest2Template.id, dest2.args)
68 val resolvedAction2 = Action(id("action2"), dest1Template.id, listOf(
78 val dest
[all...]
/frameworks/support/paging/common/src/test/java/androidx/paging/
H A DExecutors.kt24 private val mTasks = LinkedList<Runnable>()
31 val consumed = !mTasks.isEmpty()
42 class FailExecutor(val string: String = "Executor expected to be unused") : Executor {
H A DTiledPagedListTest.kt35 private val mMainThread = TestExecutor()
36 private val mBackgroundThread = TestExecutor()
39 val name: String = "Item $position"
47 val loadedPageList = loadedPages.asList()
74 val pagedList = createTiledPagedList(loadPosition = 0, initPageCount = 1)
84 val pagedList = createTiledPagedList(loadPosition = 0, initPageCount = 1)
90 val pagedList = createTiledPagedList(loadPosition = 10, initPageCount = 1)
96 val pagedList = createTiledPagedList(loadPosition = 0, initPageCount = 100)
102 val pagedList = createTiledPagedList(loadPosition = 44, initPageCount = 2)
108 val pagedLis
[all...]
H A DPagedStorageTest.kt38 val storage = PagedStorage(2, createPage("a", "b"), 2)
46 val callback = mock(PagedStorage.Callback::class.java)
48 val storage = PagedStorage(2, createPage("a", "b"), 2)
58 val callback = mock(PagedStorage.Callback::class.java)
60 val storage = PagedStorage(2, createPage("a", "b"), 0)
70 val callback = mock(PagedStorage.Callback::class.java)
72 val storage = PagedStorage(2, createPage("a", "b"), 2)
91 val callback = mock(PagedStorage.Callback::class.java)
93 val storage = PagedStorage(2, createPage("c", "d"), 2)
103 val callbac
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/types/
H A DColumnTypeAdapter.kt26 abstract class ColumnTypeAdapter(val out: TypeMirror, val typeAffinity: SQLTypeAffinity) :
28 val outTypeName: TypeName by lazy { TypeName.get(out) }
H A DCompositeTypeConverter.kt27 class CompositeTypeConverter(val conv1: TypeConverter, val conv2: TypeConverter) : TypeConverter(
31 val tmp = scope.getTmpVar()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DForeignKeyAction.kt24 enum class ForeignKeyAction(val annotationValue: Int, val sqlName: String) {
31 private val mapping by lazy {
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/vo/
H A DEntityTest.kt35 val child = createEntity("Child", listOf(
46 val noAction = createEntity("NoAction")
47 val noActionDeferred = createEntity("NoActionDeferred")
48 val restrict = createEntity("Restrict")
49 val restrictDeferred = createEntity("RestrictDeferred")
50 val setNull = createEntity("SetNull")
51 val setNullDeferred = createEntity("SetNullDeferred")
52 val setDefault = createEntity("SetDefault")
53 val setDefaultDeferred = createEntity("SetDefaultDeferred")
54 val cascad
[all...]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
H A DLayoutBinderWriter.kt59 private val scopeStack = arrayListOf<Scope>()
77 val usedFieldNames = hashMapOf<Scope, MutableSet<String>>();
82 internal val forceLocalize = hashSetOf<Expr>()
84 val localizedFlags = arrayListOf<FlagSet>()
88 val result = getUniqueName(name, Scope.FLAG, false)
118 val Expr.needsLocalField by lazyProp { expr : Expr ->
125 val BindingTarget.readableName by lazyProp { target: BindingTarget ->
141 val BindingTarget.fieldName : String by lazyProp { target : BindingTarget ->
142 val name : String
143 val isPubli
[all...]
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/resource/
H A DXmlResourcesTransformer.kt37 class XmlResourcesTransformer internal constructor(private val context: TransformationContext)
41 const val TAG = "XmlResourcesTransformer"
43 const val PATTERN_TYPE_GROUP = 1
57 private val patterns = listOf(
71 val charset = getCharset(file.data)
72 val sb = StringBuilder(file.data.toString(charset))
74 val changesDone = replaceWithPatterns(sb, patterns, file.relativePath.toString())
82 val xmlReader = XMLInputFactory.newInstance().createXMLStreamReader(it)
86 val result = Charset.forName(xmlReader.encoding)
108 val processedInpu
[all...]
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/
H A DTypeAdapterStoreTest.kt71 val store = TypeAdapterStore.create(Context(invocation.processingEnv))
72 val primitiveType = invocation.processingEnv.typeUtils.getPrimitiveType(TypeKind.INT)
73 val adapter = store.findColumnTypeAdapter(primitiveType, null)
81 val store = TypeAdapterStore.create(Context(invocation.processingEnv))
82 val boolean = invocation
87 val adapter = store.findColumnTypeAdapter(boolean, null)
90 val composite = adapter as CompositeAdapter
101 val store = TypeAdapterStore.create(Context(invocation.processingEnv))
102 val booleanType = invocation.processingEnv.typeUtils
104 val adapte
[all...]
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DFakeComposerUtils.cpp70 bool valuesMatch(::testing::AssertionResult& message, const T& ref, const T& val, argument
72 if (ref != val) {
73 message = message << "Expected " << name << ":" << ref << ", got:" << val << ".";
79 ::testing::AssertionResult rectsAreSame(const RenderState& ref, const RenderState& val) { argument
88 passes &= valuesMatch(message, ref.mDisplayFrame, val.mDisplayFrame, "display frame");
89 passes &= valuesMatch(message, ref.mPlaneAlpha, val.mPlaneAlpha, "alpha");
90 passes &= valuesMatch(message, ref.mSwapCount, val.mSwapCount, "swap count");
91 passes &= valuesMatch(message, ref.mSourceCrop, val.mSourceCrop, "source crop");
100 const std::vector<RenderState>& val) {
103 if (ref.size() != val
99 framesAreSame(const std::vector<RenderState>& ref, const std::vector<RenderState>& val) argument
[all...]
/frameworks/support/navigation/safe-args-gradle-plugin/src/main/kotlin/androidx/navigation/safeargs/gradle/
H A DArgumentsGenerationTask.kt31 private const val MAPPING_FILE = "file_mappings.json"
47 val output = generateSafeArgs(rFilePackage, applicationId, file, out)
56 val type = object : TypeToken<List<Mapping>>() {}.type
57 val mappingsFile = File(incrementalFolder, MAPPING_FILE)
72 val (mappings, errors) = generateArgs(navigationFiles, outputDir)
79 val oldMapping = readMappings()
80 val navFiles = changedInputs.filter { (_, status) -> status != FileStatus.REMOVED }.keys
81 val (newMapping, errors) = generateArgs(navFiles, outputDir)
82 val newJavaFiles = newMapping.flatMap { it.javaFiles }.toSet()
83 val (modifie
[all...]
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/
H A DViewGroupTest.kt34 private val context = InstrumentationRegistry.getContext()
35 private val viewGroup = LinearLayout(context)
38 val view1 = View(context)
40 val view2 = View(context)
56 val view1 = View(context)
61 val view2 = View(context)
69 val view1 = View(context)
74 val view2 = View(context)
81 val view1 = View(context)
83 val view
[all...]
/frameworks/support/navigation/safe-args-generator/src/main/kotlin/androidx/navigation/safe/args/generator/
H A DNavWriter.kt34 private const val NAVIGATION_PACKAGE = "androidx.navigation"
35 private val NAV_DIRECTION_CLASSNAME: ClassName = ClassName.get(NAVIGATION_PACKAGE, "NavDirections")
36 private val BUNDLE_CLASSNAME: ClassName = ClassName.get("android.os", "Bundle")
38 private class ClassWithArgsSpecs(val args: List<Argument>) {
72 val bundleName = "__outBundle"
98 val actionTypes = destination.actions.map { action ->
102 val getters = actionTypes
104 val constructor = actionType.methodSpecs.find(MethodSpec::isConstructor)!!
105 val params = constructor.parameters.joinToString(", ") { param -> param.name }
106 val actionTypeNam
[all...]
H A DNavSafeArgsGenerator.kt29 val context = Context()
30 val rawDestination = NavParser.parseNavigationFile(navigationXml, rFilePackage, applicationId,
32 val resolvedDestination = resolveArguments(rawDestination)
33 val javaFiles = mutableSetOf<JavaFile>()
45 val files = javaFiles.map { javaFile -> "${javaFile.packageName}.${javaFile.typeSpec.name}" }
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DAsyncListDifferTest.kt37 private val mTasks = LinkedList<Runnable>()
44 val consumed = !mTasks.isEmpty()
58 private val mMainThread = TestExecutor()
59 private val mBackgroundThread = TestExecutor()
72 val callback = mock(ListUpdateCallback::class.java)
73 val differ = createDiffer(callback, STRING_DIFF_CALLBACK)
80 val differ = createDiffer(IGNORE_CALLBACK, STRING_DIFF_CALLBACK)
86 val differ = createDiffer(IGNORE_CALLBACK, STRING_DIFF_CALLBACK)
93 val differ = createDiffer(IGNORE_CALLBACK, STRING_DIFF_CALLBACK)
100 val diffe
[all...]
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/preference/
H A DPreferenceGroupTest.kt40 val rule = ActivityTestRule(TestPreferenceActivity::class.java)
41 private val context = InstrumentationRegistry.getContext()
52 val key = "key"
53 val preference = Preference(context)
61 val preference = Preference(context)
75 val preference1 = Preference(context)
80 val preference2 = Preference(context)
87 val preference1 = Preference(context)
89 val preference2 = Preference(context)
105 val preferenc
[all...]
/frameworks/support/jetifier/jetifier/core/src/main/kotlin/com/android/tools/build/jetifier/core/
H A DTypeRewriter.kt26 class TypeRewriter(private val config: Config, private val useFallback: Boolean) {
29 private const val TAG = "TypeRewriter"
33 val result = config.typesMap.mapType(type)
48 val rulesResult = config.rulesMap.rewriteType(type)
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/
H A DProGuardTypesMapper.kt28 class ProGuardTypesMapper(private val context: TransformationContext) {
31 const val TAG = "ProGuardTypesMapper"
33 val INNER_SUFFIXES = listOf("$*", "$**")
36 private val config = context.config
43 val type = ProGuardType.fromDotNotation(typeToReplace)
48 val javaType = type.toJavaType()
50 val result = context.typeRewriter.rewriteType(javaType)
60 val result = config.proGuardMap.mapType(type)
72 val strippedType = ProGuardType.fromDotNotation(typeToReplace.removeSuffix(innerSuffix))
73 val strippedJavaTyp
[all...]
/frameworks/support/navigation/testing/ktx/src/androidTest/java/androidx/navigation/testing/
H A DTestNavigatorDestinationBuilderTest.kt33 private val provider = TestNavigatorProvider(InstrumentationRegistry.getTargetContext())
37 val graph = provider.navigation(startDestination = DESTINATION_ID) {
46 val graph = provider.navigation(startDestination = DESTINATION_ID) {
58 private const val DESTINATION_ID = 1
59 private const val LABEL = "Test"

Completed in 226 milliseconds

1234567891011>>