Searched refs:val (Results 126 - 150 of 886) sorted by relevance

1234567891011>>

/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/proguard/patterns/
H A DGroupsReplacer.kt28 val pattern: Pattern,
29 private val groupsMap: List<(String) -> List<String>>
37 val start = matcher.group(0)
46 val groupVal = matcher.group(i + 1) ?: continue
47 val localStart = matcher.start(i + 1) - matcher.start()
48 val localEnd = matcher.end(i + 1) - matcher.start()
51 val replacements = groupsMap[i].invoke(groupVal)
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/bytecode/
H A DClassFilesMoveTest.kt39 private val TEST_CONFIG = Config.fromOptional(
79 val inputZipPath = "/fileRenameTest/inputTestLib.zip"
80 val expectedZipPath = "/fileRenameTest/expectedTestLib.zip"
82 val processor = Processor.createProcessor(TEST_CONFIG)
83 val inputFile = File(javaClass.getResource(inputZipPath).file)
85 val tempDir = createTempDir()
86 val expectedFile = File(createTempDir(), "test.zip")
88 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile)))
101 val inputZipPath = "/fileRenameTest/inputTestLibNested.zip"
102 val expectedZipPat
[all...]
H A DCoreRemapperImplTest.kt31 val remapper = prepareRemapper(
39 val given = "androidx.test.InputConnectionCompat.CONTENT_URI"
40 val expected = "android.support.test.InputConnectionCompat.CONTENT_URI"
49 val prefixes = if (restrictToPackagePrefix == null) {
55 val config = Config.fromOptional(
59 val context = TransformationContext(config, isInReversedMode = true)
61 val writer = ClassWriter(0 /* flags */)
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/processor/
H A DQueryParameterProcessor.kt26 val containing: DeclaredType,
27 val element: VariableElement,
28 private val sqlName: String? = null) {
29 val context = baseContext.fork(element)
31 val asMember = MoreTypes.asMemberOf(context.processingEnv.typeUtils, containing, element)
32 val parameterAdapter = context.typeAdapterStore.findQueryParameterAdapter(asMember)
36 val name = element.simpleName.toString()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DShift_Sat_v16xv16.c28 void Shift_Sat_v16xv16 (const LVM_INT16 val, argument
36 if(val>0)
43 temp = temp << val;
60 else if(val<0)
62 RShift=(LVM_INT16)(-val);
/frameworks/base/libs/protoutil/src/
H A Dprotobuf.cpp46 write_raw_varint(uint8_t* buf, uint64_t val) argument
50 if ((val & ~0x7F) == 0) {
51 *p++ = (uint8_t)val;
54 *p++ = (uint8_t)((val & 0x7F) | 0x80);
55 val >>= 7;
/frameworks/support/app-toolkit/buildSrc/src/main/kotlin/androidx/build/
H A DVersionFileWriterTask.kt42 val writer = PrintWriter(outputFile)
48 val RESOURCE_DIRECTORY = "generatedResources"
49 val VERSION_FILE_PATH = RESOURCE_DIRECTORY + "/META-INF/%s_%s.version"
58 val group = project.properties["group"] as String
59 val artifactId = project.properties["name"] as String
60 val version = project.properties["version"] as String
63 val artifactName = File(
67 val writeVersionFile = project.tasks.create("writeVersionFile",
76 val resources = library.sourceSets.getByName("main").resources
79 val include
[all...]
/frameworks/support/buildSrc/src/main/kotlin/androidx/build/
H A DVersionFileWriterTask.kt42 val writer = PrintWriter(outputFile)
48 val RESOURCE_DIRECTORY = "generatedResources"
49 val VERSION_FILE_PATH = RESOURCE_DIRECTORY + "/META-INF/%s_%s.version"
58 val group = project.properties["group"] as String
59 val artifactId = project.properties["name"] as String
60 val version = project.properties["version"] as String
63 val artifactName = File(
67 val writeVersionFile = project.tasks.create("writeVersionFile",
76 val resources = library.sourceSets.getByName("main").resources
79 val include
[all...]
/frameworks/support/navigation/common/ktx/src/androidTest/java/androidx/navigation/
H A DNavDestinationBuilderTest.kt34 private val provider = TestNavigatorProvider(InstrumentationRegistry.getTargetContext())
38 val destination = provider.navDestination(DESTINATION_ID) { }
45 val destination = provider.navDestination(DESTINATION_ID) {
54 val arguments = Bundle()
55 val destination = provider.navDestination(DESTINATION_ID) {
64 val destination = provider.navDestination(DESTINATION_ID) {
72 val action = destination.getAction(ACTION_ID)
79 private const val DESTINATION_ID = 1
80 private const val LABEL = "TEST"
81 private const val ACTION_I
[all...]
/frameworks/base/tools/sdkparcelables/src/com/android/sdkparcelables/
H A DAncestorCollector.kt22 data class Ancestors(val superName: String?, val interfaces: List<String>?)
28 private val _ancestors = LinkedHashMap<String, Ancestors>()
30 val ancestors: Map<String, Ancestors>
37 val old = _ancestors.put(name, Ancestors(superName, interfaces?.toList()))
/frameworks/support/collection/ktx/src/test/java/androidx/collection/
H A DLruCacheTest.kt24 private data class TestData(val x: String = "bla")
27 val cache = lruCache<String, TestData>(200, { k, (x) -> k.length * x.length })
33 val cache = lruCache<String, TestData>(200, create = { key -> TestData("$key foo") })
40 val cache = lruCache<String, TestData>(200, onEntryRemoved = { _, _, _, _ ->
43 val initial = TestData()
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/util/
H A DLruCacheTest.kt24 private data class TestData(val x: String = "bla")
27 val cache = lruCache<String, TestData>(200, { k, (x) -> k.length * x.length })
33 val cache = lruCache<String, TestData>(200, create = { key -> TestData("$key foo") })
40 val cache = lruCache<String, TestData>(200, onEntryRemoved = { _, _, _, _ ->
43 val initial = TestData()
/frameworks/support/lifecycle/compiler/src/tests/kotlin/androidx/lifecycle/utils/
H A DTestUtils.kt28 val folderPath = "src/tests/test-data/${if (folder.isEmpty()) "" else folder + "/"}"
29 val split = fullClassName.split(".")
30 val code = File("$folderPath/${split.last()}.java").readText(Charset.defaultCharset())
35 val javaFiles = fullClassNames.map { load(it, "") }.toTypedArray()
36 val processedWith = JavaSourcesSubject.assertThat(load(className, ""), *javaFiles)
/frameworks/support/navigation/common/ktx/src/test/java/androidx/navigation/
H A DNavigatorProviderTest.kt29 private val provider = SimpleNavigatorProvider()
33 val navigator = TestNavigator()
35 val foundNavigator: Navigator<NavDestination> = provider[NAME]
42 val navigator = TestNavigator()
49 private const val NAME = "TEST"
/frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/
H A DNavGeneratorTest.kt33 val workingDir = TemporaryFolder()
37 val output = generateSafeArgs("foo", "foo.flavor",
39 val javaNames = output.files
40 val expectedSet = setOf(
49 val file = File(workingDir.root, "${name.replace('.', File.separatorChar)}.java")
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/parser/
H A DParsedQuery.kt31 data class Section(val text: String, val type: SectionType) {
39 data class Table(val name: String, val alias: String)
42 val original: String,
43 val type: QueryType,
44 val inputs: List<TerminalNode>,
46 val tables: Set<Table>,
47 val syntaxErrors: List<String>,
48 val runtimeQueryPlaceholde
[all...]
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/
H A DConstructor.kt25 data class Constructor(val element: ExecutableElement, val params: List<Param>) {
37 class FieldParam(val field: Field) : Param(ParamType.FIELD) {
41 class EmbeddedParam(val embedded: EmbeddedField) : Param(ParamType.EMBEDDED) {
45 abstract class Param(val type: ParamType) {
/frameworks/base/core/java/com/android/internal/app/procstats/
H A DPssTable.java86 long val;
88 val = getValue(key, PSS_MINIMUM);
89 if (val > minPss) {
93 val = getValue(key, PSS_AVERAGE);
95 (long)(((val*(double)count)+(avgPss*(double)inCount)) / (count+inCount)));
97 val = getValue(key, PSS_MAXIMUM);
98 if (val < maxPss) {
102 val = getValue(key, PSS_USS_MINIMUM);
103 if (val > minUss) {
107 val
[all...]
/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp49 #define CHECK_VAL_(val, singleline) \
52 ss << val; \
54 CHECK_LOG_(val, s.c_str(), singleline); \
58 #define CHECK_VAL(val) CHECK_VAL_(val, true)
108 android::Parcel val; local
109 CHECK_LOG(val, "Parcel(NULL)");
114 android::HexDump val(buf, sizeof(buf));
115 CHECK_LOG(val, "03020100 07060504 0b0a0908 0f0e0d0c '................'");
120 android::HexDump val(bu
130 int32_t val = 321; //0x141 local
[all...]
/frameworks/support/lifecycle/compiler/src/main/kotlin/androidx/lifecycle/
H A Dwriter.kt39 private val GENERATED_PACKAGE = "javax.annotation"
40 private val GENERATED_NAME = "Generated"
41 private val LIFECYCLE_EVENT = Lifecycle.Event::class.java
43 private val T = "\$T"
44 private val N = "\$N"
45 private val L = "\$L"
46 private val S = "\$S"
48 private val OWNER_PARAM: ParameterSpec = ParameterSpec.builder(
50 private val EVENT_PARAM: ParameterSpec = ParameterSpec.builder(
52 private val ON_ANY_PARA
[all...]
/frameworks/base/core/java/android/os/
H A DParcel.java295 private static native void nativeWriteInt(long nativePtr, int val); argument
297 private static native void nativeWriteLong(long nativePtr, long val); argument
299 private static native void nativeWriteFloat(long nativePtr, float val); argument
301 private static native void nativeWriteDouble(long nativePtr, double val); argument
302 static native void nativeWriteString(long nativePtr, String val); argument
303 private static native void nativeWriteStrongBinder(long nativePtr, IBinder val); argument
304 private static native long nativeWriteFileDescriptor(long nativePtr, FileDescriptor val); argument
671 public final void writeInt(int val) { argument
672 nativeWriteInt(mNativePtr, val);
679 public final void writeLong(long val) { argument
687 writeFloat(float val) argument
695 writeDouble(double val) argument
703 writeString(String val) argument
714 writeStringNoHelper(String val) argument
719 writeBoolean(boolean val) argument
728 writeCharSequence(CharSequence val) argument
736 writeStrongBinder(IBinder val) argument
744 writeStrongInterface(IInterface val) argument
758 writeFileDescriptor(FileDescriptor val) argument
783 writeRawFileDescriptor(FileDescriptor val) argument
809 writeByte(byte val) argument
824 writeMap(Map val) argument
832 writeMapInternal(Map<String,Object> val) argument
849 writeArrayMapInternal(ArrayMap<String, Object> val) argument
878 writeArrayMap(ArrayMap<String, Object> val) argument
889 writeArraySet(@ullable ArraySet<? extends Object> val) argument
901 writeBundle(Bundle val) argument
914 writePersistableBundle(PersistableBundle val) argument
927 writeSize(Size val) argument
936 writeSizeF(SizeF val) argument
946 writeList(List val) argument
965 writeArray(Object[] val) argument
985 writeSparseArray(SparseArray<Object> val) argument
1000 writeSparseBooleanArray(SparseBooleanArray val) argument
1018 writeSparseIntArray(SparseIntArray val) argument
1033 writeBooleanArray(boolean[] val) argument
1061 readBooleanArray(boolean[] val) argument
1072 writeCharArray(char[] val) argument
1097 readCharArray(char[] val) argument
1108 writeIntArray(int[] val) argument
1133 readIntArray(int[] val) argument
1144 writeLongArray(long[] val) argument
1170 readLongArray(long[] val) argument
1181 writeFloatArray(float[] val) argument
1207 readFloatArray(float[] val) argument
1218 writeDoubleArray(double[] val) argument
1244 readDoubleArray(double[] val) argument
1255 writeStringArray(String[] val) argument
1280 readStringArray(String[] val) argument
1291 writeBinderArray(IBinder[] val) argument
1306 writeCharSequenceArray(CharSequence[] val) argument
1321 writeCharSequenceList(ArrayList<CharSequence> val) argument
1346 readBinderArray(IBinder[] val) argument
1371 writeTypedList(List<T> val) argument
1378 writeTypedList(List<T> val, int parcelableFlags) argument
1403 writeStringList(List<String> val) argument
1428 writeBinderList(List<IBinder> val) argument
1450 writeParcelableList(List<T> val, int flags) argument
1483 writeTypedArray(T[] val, int parcelableFlags) argument
1505 writeTypedObject(T val, int parcelableFlags) argument
2066 readRawFileDescriptorArray(FileDescriptor[] val) argument
2222 readByteArray(byte[] val) argument
2573 readTypedArray(T[] val, Parcelable.Creator<T> c) argument
[all...]
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/graphics/drawable/
H A DDrawableTest.kt29 private val context = InstrumentationRegistry.getContext()
30 private val resources = context.resources
33 val original = createBitmap(10, 10).apply {
36 val drawable = BitmapDrawable(resources, original)
38 val bitmap = drawable.toBitmap()
46 val original = createBitmap(10, 10).apply {
49 val drawable = BitmapDrawable(resources, original)
51 val bitmap = drawable.toBitmap(config = Config.ARGB_8888)
59 val original = createBitmap(10, 10).apply {
62 val drawabl
[all...]
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/view/
H A DMenuTest.kt33 private val menu = Toolbar(InstrumentationRegistry.getContext()).menu
36 val item = menu.add("")
41 val item1 = menu.add("")
44 val item2 = menu.add("")
49 val item1 = menu.add(NONE, 1, NONE, "")
50 val item2 = menu.add(NONE, 2, NONE, "")
92 val item1 = menu.add("")
93 val item2 = menu.add("")
95 val items = mutableListOf<MenuItem>()
107 val item
[all...]
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/pom/
H A DPomRewriteInZipTest.kt36 private val TEST_CONFIG = Config.fromOptional(
54 val inputZipPath = "/pomRefactorTest/pomTest.zip"
56 val processor = Processor.createProcessor(
61 val inputFile = File(javaClass.getResource(inputZipPath).file)
63 val tempDir = createTempDir()
64 val expectedFile = File(createTempDir(), "test.zip")
66 val resultFiles = processor.transform(setOf(FileMapping(inputFile, expectedFile)))
70 val returnedArchive = Archive.Builder.extract(expectedFile)
71 val returnedPom = returnedArchive.files.first() as ArchiveFile
72 val conten
[all...]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A Dreduce.rs37 static void aiAccum(int *accum, int val) { *accum += val; }
64 static void fMinAbsNaNAccumulator(float *accum, float val) {
65 if (IsNaN(*accum) || (fabs(val) < fabs(*accum)))
66 *accum = val;
86 float val;
97 static void fMinAbsBoolAccumulator(FindMinAbsBoolAccumType *accum, float val) {
98 if (accum->onlyInitialized || (fabs(val) < fabs(accum->val)))
99 accum->val
[all...]

Completed in 356 milliseconds

1234567891011>>