Home
last modified time | relevance | path

Searched refs:Type (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/aosp14/frameworks/base/services/backup/java/com/android/server/backup/remote/
H A DRemoteResult.java45 @Type private final int mType;
54 return mType == Type.SUCCESS; in isPresent()
74 case Type.SUCCESS: in toStringDescription()
76 case Type.FAILED_TIMED_OUT: in toStringDescription()
78 case Type.FAILED_CANCELLED: in toStringDescription()
80 case Type.FAILED_THREAD_INTERRUPTED: in toStringDescription()
105 Type.SUCCESS,
106 Type.FAILED_TIMED_OUT,
107 Type.FAILED_CANCELLED,
108 Type.FAILED_THREAD_INTERRUPTED
[all …]
/aosp14/frameworks/base/libs/hwui/utils/
H A DMacros.h21 #define PREVENT_COPY_AND_ASSIGN(Type) \ argument
23 Type(const Type&) = delete; \
24 void operator=(const Type&) = delete
26 #define HASHABLE_TYPE(Type) \ argument
27 bool operator==(const Type& other) const; \
29 bool operator!=(const Type& other) const { return !(*this == other); } \
30 friend inline hash_t hash_type(const Type& entry) { return entry.hash(); }
32 #define REQUIRE_COMPATIBLE_LAYOUT(Type) \ argument
33 static_assert(std::is_standard_layout<Type>::value, #Type " must have standard layout")
/aosp14/frameworks/base/services/core/java/com/android/server/lights/
H A DLightsManager.java20 import android.hardware.light.V2_0.Type;
23 public static final int LIGHT_ID_BACKLIGHT = Type.BACKLIGHT;
24 public static final int LIGHT_ID_KEYBOARD = Type.KEYBOARD;
25 public static final int LIGHT_ID_BUTTONS = Type.BUTTONS;
26 public static final int LIGHT_ID_BATTERY = Type.BATTERY;
27 public static final int LIGHT_ID_NOTIFICATIONS = Type.NOTIFICATIONS;
28 public static final int LIGHT_ID_ATTENTION = Type.ATTENTION;
29 public static final int LIGHT_ID_BLUETOOTH = Type.BLUETOOTH;
30 public static final int LIGHT_ID_WIFI = Type.WIFI;
31 public static final int LIGHT_ID_COUNT = Type.COUNT;
/aosp14/frameworks/base/tools/processors/view_inspector/test/java/android/processor/view/inspector/
H A DInspectionCompanionGeneratorTest.java67 addProperty("byte", "getByte", Property.Type.BYTE); in testSimpleProperties()
68 addProperty("char", "getChar", Property.Type.CHAR); in testSimpleProperties()
70 addProperty("float", "getFloat", Property.Type.FLOAT); in testSimpleProperties()
71 addProperty("int", "getInt", Property.Type.INT); in testSimpleProperties()
72 addProperty("long", "getLong", Property.Type.LONG); in testSimpleProperties()
73 addProperty("short", "getShort", Property.Type.SHORT); in testSimpleProperties()
88 Property.Type.INT); in testNoAttributeId()
100 Property.Type.INT); in testSuppliedAttributeId()
111 Property.Type.INT_ENUM); in testIntEnum()
128 Property.Type.INT_FLAG); in testIntFlag()
[all …]
/aosp14/frameworks/base/libs/hwui/
H A DOutline.h29 enum class Type { None = 0, Empty = 1, Path = 2, RoundRect = 3 }; enum
31 Outline() : mShouldClip(false), mType(Type::None), mRadius(0), mAlpha(0.0f) {} in Outline()
41 mType = Type::RoundRect; in setRoundRect()
65 mType = Type::Path; in setPath()
72 mType = Type::Empty; in setEmpty()
78 mType = Type::None; in setNone()
83 bool isEmpty() const { return mType == Type::Empty; } in isEmpty()
98 if (mType == Type::RoundRect) { in getAsRoundRect()
107 if (mType == Type::None || mType == Type::Empty) return nullptr; in getPath()
112 Type getType() const { return mType; } in getType()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/camera2/utils/
H A DTypeReference.java27 import java.lang.reflect.Type;
51 private final Type mType;
87 public Type getType() { in getType()
91 private TypeReference(Type type) { in TypeReference()
108 public SpecializedBaseTypeReference(Type type) { in SpecializedBaseTypeReference()
167 private static final Class<?> getRawType(Type type) { in getRawType()
194 for (Type type : types) { in getRawType()
214 Type componentType = getComponentType(mType); in getComponentType()
221 private static Type getComponentType(Type type) { in getComponentType()
327 for (Type arg : p.getActualTypeArguments()) { in containsTypeVariable()
[all …]
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
H A DInteraction.java42 private final @Interaction.Type int mType;
45 Interaction.Type.TAP,
46 Interaction.Type.FLING,
47 Interaction.Type.PINCH,
48 Interaction.Type.KEY_EVENT})
49 public @interface Type { annotation in Interaction
75 return new Interaction(Interaction.Type.TAP, in newTap()
86 case Type.FLING: in getEvents()
89 case Type.PINCH: in getEvents()
91 case Type.TAP: in getEvents()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/
H A DValueParserTest.kt14 assertThat(Type.String.parseValue("test")).isEqualTo(Result.success("test"))
19 assertThat(Type.Int.parseValue("123")).isEqualTo(Result.success(123))
21 assertTrue(Type.Int.parseValue("not an Int").isFailure)
26 assertThat(Type.Float.parseValue("1.23")).isEqualTo(Result.success(1.23f))
28 assertTrue(Type.Int.parseValue("not a Float").isFailure)
33 assertThat(Type.Boolean.parseValue("true")).isEqualTo(Result.success(true))
34 assertThat(Type.Boolean.parseValue("false")).isEqualTo(Result.success(false))
36 assertTrue(Type.Boolean.parseValue("not a Boolean").isFailure)
41 val parseSquare = Type.Int.map { Rect(it, it, it, it) }
49 Type.Int.map {
H A DCommandParserTest.kt59 val param by parser.param("-p", valueParser = Type.Int)
66 val param by parser.param("-p", valueParser = Type.Int)
73 val param by parser.param("-p", valueParser = Type.Int)
79 val param by parser.require(parser.param("-p", valueParser = Type.Int))
86 val param by parser.require(parser.param("-p", valueParser = Type.Int))
92 val param by parser.require(parser.param("-p", valueParser = Type.Int))
116 val param by parser.param("-p", valueParser = Type.Int)
123 val param by parser.param("-p", valueParser = Type.Int)
137 parser.require(parser.param("-p", valueParser = Type.Int))
177 val optionalParam by parser.param("-p", valueParser = Type.Int)
[all …]
/aosp14/frameworks/base/core/jni/hwbinder/
H A DEphemeralStorage.cpp85 #define DEFINE_ALLOC_VECTOR_METHODS(Suffix,Type,NewType) \ argument
86 const hidl_vec<Type> *EphemeralStorage::allocTemporary ## Suffix ## Vector( \
87 JNIEnv *env, Type ## Array arrayObj) { \
88 Type ## Array obj = (Type ## Array)env->NewGlobalRef(arrayObj); \
90 const Type *val = env->Get ## NewType ## ArrayElements(obj, NULL); \
98 void *vecPtr = allocTemporaryStorage(sizeof(hidl_vec<Type>)); \
100 hidl_vec<Type> *vec = new (vecPtr) hidl_vec<Type>; \
101 vec->setToExternal(const_cast<Type *>(val), len); \
113 #define DEFINE_RELEASE_ARRAY_CASE(Suffix,Type,NewType) \ in DEFINE_ALLOC_VECTOR_METHODS() argument
117 (Type ## Array)item.mObj, \ in DEFINE_ALLOC_VECTOR_METHODS()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDisplayArea.java112 Type.checkChild(mType, Type.typeOf(child)); in onChildPositionChanged()
124 Type.checkSiblings(Type.typeOf(top), Type.typeOf(bottom)); in onChildPositionChanged()
310 final Type childType = Type.typeOf(child); in findMaxPositionForChildDisplayArea()
320 final Type childType = Type.typeOf(child); in findMinPositionForChildDisplayArea()
417 if (mType == Type.ABOVE_TASKS || mType == Type.BELOW_TASKS) { in getActivity()
425 if (mType == Type.ABOVE_TASKS || mType == Type.BELOW_TASKS) { in getTask()
433 if (mType == Type.ABOVE_TASKS || mType == Type.BELOW_TASKS) { in forAllActivities()
441 if (mType == Type.ABOVE_TASKS || mType == Type.BELOW_TASKS) { in forAllRootTasks()
806 enum Type { enum in DisplayArea
814 static void checkSiblings(Type bottom, Type top) { in checkSiblings()
[all …]
H A DInsetsPolicy.java45 import android.view.WindowInsets.Type;
46 import android.view.WindowInsets.Type.InsetsType;
65 | WindowInsets.Type.navigationBars()
66 | WindowInsets.Type.ime();
178 (showingTransientTypes & (Type.statusBars() | Type.navigationBars())) != 0, in showTransient()
322 int types = WindowInsets.Type.captionBar(); in enforceInsetsPolicyForTarget()
324 types |= WindowInsets.Type.ime(); in enforceInsetsPolicyForTarget()
482 if (!fake && isTransient(Type.statusBars())) { in getStatusControlTarget()
585 ? (Type.statusBars() | Type.navigationBars()) in updateSystemBars()
587 ? Type.navigationBars() in updateSystemBars()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DImeInsetsSourceConsumerTest.java92 final InsetsSourceControl ime = new InsetsSourceControl(ID_IME, WindowInsets.Type.ime(), in testImeVisibility()
99 mController.show(WindowInsets.Type.ime(), true /* fromIme */, null /* statsToken */); in testImeVisibility()
101 assertTrue((mController.getRequestedVisibleTypes() & WindowInsets.Type.ime()) != 0); in testImeVisibility()
122 WindowInsets.Type.ime(), mLeash, false, new Point(), Insets.NONE); in testImeRequestedVisibleAwaitingControl()
126 eq(WindowInsets.Type.ime()), eq(true) /* show */, eq(true) /* fromIme */, in testImeRequestedVisibleAwaitingControl()
129 eq(WindowInsets.Type.ime()), eq(false) /* show */, eq(true) /* fromIme */, in testImeRequestedVisibleAwaitingControl()
156 mController.show(WindowInsets.Type.ime(), true /* fromIme */, in verifyImeGetAndClearSkipAnimationOnce()
162 WindowInsets.Type.ime(), mLeash, false, new Point(), Insets.NONE)); in verifyImeGetAndClearSkipAnimationOnce()
171 verify(mController).applyAnimation(eq(WindowInsets.Type.ime()), in verifyImeGetAndClearSkipAnimationOnce()
179 mController.show(WindowInsets.Type.ime(), true /* fromIme */, in verifyImeGetAndClearSkipAnimationOnce()
[all …]
/aosp14/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
H A DInspectablePropertyProcessor.java317 final Property.Type accessorType = in determinePropertyType()
421 return Property.Type.GRAVITY; in determinePropertyType()
475 return Property.Type.BOOLEAN; in convertTypeMirrorToPropertyType()
477 return Property.Type.BYTE; in convertTypeMirrorToPropertyType()
479 return Property.Type.CHAR; in convertTypeMirrorToPropertyType()
481 return Property.Type.DOUBLE; in convertTypeMirrorToPropertyType()
483 return Property.Type.FLOAT; in convertTypeMirrorToPropertyType()
485 return Property.Type.INT; in convertTypeMirrorToPropertyType()
487 return Property.Type.LONG; in convertTypeMirrorToPropertyType()
489 return Property.Type.SHORT; in convertTypeMirrorToPropertyType()
[all …]
H A DInspectableClassModel.java91 private final @NonNull Type mType;
102 return new Accessor(name, Type.FIELD); in ofField()
114 return new Accessor(name, Type.GETTER); in ofGetter()
117 public Accessor(@NonNull String name, @NonNull Type type) { in Accessor()
128 public Type getType() { in getType()
152 public enum Type { enum in InspectableClassModel.Accessor
175 private final @NonNull Type mType;
181 public Property(@NonNull String name, @NonNull Accessor accessor, @NonNull Type type) { in Property()
220 public Type getType() { in getType()
260 public enum Type { enum in InspectableClassModel.Property
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerEvent.java47 public enum Type { enum in SoundTriggerEvent.ServiceEvent
53 private final Type mType;
57 public ServiceEvent(Type type) { in ServiceEvent()
61 public ServiceEvent(Type type, String packageName) { in ServiceEvent()
65 public ServiceEvent(Type type, String packageName, String errorString) { in ServiceEvent()
85 public enum Type { enum in SoundTriggerEvent.SessionEvent
110 private final Type mType;
113 public SessionEvent(Type type, UUID modelUuid, String errorString) { in SessionEvent()
119 public SessionEvent(Type type, UUID modelUuid) { in SessionEvent()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
H A DDomainVerificationEnforcerTest.kt136 type: Type,
144 type: Type,
168 Type.SELECTION_QUERENT,
177 Type.SELECTOR,
212 service(Type.QUERENT, "getInfo") {
282 val type: Type,
377 Type.INTERNAL -> internal()
378 Type.QUERENT -> approvedQuerent()
379 Type.VERIFIER -> approvedVerifier()
383 Type.LEGACY_QUERENT -> legacyQuerent()
[all …]
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DType.java51 public class Type extends BaseObj { class
233 Type(long id, RenderScript rs) { in Type() method in Type
268 static public Type createX(RenderScript rs, Element e, int dimX) { in createX()
274 Type t = new Type(id, rs); in createX()
292 static public Type createXY(RenderScript rs, Element e, int dimX, int dimY) { in createXY()
298 Type t = new Type(id, rs); in createXY()
318 static public Type createXYZ(RenderScript rs, Element e, int dimX, int dimY, int dimZ) { in createXYZ()
324 Type t = new Type(id, rs); in createXYZ()
446 public Type create() { in create()
484 Type t = new Type(id, mRS); in create()
/aosp14/system/core/fastboot/
H A Dresult.h32 enum Type { NETWORK_SERIAL_WRONG_PREFIX = 1, NETWORK_SERIAL_WRONG_ADDRESS = 2 }; enum
34 FastbootError(Type&& type) : type_(std::forward<Type>(type)) {} in FastbootError()
36 Type value() const { return type_; } in value()
37 operator Type() const { return value(); } in Type() function
41 Type type_;
/aosp14/frameworks/base/tests/WindowInsetsTests/src/com/google/android/test/windowinsetstests/
H A DControllerActivity.java24 import android.view.WindowInsets.Type;
69 mToggleStatus.setOnCheckedChangeListener(new ToggleListener(Type.statusBars())); in onCreate()
71 mSeekStatus.setOnSeekBarChangeListener(new SeekBarListener(Type.statusBars())); in onCreate()
79 mToggleIme.setOnCheckedChangeListener(new ToggleListener(Type.ime())); in onCreate()
81 mSeekIme.setOnSeekBarChangeListener(new SeekBarListener(Type.ime())); in onCreate()
91 return types == 0 ? "none" : WindowInsets.Type.toString(types); in insetsTypesToString()
97 updateWidgets(insets, Type.statusBars(), mToggleStatus, mSeekStatus); in onApplyWindowInsets()
99 updateWidgets(insets, Type.ime(), mToggleIme, mSeekIme); in onApplyWindowInsets()
104 final Insets gestureInsets = insets.getInsets(Type.systemGestures()); in onApplyWindowInsets()
124 private final @Type.InsetsType int mTypes;
[all …]
/aosp14/frameworks/base/tools/codegen/src/com/android/codegen/
H A DGenerators.kt55 type == "String" -> ConstDef.Type.STRING
56 flag -> ConstDef.Type.INT_FLAGS
57 else -> ConstDef.Type.INT
139 if (!isMethodGenerationSuppressed(metodName, Type)) {
411 "static $Parcelling<$Type> $sParcelling =" {
500 +"$Type $_name = (flg & $fieldBit) != 0;"
531 !"$Type $_name = "
541 !"$Type $_name = "
665 Type == "int" || Type == "byte" -> +"$internalGetter;"
732 +"$Type $_name = $name;"
[all …]
H A DFieldInfo.kt26 val Type = typeAst.asString() regex
27 val FieldClass = Type.takeWhile { it != '<' }
28 val isPrimitive = Type in PRIMITIVE_TYPES
94 val isArray = Type.endsWith("[]")
149 val SetterParamType = if (isArray) "$FieldInnerType..." else Type
175 Type == "String" -> memberRef("android.text.TextUtils.length") + "($name)"
176 Type == "CharSequence" -> "$name.length()"
191 isArray || Type == "CharSequence" -> "$sizeExpr == 0"
199 Type in PRIMITIVE_TYPES -> "$internalGetter == $that"
223 isStrongBinder(Type) -> "StrongBinder"
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
H A DClipboardModel.kt33 val type: Type,
54 if (_bitmap == null && type == Type.IMAGE && uri != null) {
91 private fun getType(context: Context, item: ClipData.Item): Type {
93 Type.TEXT
96 Type.IMAGE
98 Type.URI
101 Type.OTHER
106 enum class Type {
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/decor/
H A DScreenDecorCommand.kt23 import com.android.systemui.statusbar.commandline.Type
38 valueParser = Type.Boolean,
48 valueParser = Type.String.map { it.toColorIntOrNull() }
87 valueParser = Type.Int,
96 valueParser = Type.Int,
108 valueParser = Type.String.map { it.toPathOrNull() }
118 valueParser = Type.Float,
130 valueParser = Type.Float,
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
H A DSoundTriggerMiddlewareLogging.java139 ServiceEvent.Type.LIST_MODULE, in listModules()
144 ServiceEvent.Type.LIST_MODULE, in listModules()
166 ServiceEvent.Type.ATTACH, in attach()
174 ServiceEvent.Type.ATTACH, in attach()
559 private final Type mType;
565 public enum Type { enum in SoundTriggerMiddlewareLogging.ServiceEvent
613 public enum Type { enum in SoundTriggerMiddlewareLogging.SessionEvent
630 private final Type mType;
640 public static SessionEvent createForReturn(Type type, in createForReturn()
645 public static SessionEvent createForVoid(Type type, Object... params) { in createForVoid()
[all …]

12345678910>>...18