/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | TransitionType.kt | 19 enum class TransitionType(val value: Int) { constant in android.tools.traces.wm.TransitionType 37 EXIT_PIP(FIRST_CUSTOM.value + 1), 38 EXIT_PIP_TO_SPLIT(FIRST_CUSTOM.value + 2), 39 REMOVE_PIP(FIRST_CUSTOM.value + 3), 40 SPLIT_SCREEN_PAIR_OPEN(FIRST_CUSTOM.value + 4), 41 SPLIT_SCREEN_OPEN_TO_SIDE(FIRST_CUSTOM.value + 5), 42 SPLIT_DISMISS_SNAP(FIRST_CUSTOM.value + 6), 43 SPLIT_DISMISS(FIRST_CUSTOM.value + 7), 44 MAXIMIZE(FIRST_CUSTOM.value + 8), 45 RESTORE_FROM_MAXIMIZE(FIRST_CUSTOM.value + 9), [all …]
|
D | WindowManagerTraceEntryBuilder.kt | 35 fun setPolicy(value: WindowManagerPolicy?): WindowManagerTraceEntryBuilder = apply { in <lambda>() 36 policy = value in <lambda>() 39 fun setFocusedApp(value: String): WindowManagerTraceEntryBuilder = apply { focusedApp = value } in setFocusedApp() 41 fun setFocusedDisplayId(value: Int): WindowManagerTraceEntryBuilder = apply { in <lambda>() 42 focusedDisplayId = value in <lambda>() 45 fun setFocusedWindow(value: String): WindowManagerTraceEntryBuilder = apply { in <lambda>() 46 focusedWindow = value in <lambda>() 49 fun setInputMethodWindowAppToken(value: String): WindowManagerTraceEntryBuilder = apply { in <lambda>() 50 inputMethodWindowAppToken = value in <lambda>() 53 fun setIsHomeRecentsComponent(value: Boolean): WindowManagerTraceEntryBuilder = apply { in <lambda>() [all …]
|
D | WindowingMode.kt | 19 enum class WindowingMode(val value: Int) { constant in android.tools.traces.wm.WindowingMode 36 fun fromInt(value: Int) = in fromInt() 37 values().firstOrNull { it.value == value } in fromInt() 38 ?: error("No valid windowing mode for id $value")
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | Args.kt | 23 private var value: Any? = null variable in android.tools.traces.parsers.perfetto.Args 30 require(value !== null) { "Cannot access value of a non-leaf args" } in getChild() 31 return value as Boolean in getChild() 35 require(value !== null) { "Cannot access value of a non-leaf args" } in getInt() 36 return (value as Long).toInt() in getInt() 40 require(value !== null) { "Cannot access value of a non-leaf args" } in getLong() 41 return value as Long in getLong() 45 require(value !== null) { "Cannot access value of a non-leaf args" } in getFloat() 46 return (value as Double).toFloat() in getFloat() 50 return value is String in isString() [all …]
|
D | Utils.kt | 39 val value = in queryLastEntryTimestamp() constant 47 return value in queryLastEntryTimestamp() 52 val value = in queryToMonotonic() constant 57 return value in queryToMonotonic() 62 val value = in queryToRealtime() constant 67 return value in queryToRealtime()
|
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/ |
D | IAutoSUWHelper.java | 59 private final String value; field in IAutoSUWHelper.EnableDisable 61 EnableDisable(String value) { in EnableDisable() argument 62 this.value = value; in EnableDisable() 66 return value; in getValue() 79 private final String value; field in IAutoSUWHelper.ButtonID 81 ButtonID(String value) { in ButtonID() argument 82 this.value = value; in ButtonID() 86 return value; in getID() 99 private final String value; field in IAutoSUWHelper.ButtonText 101 ButtonText(String value) { in ButtonText() argument [all …]
|
D | IAutoSettingHelper.java | 34 private final int value; field in IAutoSettingHelper.DayNightMode 36 DayNightMode(int value) { in DayNightMode() argument 37 this.value = value; in DayNightMode() 41 return value; in getValue() 159 void setValue(String setting, int value); in setValue() argument
|
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/exceptions/ |
D | ExceptionMessageBuilder.kt | 33 fun forSubject(value: FlickerSubject) = apply { in <lambda>() 34 setTimestamp(value.timestamp) in <lambda>() 35 addExtraDescription(value.selfFacts) in <lambda>() 36 val reader = value.reader in <lambda>() 54 fun setTimestamp(value: Timestamp) = apply { timestamp = value } in forInvalidElement() 56 fun setMessage(value: String) = apply { headerDescription = value } in <lambda>() 58 fun setExpected(value: Any?) = apply { expected = value?.toString() ?: "null" } in <lambda>() 60 fun setActual(value: Collection<String>) = apply { actual.addAll(value) } in <lambda>() 62 fun setActual(value: Any?) = setActual(listOf(value?.toString() ?: "null")) in setActual() 64 fun setReader(value: Reader) = addExtraDescription("Artifact", value.artifact) in setActual() [all …]
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | InfoStore.java | 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 183 protected static String checkString(String value) { in checkString() argument 184 if (value == null || value.isEmpty()) { in checkString() 187 if (value.length() > MAX_STRING_LENGTH) { in checkString() 188 return value.substring(0, MAX_STRING_LENGTH); in checkString() [all …]
|
/platform_testing/libraries/flicker/src/android/tools/flicker/extractors/ |
D | TaggedScenarioExtractorBuilder.kt | 33 fun setTargetTag(value: CujType): TaggedScenarioExtractorBuilder = apply { targetTag = value } in adjustCuj() 35 fun setTransitionMatcher(value: TransitionMatcher): TaggedScenarioExtractorBuilder = apply { in <lambda>() 36 transitionMatcher = value in <lambda>() 39 fun setAdjustCuj(value: CujAdjust): TaggedScenarioExtractorBuilder = apply { adjustCuj = value } in <lambda>() 43 fun setIgnoreIfNoMatchingTransition(value: Boolean) = apply { in <lambda>() 44 ignoreIfNoMatchingTransition = value in <lambda>()
|
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/ |
D | ValidateUiElement.java | 130 String value = in deserialize() local 139 return new UiElement(type, value, pkg); in deserialize() 152 JsonElement value = jsonObject.get(key); in validateAndGetValue() local 153 if (value != null in validateAndGetValue() 154 && value.isJsonPrimitive() in validateAndGetValue() 155 && value.getAsJsonPrimitive().isString() in validateAndGetValue() 156 && !value.getAsString().trim().isEmpty()) { in validateAndGetValue() 157 return value.getAsString().trim(); in validateAndGetValue() 170 JsonElement value = jsonObject.get(key); in validateAndGetBoolean() local 171 if (value == null) { in validateAndGetBoolean() [all …]
|
D | ValidateWorkflowTask.java | 156 JsonElement value = jsonObject.get(key); in validateAndGetIntValue() local 157 if (value != null && value.isJsonPrimitive() && value.getAsJsonPrimitive().isNumber()) { in validateAndGetIntValue() 158 return value.getAsInt(); in validateAndGetIntValue() 165 JsonElement value = jsonObject.get(key); in validateAndGetStringValue() local 166 if (value != null in validateAndGetStringValue() 167 && value.isJsonPrimitive() in validateAndGetStringValue() 168 && value.getAsJsonPrimitive().isString() in validateAndGetStringValue() 169 && !value.getAsString().trim().isEmpty()) { in validateAndGetStringValue() 170 return value.getAsString().trim(); in validateAndGetStringValue() 179 JsonElement value = jsonObject.get(key); in validateNotNull() local [all …]
|
D | ValidateWorkflowTaskConfig.java | 69 JsonElement value = jsonObject.get(key); in validateAndGetTextValue() local 70 if (value != null in validateAndGetTextValue() 71 && value.isJsonPrimitive() in validateAndGetTextValue() 72 && value.getAsJsonPrimitive().isString() in validateAndGetTextValue() 73 && !value.getAsString().trim().isEmpty()) { in validateAndGetTextValue() 74 return value.getAsString().trim(); in validateAndGetTextValue() 81 JsonElement value = jsonObject.get(key); in validateAndGetUiElementValue() local 82 if (value == null || value.isJsonNull()) { in validateAndGetUiElementValue() 85 return (UiElement) context.deserialize(value, UiElement.class); in validateAndGetUiElementValue()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | SettingRule.kt | 46 fun setSettingValue(value: T?) { in setSettingValue() 49 value == null -> null in setSettingValue() 50 value is Boolean -> if (value) "1" else "0" in setSettingValue() 51 value!!::class in supportedTypes -> value.toString() in setSettingValue() 60 abstract fun setSettingValueAsString(value: String?)
|
/platform_testing/libraries/flicker/utils/src/android/tools/ |
D | NavBar.kt | 19 enum class NavBar(val description: String, val value: String) { constant in android.tools.NavBar 24 fun getByValue(value: String) { in getByValue() 25 when (value) { in getByValue() 28 else -> error("Unknown nav bar mode $value") in getByValue()
|
D | Rotation.kt | 19 enum class Rotation(val description: String, val value: Int) { constant in android.tools.Rotation 33 fun getByValue(value: Int) = if (value == -1) ROTATION_0 else VALUES[value]
|
/platform_testing/libraries/power-helper/src/com/android/helper/ |
D | PowerTestHelper.java | 79 String value = getProperty(key); in getPropertyString() local 80 if (value != null && !value.isEmpty()) in getPropertyString() 81 return value; in getPropertyString() 102 String value = getProperty(key); in getPropertyLong() local 103 if (value != null && !value.trim().isEmpty()) in getPropertyLong() 104 return Long.valueOf(value.trim()); in getPropertyLong() 110 String value; in getProperty() local 116 value = prop.getProperty(key); in getProperty() 119 return value; in getProperty()
|
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/ |
D | MetricUtility.java | 50 resultMap.compute(metricKey, (key, value) -> (value == null) ? in addMetric() 51 new StringBuilder().append(metric) : value.append(METRIC_SEPARATOR).append(metric)); in addMetric() 65 (key, value) -> in addMetric() 66 (value == null ? new StringBuilder() : value.append(METRIC_SEPARATOR)) in addMetric() 78 resultMap.compute(metricKey, (key, value) -> (value == null) ? 1 : value + 1); in addMetric() 95 String value = resultMap.get(metricKey).toString(); in getMetricDoubles() local 96 if (value.length() == 0) { in getMetricDoubles() 100 String[] values = value.split(METRIC_SEPARATOR); in getMetricDoubles() 109 metricKey, i, value)); in getMetricDoubles()
|
/platform_testing/libraries/health/options/tests/src/android/platform/test/options/ |
D | StringOptionTest.java | 43 public void stubValue(String value) { in stubValue() argument 44 mArguments.putString(mName, value); in stubValue() 52 String value = "val"; in testRetrieval() local 53 option.stubValue(value); in testRetrieval() 58 Assert.assertEquals(value, option.get()); in testRetrieval()
|
/platform_testing/libraries/flag-helpers/junit/test/src/android/platform/test/flag/junit/ |
D | FakeFeatureFlagsImpl.java | 43 Boolean value = this.mFlagMap.get(flagName); in getValue() local 44 if (value != null) { in getValue() 45 return value; in getValue() 53 public void setFlag(String flagName, boolean value) { in setFlag() argument 57 this.mFlagMap.put(flagName, value); in setFlag()
|
/platform_testing/libraries/health/runners/longevity/platform/tests/assets/ |
D | testExtraArgs_unregisteredAfterTest.textpb | 7 value: "class-level-override" 14 value: "class-level-option" 21 value: "test-level-override" 28 value: "test-level-option" 35 value: "in-test-override" 42 value: "in-test-option"
|
/platform_testing/utils/shell-as/ |
D | execute.cpp | 51 setresgid(context->group_id.value(), context->group_id.value(), in DropPreExecPrivileges() 52 context->group_id.value()) != 0) { in DropPreExecPrivileges() 53 std::cerr << "Unable to set group id: " << context->group_id.value() in DropPreExecPrivileges() 58 setgroups(context->supplementary_group_ids.value().size(), in DropPreExecPrivileges() 59 context->supplementary_group_ids.value().data()) != 0) { in DropPreExecPrivileges() 65 switch (context->seccomp_filter.value()) { in DropPreExecPrivileges() 86 setresuid(context->user_id.value(), context->user_id.value(), in DropPreExecPrivileges() 87 context->user_id.value()) != 0) { in DropPreExecPrivileges() 88 std::cerr << "Unable to set user id: " << context->user_id.value() in DropPreExecPrivileges() 122 cap_t desired_capabilities = context->capabilities.value(); in DropPreExecPrivileges() [all …]
|
D | shell-as-main.cpp | 38 ? std::to_string(context->user_id.value()) in main() 44 ? std::to_string(context->group_id.value()) in main() 52 for (auto& id : context->supplementary_group_ids.value()) { in main() 60 ? context->selinux_context.value() in main() 68 switch (context->seccomp_filter.value()) { in main() 86 std::cerr << "'" << cap_to_text(context->capabilities.value(), nullptr) in main()
|
/platform_testing/libraries/flag-helpers/junit/src_base/android/platform/test/flag/junit/ |
D | IFlagsValueProvider.java | 23 static boolean isBooleanValue(String value) { in isBooleanValue() argument 24 return "true".equals(value) || "false".equals(value); in isBooleanValue()
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | DataPoint.kt | 35 fun <T> of(value: T?, type: DataPointType<T>): DataPoint<T> { in asJson() 36 return if (value != null) { in asJson() 37 ValueDataPoint(type.ensureImmutable(value), type) in asJson() 61 data class ValueDataPoint<T> internal constructor(val value: T & Any, val type: DataPointType<T>) : 63 override fun asJson() = type.toJson(this.value) in <lambda>() 65 override fun toString(): String = "$value (${type.typeName})" in <lambda>()
|