Searched refs:val (Results 201 - 225 of 886) sorted by relevance

1234567891011>>

/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
H A DShortcutMethodProcessor.kt32 val containing: DeclaredType,
33 val executableElement: ExecutableElement) {
34 val context = baseContext.fork(executableElement)
35 private val asMember = context.processingEnv.typeUtils.asMemberOf(containing, executableElement)
36 private val executableType = MoreTypes.asExecutable(asMember)
40 val annotation = MoreElements.getAnnotationMirror(executableElement,
53 val params = executableElement.parameters
59 val entities = params
H A DUpdateMethodProcessor.kt30 val containing: DeclaredType,
31 val executableElement: ExecutableElement) {
32 val context = baseContext.fork(executableElement)
35 val delegate = ShortcutMethodProcessor(context, containing, executableElement)
36 val annotation = delegate
39 val onConflict = OnConflictProcessor.extractFrom(annotation)
43 val returnTypeName = delegate.extractReturnType().typeName()
50 val (entities, params) = delegate.extractParams(
H A DCustomConverterProcessor.kt50 class CustomConverterProcessor(val context: Context, val element: TypeElement) {
52 private val INVALID_RETURN_TYPES = setOf(TypeKind.ERROR, TypeKind.VOID, TypeKind.NONE)
54 val annotation = MoreElements.getAnnotationMirror(element,
57 val classes = AnnotationMirrors.getAnnotationValue(annotation, "value")
62 val converters = classes
75 val groupedByFrom = converters.groupBy { it.from.typeName() }
91 val methods = ElementFilter
93 val declaredType = MoreTypes.asDeclared(element.asType())
94 val converterMethod
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/verifier/
H A DDatabaseVerificaitonErrors.kt22 private val CANNOT_VERIFY_QUERY: String = "There is a problem with the query: %s"
27 private val CANNOT_CREATE_SQLITE_CONNECTION: String = "Room cannot create an SQLite" +
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DWarning.kt22 enum class Warning(val publicKey: String) {
39 val PUBLIC_KEY_MAP = Warning.values().associateBy { it.publicKey }
H A DFieldGetter.kt25 data class FieldGetter(val name: String, val type: TypeMirror, val callType: CallType) {
27 val stmt = when (callType) {
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/writer/
H A DEntityDeleteComparator.kt28 val ltr = lhs.shouldBeDeletedAfter(rhs)
29 val rtl = rhs.shouldBeDeletedAfter(lhs)
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/solver/
H A DCustomTypeConverterResolutionTest.kt59 val ENTITY = ClassName.get("foo.bar", "MyEntity")
60 val DB = ClassName.get("foo.bar", "MyDb")
61 val DAO = ClassName.get("foo.bar", "MyDao")
63 val CUSTOM_TYPE = ClassName.get("foo.bar", "CustomType")
64 val CUSTOM_TYPE_JFO = JavaFileObjects.forSourceLines(CUSTOM_TYPE.toString(),
71 val CUSTOM_TYPE_CONVERTER = ClassName.get("foo.bar", "MyConverter")
72 val CUSTOM_TYPE_CONVERTER_JFO = JavaFileObjects.forSourceLines(
87 val CUSTOM_TYPE_SET = ParameterizedTypeName.get(
89 val CUSTOM_TYPE_SET_CONVERTER = ClassName.get("foo.bar", "MySetConverter")
90 val CUSTOM_TYPE_SET_CONVERTER_JF
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_seek_synch.cpp133 uint16 val; local
215 val = (tmp1 << 3);
216 val |= (tmp2 >> 5);
221 val = 0; // force mismatch
224 if (val == SYNC_WORD)
284 uint16 val; local
290 val = (uint16)getUpTo17bits(inputStream, SYNC_WORD_LNGTH);
292 while (((val&SYNC_WORD) != SYNC_WORD) && (inputStream->usedBits < availableBits))
294 val <<= 8;
295 val |
[all...]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
H A DPowerCommand.java53 int val;
55 val = BatteryManager.BATTERY_PLUGGED_AC |
60 val = 0;
62 val = BatteryManager.BATTERY_PLUGGED_USB;
64 val = BatteryManager.BATTERY_PLUGGED_AC;
66 val = BatteryManager.BATTERY_PLUGGED_WIRELESS;
71 if (val != 0) {
76 pm.setStayOnSetting(val);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dstats_scorer.cpp33 float val = static_cast<float>(pImg[i]); local
34 sum += val;
35 sumSquares += val * val;
59 float val = static_cast<float>(*(pImg + disp + x)); local
60 sum += val;
61 sumSquares += val * val;
/frameworks/support/core/ktx/src/main/java/androidx/core/util/
H A DLocale.kt27 val Locale.layoutDirection: Int
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/patterns/
H A DReplacersRunner.kt22 class ReplacersRunner(val replacers: List<GroupsReplacer>) {
31 val sb = StringBuilder()
36 val matcher = replacer.pattern.matcher(processedInput)
43 val result = replacer.runReplacements(matcher)
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/model/
H A DInputModel.kt26 private val rootTypes: Set<TypeElement>,
28 val observersInfo: Map<TypeElement, LifecycleObserverInfo>,
30 val generatedAdapters: Map<TypeElement, List<ExecutableElement>>) {
38 val syntheticMethods = generatedAdapters[eventMethod.type] ?: return false
/frameworks/support/navigation/runtime/ktx/src/androidTest/java/androidx/navigation/
H A DViewTest.kt33 val view = View(InstrumentationRegistry.getTargetContext())
34 val navController = NavController(InstrumentationRegistry.getTargetContext())
37 val foundNavController = view.findNavController()
43 val view = View(InstrumentationRegistry.getTargetContext())
/frameworks/support/room/integration-tests/kotlintestapp/src/main/java/androidx/room/integration/kotlintestapp/vo/
H A DRelationFromDependency.kt20 class RelationFromDependency(val sharedName: String) {
/frameworks/support/work/workmanager-ktx/src/main/java/androidx/work/
H A DData.kt26 val dataBuilder = Data.Builder()
/frameworks/base/libs/androidfw/tests/
H A DResTable_test.cpp63 Res_value val; local
66 table.getResource(resid, &val, false /*mayBeBag*/, 0u /*density*/, &flags, &selected_config),
68 EXPECT_EQ(Res_value::TYPE_INT_DEC, val.dataType);
69 EXPECT_EQ(900u, val.data);
111 Res_value val; local
113 ssize_t index = theme.getAttribute(basic::R::attr::attr1, &val, &specFlags);
115 ASSERT_EQ(Res_value::TYPE_INT_DEC, val.dataType);
116 ASSERT_EQ(uint32_t(100), val.data);
118 index = theme.getAttribute(basic::R::attr::attr2, &val, &specFlags);
120 ASSERT_EQ(Res_value::TYPE_REFERENCE, val
135 Res_value val; local
159 Res_value val; local
180 Res_value val; local
201 Res_value val; local
234 Res_value val; local
267 Res_value val; local
364 Res_value val; local
435 Res_value val; local
[all...]
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DNumericalWatcher.java62 private int sanitize(int val) { argument
63 if (val > mMax) {
64 val = mMax;
65 } else if (val < mMin) {
66 val = mMin;
68 return val;
/frameworks/base/tools/aapt/
H A DAaptUtil.cpp50 String8 val(p, strlen(p));
51 val.toLower();
52 parts.add(val);
56 String8 val(p, q-p);
57 val.toLower();
58 parts.add(val);
/frameworks/support/collection/ktx/src/test/java/androidx/collection/
H A DArrayMapTest.kt25 val map = arrayMapOf<String, String>()
30 val map = arrayMapOf("foo" to "bar", "bar" to "baz")
35 val map = arrayMapOf("foo" to "bar", "foo" to "baz")
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/content/
H A DSharedPreferencesTest.kt24 private val context = InstrumentationRegistry.getContext()
27 val preferences = context.getSharedPreferences("prefs", 0)
39 val preferences = context.getSharedPreferences("prefs", 0)
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/
H A DShaderTest.kt28 val shader = Shader()
29 val values = FloatArray(9)
30 val matrix = Matrix()
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/net/
H A DUriTest.kt26 val string = "https://test.example.com/foo?bar#baz"
31 val file = File("/path/to/my/file")
36 val uri = Uri.parse("path/to/my/file")
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DArrayMapTest.kt27 val map = arrayMapOf<String, String>()
32 val map = arrayMapOf("foo" to "bar", "bar" to "baz")
37 val map = arrayMapOf("foo" to "bar", "foo" to "baz")

Completed in 673 milliseconds

1234567891011>>