Searched refs:val (Results 351 - 375 of 886) sorted by relevance

<<11121314151617181920>>

/frameworks/support/persistence/db/ktx/src/main/java/androidx/sqlite/db/
H A DSupportSQLiteDatabase.kt34 val result = body()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/
H A DObservableQueryResultBinderProvider.kt30 abstract class ObservableQueryResultBinderProvider(val context: Context)
38 val typeArg = extractTypeArg(declared)
39 val adapter = context.typeAdapterStore.findQueryResultAdapter(typeArg, query)
40 val tableNames = ((adapter?.accessedTableNames() ?: emptyList()) +
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/binderprovider/
H A DDataSourceQueryResultBinderProvider.kt30 class DataSourceQueryResultBinderProvider(val context: Context) : QueryResultBinderProvider {
31 private val dataSourceTypeMirror: TypeMirror? by lazy {
36 private val positionalDataSourceTypeMirror: TypeMirror? by lazy {
45 val typeArg = declared.typeArguments.last()
46 val listAdapter = context.typeAdapterStore.findRowAdapter(typeArg, query)?.let {
49 val tableNames = ((listAdapter?.accessedTableNames() ?: emptyList())
61 val erasure = context.processingEnv.typeUtils.erasure(declared)
62 val isDataSource = context.processingEnv.typeUtils
67 val isPositional = context.processingEnv.typeUtils
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/query/result/
H A DArrayQueryResultAdapter.kt27 val type = rowAdapter.out
32 val arrayType = ArrayTypeName.of(type.typeName())
35 val tmpVarName = scope.getTmpVar("_item")
36 val indexVar = scope.getTmpVar("_index")
H A DCursorQueryResultBinder.kt32 val builder = scope.builder()
33 val transactionWrapper = if (inTransaction) {
39 val resultName = scope.getTmpVar("_tmpResult")
48 private val NO_OP_RESULT_ADAPTER = object : QueryResultAdapter(null) {
H A DListQueryResultAdapter.kt28 val type = rowAdapter.out
32 val collectionType = ParameterizedTypeName
34 val arrayListType = ParameterizedTypeName
38 val tmpVarName = scope.getTmpVar("_item")
H A DPojoRowAdapter.kt42 context: Context, private val info: QueryResultInfo?,
43 val pojo: Pojo, out: TypeMirror) : RowAdapter(out) {
44 val mapping: Mapping
45 val relationCollectors: List<RelationCollector>
49 val remainingFields = pojo.fields.mapTo(mutableListOf(), { it })
50 val unusedColumns = arrayListOf<String>()
51 val matchedFields: List<Field>
56 val field = remainingFields.firstOrNull { it.columnName == column.name } ?:
67 val warningMsg = ProcessorErrors.cursorPojoMismatch(
76 val nonNull
[all...]
H A DPositionalDataSourceQueryResultBinder.kt35 val listAdapter: ListQueryResultAdapter?,
36 val tableNames: Set<String>) : QueryResultBinder(listAdapter) {
37 val itemTypeName: TypeName = listAdapter?.rowAdapter?.out?.typeName() ?: TypeName.OBJECT
38 val typeName: ParameterizedTypeName = ParameterizedTypeName.get(
48 val tableNamesList = tableNames.joinToString("") { ", \"$it\"" }
49 val spec = TypeSpec.anonymousClassBuilder("$N, $L, $L $L",
64 val cursorParam = ParameterSpec.builder(AndroidTypeNames.CURSOR, "cursor")
67 val resultVar = scope.getTmpVar("_res")
68 val rowsScope = scope.fork()
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DEntity.kt26 element: TypeElement, val tableName: String, type: DeclaredType,
28 val primaryKey: PrimaryKey, val indices: List<Index>,
29 val foreignKeys: List<ForeignKey>,
33 val createTableQuery by lazy {
39 val identityKey = SchemaIdentityKey()
49 val definitions = (fields.map {
50 val autoIncrement = primaryKey.autoGenerateId && primaryKey.fields.contains(it)
64 val keys = primaryKey.fields.joinToString(", ") { "`${it.columnName}`" }
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
H A DEntityUpdateAdapterWriter.kt34 class EntityUpdateAdapterWriter(val entity: Entity, val onConflict: String) {
45 val query = "UPDATE OR $onConflict `${entity.tableName}` SET " +
54 val bindScope = CodeGenScope(classWriter)
56 val stmtParam = "stmt"
59 val valueParam = "value"
63 val mappedField = FieldWithIndex.byOrder(entity.fields)
70 val pkeyStart = entity.fields.size
71 val mappedPrimaryKeys = entity.primaryKey.fields.mapIndexed { index, field ->
H A DPreparedStatementWriter.kt31 class PreparedStatementWriter(val queryWriter: QueryWriter) {
33 val scope = CodeGenScope(classWriter)
41 val queryName = scope.getTmpVar("_query")
42 val queryGenScope = scope.fork()
H A DQueryWriter.kt39 class QueryWriter constructor(val parameters: List<QueryParameter>,
40 val sectionToParamMapping: List<Pair<Section, QueryParameter?>>,
41 val query: ParsedQuery) {
48 val listSizeVars = createSqlQueryAndArgs(outSqlQueryName, outRoomSQLiteQueryVar, scope)
62 val listSizeVars = arrayListOf<Pair<QueryParameter, String>>()
63 val varargParams = parameters
65 val sectionToParamMapping = sectionToParamMapping
66 val knownQueryArgsCount = sectionToParamMapping.filterNot {
71 val stringBuilderVar = scope.getTmpVar("_stringBuilder")
85 val tmpCoun
[all...]
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/writer/
H A DSQLiteOpenHelperWriterTest.kt38 const val ENTITY_PREFIX = """
45 const val ENTITY_SUFFIX = "}"
46 const val DATABASE_CODE = """
66 val query = SQLiteOpenHelperWriter(database)
85 val query = SQLiteOpenHelperWriter(database)
104 val query = SQLiteOpenHelperWriter(database)
124 val query = SQLiteOpenHelperWriter(database)
135 val attributesReplacement: String
152 val db = MoreElements.asType(invocation.roundEnv
/frameworks/support/work/workmanager-ktx/src/androidTest/java/androidx/work/
H A DOneTimeWorkRequestTest.kt31 val builder = OneTimeWorkRequestBuilder<TestWorker>()
33 val request = builder.build()
41 val builder = OneTimeWorkRequestBuilder<TestWorker>()
42 val request = builder.build()
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp830 AString val(attr, equalPos + 1, attr.size() - equalPos - 1);
831 val.trim();
833 ALOGV("key=%s value=%s", key.c_str(), val.c_str());
836 const char *s = val.c_str();
850 if (!isQuotedString(val)) {
853 key.c_str(), val.c_str());;
859 const AString &codecs = unquoteString(val);
865 const char *s = val.c_str();
890 if (!isQuotedString(val)) {
893 key.c_str(), val
[all...]
/frameworks/support/room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/
H A DMigrationKotlinTest.kt45 val TEST_DB = "migration-test"
51 val helper = MigrationTestHelper(
65 val db = helper.createDatabase(TEST_DB,
67 val dao = MigrationDbKotlin.Dao_V1(db)
70 val migrationDb = getLatestDb()
71 val items = migrationDb.dao().loadAllEntity1s()
80 val dao = MigrationDbKotlin.Dao_V1(db)
88 val migrationDb = getLatestDb()
89 val entity1s = migrationDb.dao().loadAllEntity1s()
92 val entity
[all...]
/frameworks/support/paging/common/src/test/java/androidx/paging/
H A DPositionalDataSourceTest.kt36 val params = PositionalDataSource.LoadInitialParams(
89 val config = PagedList.Config.Builder()
94 val dataSource: PositionalDataSource<Int> = ListDataSource((0..99).toList())
95 val testExecutor = TestExecutor()
96 val pagedList = ContiguousPagedList(dataSource.wrapAsContiguousWithoutPlaceholders(),
119 val dataSource = object : PositionalDataSource<String>() {
135 val config = PagedList.Config.Builder()
157 val elevenLetterList = List(11) { "" + 'a' + it }
221 private abstract class WrapperDataSource<in A, B>(private val source: PositionalDataSource<A>)
271 val ori
[all...]
H A DPageKeyedDataSourceTest.kt31 private val mMainThread = TestExecutor()
32 private val mBackgroundThread = TestExecutor()
34 internal data class Item(val name: String)
36 internal data class Page(val prev: String?, val data: List<Item>, val next: String?)
38 internal class ItemDataSource(val data: Map<String, Page> = PAGE_MAP)
46 val page = getPage(INIT_KEY)
51 val page = getPage(params.key)
56 val pag
[all...]
/frameworks/support/jetifier/jetifier/gradle-plugin/src/main/kotlin/com/android/tools/build/jetifier/plugin/gradle/
H A DJetifyGlobalTask.kt61 const val TASK_NAME = "jetifyGlobal"
62 const val GROUP_ID = "Pre-build"
64 const val DESCRIPTION = "Rewrites input libraries to run with jetpack"
66 const val OUTPUT_DIR_APPENDIX = "jetifier"
69 val task = project.tasks.findByName(TASK_NAME) as? JetifyGlobalTask
79 private val outputDir = File(project.buildDir, OUTPUT_DIR_APPENDIX)
97 val config = ConfigParser.loadConfigOrFail(TasksCommon.configFilePath)
99 val dependenciesMap = mutableMapOf<File, MutableSet<Dependency>>()
108 val fileDep = dep as? FileCollectionDependency
123 val detache
[all...]
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/pom/
H A DPomDocumentTest.kt228 val document = loadDocument(
243 val document = loadDocument(
259 val dependency = document.dependencies.first()
274 val given =
300 val file = ArchiveFile(Paths.get("pom.xml"), given.toByteArray())
301 val pomDocument = PomDocument.loadFrom(file)
302 val config = Config.fromOptional(
305 val context = TransformationContext(config, versions = versions)
324 val given =
337 val fil
[all...]
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/
H A Dtransformation.kt36 val updatedParentMethods = parentMethods.map { parentMethod ->
37 val overrideMethod = classMethods.find { (method) ->
55 val flattened: MutableMap<LifecycleObserverInfo, LifecycleObserverInfo> = mutableMapOf()
66 val methods = observer.parents
82 val executable = eventMethod.method
112 val flatObservers = flattenObservers(processingEnv, world.observersInfo)
113 val syntheticMethods = HashMultimap.create<TypeElement, EventMethodCall>()
114 val adapterCalls = flatObservers
124 val calls = methods.map { eventMethod ->
139 val method
[all...]
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DMac3s_Sat_32x16.c30 const LVM_INT16 val,
43 MUL32x16INTO32(srcval,val,temp,15)
69 const LVM_FLOAT val,
82 Temp = srcval * val;
29 Mac3s_Sat_32x16( const LVM_INT32 *src, const LVM_INT16 val, LVM_INT32 *dst, LVM_INT16 n) argument
68 Mac3s_Sat_Float(const LVM_FLOAT *src, const LVM_FLOAT val, LVM_FLOAT *dst, LVM_INT16 n) argument
/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.cpp62 Res_value val; local
63 ssize_t block = table.getResource(resource_id, &val, MAY_NOT_BE_BAG);
68 if (val.dataType != Res_value::TYPE_STRING) {
77 const String8 actual_str = pool->string8ObjectAt(val.data);
/frameworks/native/libs/vr/libdvr/include/dvr/
H A Ddvr_display_types.h16 typedef struct float32x4x4_t { float32x4_t val[4]; } float32x4x4_t;
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/drawable/
H A DColorDrawableTest.kt26 val drawable = Color.CYAN.toDrawable()
32 val drawable = Color.valueOf(Color.CYAN).toDrawable()

Completed in 234 milliseconds

<<11121314151617181920>>