/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | Transform.kt | 29 class Transform private constructor(val type: Int?, val matrix: Matrix33) { constant in android.tools.traces.surfaceflinger.Transform 35 val isSimpleRotation: Boolean = !(type?.isFlagSet(ROT_INVALID_VAL) ?: false) 60 get() = type?.isFlagSet(SCALE_VAL) ?: false 62 get() = type?.isFlagSet(TRANSLATE_VAL) ?: false 64 get() = type?.isFlagSet(ROTATE_VAL) ?: false 67 if (type == null) { in getRotation() 72 type.isFlagClear(SCALE_VAL or ROTATE_VAL or TRANSLATE_VAL) -> Rotation.ROTATION_0 in getRotation() 73 type.isFlagSet(ROT_90_VAL) -> Rotation.ROTATION_90 in getRotation() 74 type.isFlagSet(FLIP_V_VAL or FLIP_H_VAL) -> Rotation.ROTATION_180 in getRotation() 75 type.isFlagSet(ROT_90_VAL or FLIP_V_VAL or FLIP_H_VAL) -> Rotation.ROTATION_270 in getRotation() [all …]
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/ |
D | LockscreenRule.kt | 33 class LockscreenRule(private val type: LockscreenType) : TestWatcher() { constant in android.platform.helpers.rules.LockscreenRule 36 when (type) { in starting() 37 PIN -> setLockscreen(type = PIN, code = VALID_PIN) in starting() 38 NONE -> setLockscreen(type = NONE) in starting() 46 if (type == PIN) { in finished() 57 type: LockscreenType, 60 ): Unit = LockscreenUtils.setLockscreen(type, code, expectedLocked)
|
/platform_testing/libraries/flicker/utils/src/android/tools/scripts/ |
D | ProtoDefToKotlinVals.kt | 31 fun mapProtoTypeToKotlinType(type: String): String? { in mapProtoTypeToKotlinType() 34 if (mapOfKnownProtoToKotlinTypes.containsKey(type)) return mapOfKnownProtoToKotlinTypes[type] in mapProtoTypeToKotlinType() 36 if (type.contains("Proto")) return type.removeSuffix("Proto") in mapProtoTypeToKotlinType() 38 return type in mapProtoTypeToKotlinType()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/ |
D | ResourceRepository.java | 130 @NotNull ResourceFolderType type, in add() 134 List<ResourceFolder> list = mFolderMap.get(type); in add() 139 ResourceFolder cf = new ResourceFolder(type, config, folder, this); in add() 142 mFolderMap.put(type, list); in add() 159 ResourceFolder cf = new ResourceFolder(type, config, folder, this); in add() 174 public ResourceItem getResourceItem(@NotNull ResourceType type, @NotNull String name) { in getResourceItem() argument 178 ResourceItem item = findDeclaredResourceItem(type, name); in getResourceItem() 185 Map<String, ResourceItem> map = mResourceMap.get(type); in getResourceItem() 193 switch (type) { in getResourceItem() 229 mResourceMap.put(type, map); in getResourceItem() [all …]
|
D | FrameworkResources.java | 116 ResourceType type; in loadPublicResources() local 118 type = lastType; in loadPublicResources() 120 type = ResourceType.fromXmlValue(typeName); in loadPublicResources() 121 lastType = type; in loadPublicResources() 124 if (type != null) { in loadPublicResources() 126 Map<String, ResourceItem> map = mResourceMap.get(type); in loadPublicResources() 132 List<ResourceItem> publicList = mPublicResourceMap.get(type); in loadPublicResources() 141 switch (type) { in loadPublicResources() 166 mPublicResourceMap.put(type, publicList); in loadPublicResources() 186 for (ResourceType type : ResourceType.values()) { in loadPublicResources() [all …]
|
D | MultiResourceFile.java | 99 for (ResourceType type : mResourceTypeList) { in update() 102 … if (!mResourceItems.get(type).keySet().equals(oldResourceItems.get(type).keySet())) { in update() 120 for (ResourceType type : mResourceTypeList) { in updateResourceItems() 121 ResourceValueMap list = mResourceItems.get(type); in updateResourceItems() 126 ResourceItem item = repository.getResourceItem(type, res.getName()); in updateResourceItems() 180 public ResourceValue getValue(ResourceType type, String name) { in getValue() argument 182 ResourceValueMap list = mResourceItems.get(type); in getValue()
|
D | IdGeneratingResourceFile.java | 56 … public IdGeneratingResourceFile(TestFileWrapper file, ResourceFolder folder, ResourceType type) { in IdGeneratingResourceFile() argument 59 mFileType = type; in IdGeneratingResourceFile() 105 public ResourceValue getValue(ResourceType type, String name) { in getValue() argument 107 if (type != mFileType && type != ResourceType.ID) { in getValue() 112 if (type == mFileType && name.equals(mFileName)) { in getValue()
|
D | ResourceItem.java | 71 public ResourceValue getResourceValue(ResourceType type, FolderConfiguration referenceConfig) { in getResourceValue() argument 78 return match.getValue(type, mName); in getResourceValue()
|
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/ |
D | ReportLog.java | 64 Metric(String source, String message, double value, ResultType type, ResultUnit unit) { in Metric() argument 65 this(source, message, new double[] { value }, type, unit); in Metric() 79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument 101 mType = type; in Metric() 145 ResultType type = ResultType.parseReportString( in parse() local 161 return new Metric(source, message, values, type, unit); in parse() 177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument 184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument 192 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument 199 public void addValue(String source, String message, double value, ResultType type, in addValue() argument [all …]
|
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/ |
D | SettingsSoundsHelperImpl.java | 159 String type = ""; in setSound() local 162 type = "Default alarm sound"; in setSound() 165 type = "Default notification sound"; in setSound() 168 type = "Phone ringtone"; in setSound() 171 BySelector typeSelector = By.text(type); in setSound() 180 String.format("Scroll on sound to find %s", type)); in setSound() 182 getSpectatioUiUtil().validateUiObject(object, String.format("sound type %s", type)); in setSound() 209 String type = ""; in getSound() local 212 type = "Default alarm sound"; in getSound() 215 type = "Default notification sound"; in getSound() [all …]
|
/platform_testing/libraries/motion/src/platform/test/motion/golden/ |
D | JsonGoldenSerializer.kt | 86 val type = typeRegistry[jsonObject.optString(KEY_FEATURE_TYPE)] ?: unknownType in featureFromJson() constant 89 jsonObject.getJSONArray(KEY_FEATURE_DATAPOINTS).convert(JSONArray::get, type::fromJson) in featureFromJson() 100 .map { it.type.typeName } in featureToJson() 135 val type = dataPoint.type in <lambda>() constant 136 val alreadyRegisteredType = put(type.typeName, type) in <lambda>() 137 if (alreadyRegisteredType != null && alreadyRegisteredType != type) { in <lambda>()
|
D | DataPoint.kt | 35 fun <T> of(value: T?, type: DataPointType<T>): DataPoint<T> { 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>()
|
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/ |
D | ValidateUiElement.java | 75 String type = in deserialize() local 78 validateType(type); in deserialize() 80 if (JsonConfigConstants.CLICKABLE.equals(type) in deserialize() 81 || JsonConfigConstants.SCROLLABLE.equals(type)) { in deserialize() 83 return new UiElement(type, flag); in deserialize() 86 if (JsonConfigConstants.MULTIPLE.equals(type)) { in deserialize() 112 if (JsonConfigConstants.HAS_ANCESTOR.equals(type)) { in deserialize() 121 if (JsonConfigConstants.HAS_DESCENDANT.equals(type)) { in deserialize() 139 return new UiElement(type, value, pkg); in deserialize() 245 private void validateType(String type) { in validateType() argument [all …]
|
D | ValidateWorkflowTask.java | 68 String type = in deserialize() local 73 workflowTaskType = SupportedWorkFlowTasks.valueOf(type); in deserialize() 75 throwRuntimeException("Workflow Task Type", type, jsonObject, "Not Supported"); in deserialize() 96 type, in deserialize() 112 type, in deserialize() 121 throwRuntimeException("Workflow Task Type", type, jsonObject, "Not Supported"); in deserialize() 152 return new WorkflowTask(name, type, config, repeatCount, scrollConfig, swipeConfig); in deserialize()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/wm/ |
D | WmTransitionData.kt | 29 val type: TransitionType? = null, constant in android.tools.traces.wm.WmTransitionData 49 wmData.type ?: type,
|
D | WindowLayoutParams.kt | 29 val type: Int = 0, constant in android.tools.traces.wm.WindowLayoutParams 60 val isValidNavBarType: Boolean = this.type == TYPE_NAVIGATION_BAR 66 if (type != other.type) return false in equals() 102 var result = type in hashCode() 137 return "WindowLayoutParams(type=$type, x=$x, y=$y, width=$width, height=$height, " + in toString() 161 type: Int, in from() 193 type, in from()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/config/desktopmode/ |
D | Components.kt | 36 if (isSupported(scenarioInstance.type)) { in <lambda>() 44 private fun isSupported(type: ScenarioId): Boolean { in <lambda>() 45 return when (type) { in <lambda>()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/events/ |
D | CujTrace.kt | 38 val startEvents = sortedCujEvents.filter { it.type == CujEvent.Companion.Type.START } in from() 39 val endEvents = sortedCujEvents.filter { it.type == CujEvent.Companion.Type.END } in from() 41 sortedCujEvents.filter { it.type == CujEvent.Companion.Type.CANCEL } in from() 62 val canceled = closingEvent.type == CujEvent.Companion.Type.CANCEL in from()
|
D | FocusEvent.kt | 37 val type: Type, constant 54 return this.type == Type.GAINED in hasFocus()
|
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/ |
D | UiElement.java | 70 public UiElement(String type, boolean flag) { in UiElement() argument 71 mType = type; in UiElement() 75 public UiElement(String type, String value, String pkg) { in UiElement() argument 76 mType = type; in UiElement() 86 public UiElement(String type, UiElement relative, int maxDepth) { in UiElement() argument 87 mType = type; in UiElement() 88 switch (type) { in UiElement()
|
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/ |
D | KotlinMockito.kt | 24 inline fun <T> any(type: Class<T>): T { in <lambda>() 25 Mockito.any(type) in <lambda>()
|
/platform_testing/libraries/system-helpers/settings-helper/src/android/system/helpers/ |
D | SettingsHelper.java | 262 public String getStringSetting(SettingsType type, String sName) { in getStringSetting() argument 263 switch (type) { in getStringSetting() 281 public int getIntSetting(SettingsType type, String sName) throws SettingNotFoundException { in getIntSetting() argument 282 switch (type) { in getIntSetting() 299 public void setStringSetting(SettingsType type, String sName, String value) in setStringSetting() argument 301 switch (type) { in setStringSetting() 321 public void setIntSetting(SettingsType type, String sName, int value) in setIntSetting() argument 323 switch (type) { in setIntSetting() 346 public boolean verifyToggleSetting(SettingsType type, String settingAction, in verifyToggleSetting() argument 349 type, settingAction, Pattern.compile(settingName), internalName, true); in verifyToggleSetting() [all …]
|
/platform_testing/libraries/automotive-helpers/dial-app-helper/src/android/platform/helpers/ |
D | ContactDetailsHelperImpl.java | 103 private UiObject2 getNumberByContactType(String type) { in getNumberByContactType() argument 111 getUiElementFromConfig(type), in getNumberByContactType() 112 String.format("scroll to find %s", type)); in getNumberByContactType() 113 getSpectatioUiUtil().validateUiObject(contactByType, String.format("Given type %s", type)); in getNumberByContactType()
|
/platform_testing/libraries/flicker/src/android/tools/flicker/junit/ |
D | RuleContainer.kt | 78 if (ruleEntry.type == RuleEntry.TYPE_TEST_RULE) { in apply() 100 internal class RuleEntry(val rule: Any, val type: Int, order: Int?) { constant in android.tools.flicker.junit.RuleContainer.RuleEntry 118 return if (result != 0) result else o1.type - o2.type in compare()
|
/platform_testing/libraries/runner/src/main/java/platform/test/runner/parameterized/ |
D | AndroidParameterizedRunner.java | 31 public AndroidParameterizedRunner(Class<?> type, int parametersIndex, String name) in AndroidParameterizedRunner() argument 33 super(type); in AndroidParameterizedRunner()
|