/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/ |
D | ICamera2Helper.java | 36 private String name; field in ICamera2Helper.ModeType 39 ModeType(String name) { in ModeType() argument 40 this.name = name; in ModeType() 46 return name; in toString() 54 public static ModeType fromString(String name) { in fromString() argument 56 if (mode.toString().equals(name)) return mode; in fromString() 67 private String name; field in ICamera2Helper.CameraType 70 CameraType(String name) { in CameraType() argument 71 this.name = name; in CameraType() 77 return name; in toString() [all …]
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | InfoStore.java | 47 abstract void startGroup(String name) throws IOException; in startGroup() argument 62 abstract void startArray(String name) throws IOException; in startArray() argument 72 abstract void addResult(String name, int value) throws IOException; in addResult() argument 77 abstract void addResult(String name, long value) throws IOException; in addResult() argument 82 abstract void addResult(String name, float value) throws IOException; in addResult() argument 87 abstract void addResult(String name, double value) throws IOException; in addResult() argument 92 abstract void addResult(String name, boolean value) throws IOException; in addResult() argument 97 abstract void addResult(String name, String value) throws IOException; in addResult() argument 102 abstract void addArrayResult(String name, int[] array) throws IOException; in addArrayResult() argument 107 abstract void addArrayResult(String name, long[] array) throws IOException; in addArrayResult() argument [all …]
|
D | MultipartForm.java | 58 public MultipartForm addFormValue(String name, String value) { in addFormValue() argument 59 mFormValues.put(name, value); in addFormValue() 72 public MultipartForm addFormFile(String name, String fileName, byte[] data) { in addFormFile() argument 73 mName = name; in addFormFile() 154 private void writeFormField(PrintWriter writer, String name, String value) { in writeFormField() argument 156 writer.append("Content-Disposition: form-data; name=\"").append(name).println("\""); in writeFormField() 161 private void writeFormFileHeader(PrintWriter writer, String name, String fileName) { in writeFormFileHeader() argument 163 writer.append("Content-Disposition: form-data; name=\"").append(name); in writeFormFileHeader()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ModuleClassLoader.java | 43 protected Class<?> findClass(String name) throws ClassNotFoundException { in findClass() argument 45 return super.findClass(name); in findClass() 49 Class<?> clazz = mClasses.get(name); in findClass() 51 String path = name.replace('.', '/').concat(".class"); in findClass() 55 throw new IOException("Cannot find resource stream for class " + name); in findClass() 58 clazz = defineClass(name, b, 0, b.length); in findClass() 59 mClasses.put(name, clazz); in findClass() 61 throw new ClassNotFoundException(name + " not found"); in findClass()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertions/ |
D | NamedAssertion.kt | 29 override val name: String, constant in android.tools.flicker.assertions.NamedAssertion 33 override fun toString(): String = "Assertion($name)${if (isOptional) "[optional]" else ""}" in invoke() 44 if (name != other.name) { in invoke() 55 result = 31 * result + name.hashCode() in hashCode()
|
D | CompoundAssertion.kt | 20 class CompoundAssertion<T>(assertion: (T) -> Unit, name: String, optional: Boolean) : Assertion<T> { in <lambda>() 24 add(assertion, name, optional) in <lambda>() 30 override val name in <lambda>() constant 31 get() = assertions.joinToString(" and ") { it.name } in <lambda>() 66 fun add(assertion: (T) -> Unit, name: String, optional: Boolean) { in <lambda>() 67 assertions.add(NamedAssertion(assertion, name, optional)) in <lambda>() 70 override fun toString(): String = name in <lambda>()
|
/platform_testing/libraries/flicker/test/src/android/tools/flicker/legacy/runner/ |
D | TestUtils.kt | 40 private fun validateEqualTo(time: Timestamp, name: String, expectedValue: Timestamp) { in validateEqualTo() 41 Truth.assertWithMessage("$name - systemUptimeNanos") in validateEqualTo() 44 Truth.assertWithMessage("$name - unixNanos") in validateEqualTo() 47 Truth.assertWithMessage("$name - elapsedNanos") in validateEqualTo() 52 private fun validateTimeGreaterThan(time: Timestamp, name: String, minValue: Timestamp) { in validateTimeGreaterThan() 53 Truth.assertWithMessage("$name - systemUptimeNanos") in validateTimeGreaterThan() 56 Truth.assertWithMessage("$name - unixNanos") in validateTimeGreaterThan() 59 Truth.assertWithMessage("$name - elapsedNanos") in validateTimeGreaterThan()
|
/platform_testing/libraries/collectors-helper/memory/src/com/android/helpers/ |
D | SlabinfoHelper.java | 144 String name = tokens[0]; in readSlabinfo() local 150 Long val = slabinfo.get(name); in readSlabinfo() 154 slabinfo.put(name, val); in readSlabinfo() 171 for (String name : names) ybars.put(name, 0.0); in fitLinesToSamples() 175 for (String name : names) ybars.put(name, ybars.get(name) + sample.slabs.get(name)); in fitLinesToSamples() 178 for (String name : names) ybars.put(name, ybars.get(name) / samples.size()); in fitLinesToSamples() 182 for (String name : names) { in fitLinesToSamples() 186 double delta_y = sample.slabs.get(name) - ybars.get(name); in fitLinesToSamples() 190 slopes.put("slabinfo." + name, num * TimeUnit.MINUTES.toSeconds(5) / denom); in fitLinesToSamples()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WindowContainerImpl.kt | 50 override val name: String constant 68 private fun removeRedundancyInName(name: String): String { in removeRedundancyInName() 69 if (!name.contains('/')) { in removeRedundancyInName() 70 return name in removeRedundancyInName() 73 val split = name.split('/') in removeRedundancyInName() 83 return name in removeRedundancyInName() 94 if (name != other.name) return false in equals() 107 result = 31 * result + name.hashCode() in hashCode()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/assertors/ |
D | ComponentTemplate.kt | 23 val name: String, constant in android.tools.flicker.assertors.ComponentTemplate 27 return other is ComponentTemplate && name == other.name && build == other.build in equals() 31 return name.hashCode() * 39 + build.hashCode() in hashCode()
|
D | AssertionTemplate.kt | 26 abstract class AssertionTemplate(name: String? = null) { 27 protected open val name = constant 29 ?: name ?: error("Must provide a name to assertions when using anonymous classes.") 31 get() = AssertionId(name) 34 "${scenarioInstance.type}::$name" in qualifiedAssertionName()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | ValueResourceParser.java | 120 new Object(), (t) -> qName, (t, name) -> attributes.getValue(name)); in startElement() 124 String name = attributes.getValue(ATTR_NAME); in startElement() local 125 if (name != null) { in startElement() 131 namespace, name, parent, mLibraryName); in startElement() 137 namespace, name, null, mLibraryName); in startElement() 142 new AttrResourceValueImpl(namespace, name, mLibraryName); in startElement() 147 new ArrayResourceValueImpl(namespace, name, mLibraryName); in startElement() 153 namespace, type, name, null, mLibraryName); in startElement() 161 String name = attributes.getValue(ATTR_NAME); in startElement() local 162 if (!Strings.isNullOrEmpty(name)) { in startElement() [all …]
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | TracePointRule.java | 71 String name = mSectionTag; in getSectionName() local 72 if (Strings.isNullOrEmpty(name)) { in getSectionName() 73 name = description.getDisplayName(); in getSectionName() 75 return name.substring(Math.max(0, name.length() - getMaxSectionLength())); in getSectionName()
|
D | DeviceConfigOverrideRule.kt | 29 private val name: String, constant in android.platform.test.rule.DeviceConfigOverrideRule 37 originalValue = DeviceConfig.getProperty(namespaceName, name) in starting() 38 if (!DeviceConfig.setProperty(namespaceName, name, value, makeDefault)) { in starting() 44 DeviceConfig.setProperty(namespaceName, name, originalValue, makeDefault) in finished()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/foldable/ |
D | UnfoldAnimationTestingUtils.kt | 59 .map { name -> in <lambda>() method 60 val aIcon = setA.findWithName(name) in <lambda>() 61 val bIcon = setB.findWithName(name) in <lambda>() 68 return setA.map { it.name }.intersect(setB.map { it.name }.toSet()) in <lambda>() 72 return find { it.name == iconName } ?: error("Icon with name $iconName not found in $this") in <lambda>() 80 assertWithMessage("Comparing icons with different names").that(old.name).isEqualTo(new.name) in <lambda>() 102 data class Icon(val name: String, val position: Point) in <lambda>() constant in android.platform.helpers.foldable.UnfoldAnimationTestingUtils.Icon
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/component/ |
D | ComponentName.kt | 111 var name = layerName in toString() variable 114 if (name.contains("/")) { in toString() 115 if (name.contains("#")) { in toString() 116 name = name.removeSuffix("#") in toString() 118 val splitString = name.split('/') in toString() 122 className = name in toString()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | IAppHelper.java | 88 abstract boolean captureScreenshot(String name) throws IOException; in captureScreenshot() argument 108 default void registerWatcher(String name, UiWatcher watcher) { in registerWatcher() argument 120 default void registerWatcher(String name, androidx.test.uiautomator.UiWatcher watcher) { in registerWatcher() argument 130 abstract void removeWatcher(String name); in removeWatcher() argument
|
/platform_testing/tests/bettertogether/betocq/ |
D | Android.bp | 21 name: "betocq_lib_defaults", 26 name: "betocq_test_defaults", 37 name: "betocq_lib", 54 name: "base_betocq_suite", 66 name: "d2d_performance_test_base", 79 name: "betocq_nc_base_test", 92 name: "betocq_compound_tests", 103 name: "betocq_directed_tests", 114 name: "betocq_function_tests", 128 name: "betocq_test_suite",
|
/platform_testing/libraries/uinput-device-test-helper/src/android/platform/helpers/uinput/ |
D | UInputDevice.kt | 28 abstract val name: String constant in android.platform.helpers.uinput.UInputDevice 38 "name": "$name", in getRegisterCommand() 52 this.name == inputDevice.name && in isInputDevice()
|
/platform_testing/tools/automotive/proxy/ |
D | Android.bp | 6 name: "libProxyConfig", 24 name: "automotive_vsock_proxy", 43 name: "automotive_proxy_config_file_group", 48 name: "automotive_proxy_config",
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | TimeSeriesCapture.kt | 25 val name: String, constant in platform.test.motion.golden.FeatureCapture 46 fun feature(using: FeatureCapture<in T, *>, name: String = using.name) { in capture() 48 valueCollector.computeIfAbsent(name) { mutableListOf() }.add(dataPoint) in capture()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/ |
D | ScubaExportStrategyTest.kt | 64 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 66 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 68 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 70 assertThat(subject.getPathOnDeviceFor(RESULT_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 72 assertThat(subject.getPathOnDeviceFor(RESULT_BIN_PROTO).name) in getPathOnDeviceFor_emptyPathConfig_filenameIncludesPathElement() 81 assertThat(subject.getPathOnDeviceFor(IMAGE_ACTUAL).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 83 assertThat(subject.getPathOnDeviceFor(IMAGE_EXPECTED).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 85 assertThat(subject.getPathOnDeviceFor(IMAGE_DIFF).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 87 assertThat(subject.getPathOnDeviceFor(RESULT_PROTO).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() 89 assertThat(subject.getPathOnDeviceFor(RESULT_BIN_PROTO).name) in getPathOnDeviceFor_directoryElement_filenameIncludesPathElement() [all …]
|
/platform_testing/scripts/map_tests/ |
D | map_tests.py | 77 for name,k in info.items(): 78 if PRINT == '-' or name == PRINT: print(name, k) 82 if name.endswith("_32"): continue 100 already_there = any(i["name"] == name for i in test_mapping["presubmit"]) 103 test_mapping["presubmit"] += [{ "name": name }]
|
/platform_testing/tests/featureflag/ |
D | TEST_MAPPING | 4 "name": "FeatureFlagTest" 9 "name": "FeatureFlagTest"
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/ |
D | UiSearch.java | 56 public static boolean search(UiScrollable scroller, UiSelector selector, String name, in search() argument 60 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search() 64 format("Looking for %s[%s] within %s seconds", name, selector, in search() 81 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search() 114 public static boolean search(UiScrollable scroller, BySelector selector, String name, in search() argument 118 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search() 122 format("Looking for %s[%s] within %s seconds", name, selector, in search() 139 Log.w(TAG, format("Scroller is null. So looking for %s[%s] in in %s seconds", name, in search()
|