Home
last modified time | relevance | path

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

12345678910>>...30

/frameworks/av/media/libmedia/include/media/
DMetadata.h49 typedef int32_t Type; typedef
50 typedef SortedVector<Type> Filter;
52 static const Type kAny = 0;
55 static const Type kPauseAvailable = 1; // Boolean
56 static const Type kSeekBackwardAvailable = 2; // Boolean
57 static const Type kSeekForwardAvailable = 3; // Boolean
58 static const Type kSeekAvailable = 4; // Boolean
61 static const Type kTitle = 5; // String
62 static const Type kComment = 6; // String
63 static const Type kCopyright = 7; // String
[all …]
DMediaResource.h32 using Type = MediaResourceType;
36 MediaResource(Type type, int64_t value);
37 MediaResource(Type type, SubType subType, int64_t value);
38 MediaResource(Type type, const std::vector<int8_t> &id, int64_t value);
47 inline static const char *asString(MediaResource::Type i, const char *def = "??") {
49 case MediaResource::Type::kUnspecified: return "unspecified";
50 case MediaResource::Type::kSecureCodec: return "secure-codec";
51 case MediaResource::Type::kNonSecureCodec: return "non-secure-codec";
52 case MediaResource::Type::kGraphicMemory: return "graphic-memory";
53 case MediaResource::Type::kCpuBoost: return "cpu-boost";
[all …]
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/navigationbar/
DNavigationBarViewFactory.java38 private static final ArrayMap<Type, Integer> sLayoutMap = setupLayoutMapping();
40 private static ArrayMap<Type, Integer> setupLayoutMapping() { in setupLayoutMapping()
41 ArrayMap<Type, Integer> map = new ArrayMap<>(); in setupLayoutMapping()
42 map.put(Type.TOP, R.layout.car_top_navigation_bar); in setupLayoutMapping()
43 map.put(Type.TOP_UNPROVISIONED, R.layout.car_top_navigation_bar_unprovisioned); in setupLayoutMapping()
44 map.put(Type.BOTTOM, R.layout.car_navigation_bar); in setupLayoutMapping()
45 map.put(Type.BOTTOM_UNPROVISIONED, R.layout.car_navigation_bar_unprovisioned); in setupLayoutMapping()
46 map.put(Type.LEFT, R.layout.car_left_navigation_bar); in setupLayoutMapping()
47 map.put(Type.LEFT_UNPROVISIONED, R.layout.car_left_navigation_bar_unprovisioned); in setupLayoutMapping()
48 map.put(Type.RIGHT, R.layout.car_right_navigation_bar); in setupLayoutMapping()
[all …]
/frameworks/minikin/include/minikin/
DMacros.h25 #define MINIKIN_PREVENT_COPY_AND_ASSIGN(Type) \ argument
26 Type(const Type&) = delete; \
27 Type& operator=(const Type&) = delete
29 #define MINIKIN_PREVENT_COPY_ASSIGN_AND_MOVE(Type) \ argument
30 Type(const Type&) = delete; \
31 Type& operator=(const Type&) = delete; \
32 Type(Type&&) = delete; \
33 Type& operator=(Type&&) = delete
/frameworks/base/services/backup/java/com/android/server/backup/remote/
DRemoteResult.java36 public static final RemoteResult FAILED_TIMED_OUT = new RemoteResult(Type.FAILED_TIMED_OUT, 0);
37 public static final RemoteResult FAILED_CANCELLED = new RemoteResult(Type.FAILED_CANCELLED, 0);
39 new RemoteResult(Type.FAILED_THREAD_INTERRUPTED, 0);
42 return new RemoteResult(Type.SUCCESS, value); in of()
45 @Type private final int mType;
48 private RemoteResult(@Type int type, long value) { in RemoteResult()
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()
[all …]
/frameworks/base/libs/hwui/utils/
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")
/frameworks/base/services/core/java/com/android/server/lights/
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;
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DStubCallMethodAdapter.java24 import org.objectweb.asm.Type;
38 private Type mReturnType;
51 public StubCallMethodAdapter(MethodVisitor mv, String methodName, Type returnType, in StubCallMethodAdapter()
79 int sort = mReturnType != null ? mReturnType.getSort() : Type.VOID; in generateInvoke()
81 case Type.VOID: in generateInvoke()
89 case Type.BOOLEAN: in generateInvoke()
90 case Type.CHAR: in generateInvoke()
91 case Type.BYTE: in generateInvoke()
92 case Type.SHORT: in generateInvoke()
93 case Type.INT: in generateInvoke()
[all …]
DReplaceMethodCallsAdapter.java25 import org.objectweb.asm.Type;
55 private static final String JAVA_LOCALE_CLASS = Type.getInternalName(java.util.Locale.class);
56 private static final Type STRING = Type.getType(String.class);
58 private static final String JAVA_LANG_SYSTEM = Type.getInternalName(System.class);
79 private final String STRING_TO_STRING = Type.getMethodDescriptor(STRING, STRING); in METHOD_REPLACERS.add()
81 Type.getMethodDescriptor(Type.getType(Locale.class)); in METHOD_REPLACERS.add()
109 mi.owner = Type.getInternalName(System_Delegate.class); in METHOD_REPLACERS.add()
123 mi.owner = Type.getInternalName(System_Delegate.class); in METHOD_REPLACERS.add()
135 mi.owner = Type.getInternalName(System_Delegate.class); in METHOD_REPLACERS.add()
143 Type.getMethodDescriptor(Type.getType(Map.Entry.class)); in METHOD_REPLACERS.add()
[all …]
/frameworks/rs/cpp/
DType.cpp31 using android::RSC::Type;
34 void Type::calcElementCount() { in calcElementCount()
71 Type::Type(void *id, sp<RS> rs) : BaseObj(id, rs) { in Type() function in Type
81 void Type::updateFromNative() { in updateFromNative()
112 sp<const Type> Type::create(const sp<RS>& rs, const sp<const Element>& e, uint32_t dimX, uint32_t d… in create()
114 Type *t = new Type(id, rs); in create()
129 Type::Builder::Builder(sp<RS> rs, sp<const Element> e) { in Builder()
140 void Type::Builder::setX(uint32_t value) { in setX()
147 void Type::Builder::setY(uint32_t value) { in setY()
154 void Type::Builder::setZ(uint32_t value) { in setZ()
[all …]
/frameworks/base/tools/processors/view_inspector/test/java/android/processor/view/inspector/
DInspectionCompanionGeneratorTest.java66 addProperty("boolean", "getBoolean", Property.Type.BOOLEAN); in testSimpleProperties()
67 addProperty("byte", "getByte", Property.Type.BYTE); in testSimpleProperties()
68 addProperty("char", "getChar", Property.Type.CHAR); in testSimpleProperties()
69 addProperty("double", "getDouble", Property.Type.DOUBLE); 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()
75 addProperty("object", "getObject", Property.Type.OBJECT); in testSimpleProperties()
76 addProperty("color", "getColor", Property.Type.COLOR); in testSimpleProperties()
[all …]
/frameworks/base/libs/hwui/
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()
35 if (mType == Type::RoundRect && left == mBounds.left && right == mBounds.right && in setRoundRect()
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()
93 return mShouldClip && (mType == Type::RoundRect); in willClip()
102 if (mType == Type::RoundRect) { in getAsRoundRect()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_type.cpp180 static const clang::Type *TypeExportableHelper(
181 const clang::Type *T,
182 llvm::SmallPtrSet<const clang::Type*, 8>& SPS,
208 static const clang::Type *ConstantArrayTypeExportableHelper( in ConstantArrayTypeExportableHelper()
210 llvm::SmallPtrSet<const clang::Type*, 8>& SPS, in ConstantArrayTypeExportableHelper() argument
216 const clang::Type *ElementType = GetConstantArrayElementType(CAT); in ConstantArrayTypeExportableHelper()
226 const clang::Type *BaseElementType = GetExtVectorElementType(EVT); in ConstantArrayTypeExportableHelper()
257 static const clang::Type *TypeExportableHelper( in TypeExportableHelper()
258 clang::Type const *T, in TypeExportableHelper()
259 llvm::SmallPtrSet<clang::Type const *, 8> &SPS, in TypeExportableHelper()
[all …]
Dslang_rs_export_type.h38 inline const clang::Type* GetCanonicalType(const clang::Type* T) { in GetCanonicalType()
45 inline const clang::Type* GetCanonicalType(clang::QualType QT) { in GetCanonicalType()
49 inline const clang::Type* GetExtVectorElementType(const clang::ExtVectorType *T) { in GetExtVectorElementType()
56 inline const clang::Type* GetPointeeType(const clang::PointerType *T) { in GetPointeeType()
63 inline const clang::Type* GetConstantArrayElementType(const clang::ConstantArrayType *T) { in GetConstantArrayElementType()
72 class Type; variable
215 mutable llvm::Type *mLLVMType;
233 const clang::Type *T,
237 static llvm::StringRef GetTypeName(const clang::Type *T);
247 virtual llvm::Type *convertToLLVMType() const = 0;
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DTelephonyEventBuilder.java42 import com.android.internal.telephony.nano.TelephonyProto.TelephonyEvent.Type;
68 mEvent.type = TelephonyEvent.Type.SETTINGS_CHANGED; in setSettings()
74 mEvent.type = TelephonyEvent.Type.RIL_SERVICE_STATE_CHANGED; in setServiceState()
80 mEvent.type = TelephonyEvent.Type.IMS_CONNECTION_STATE_CHANGED; in setImsConnectionState()
86 mEvent.type = TelephonyEvent.Type.IMS_CAPABILITIES_CHANGED; in setImsCapabilities()
92 mEvent.type = TelephonyEvent.Type.DATA_STALL_ACTION; in setDataStallRecoveryAction()
98 mEvent.type = TelephonyEvent.Type.SIGNAL_STRENGTH; in setSignalStrength()
104 mEvent.type = TelephonyEvent.Type.DATA_CALL_SETUP; in setSetupDataCall()
110 mEvent.type = TelephonyEvent.Type.DATA_CALL_SETUP_RESPONSE; in setSetupDataCallResponse()
116 mEvent.type = TelephonyEvent.Type.DATA_CALL_DEACTIVATE; in setDeactivateDataCall()
[all …]
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
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
58 return new Interaction(Interaction.Type.FLING, new float[]{startX, endX}, in newFling()
63 return new Interaction(Interaction.Type.FLING, in newFlingDown()
69 return new Interaction(Interaction.Type.FLING, in newFlingUp()
75 return new Interaction(Interaction.Type.TAP, in newTap()
[all …]
/frameworks/base/core/java/android/hardware/camera2/utils/
DTypeReference.java26 import java.lang.reflect.Type;
50 private final Type mType;
86 public Type getType() { in getType()
90 private TypeReference(Type type) { in TypeReference()
107 public SpecializedBaseTypeReference(Type type) { in SpecializedBaseTypeReference()
143 public static TypeReference<?> createSpecializedTypeReference(Type type) { in createSpecializedTypeReference()
166 private static final Class<?> getRawType(Type type) { in getRawType()
188 private static final Class<?> getRawType(Type[] types) { in getRawType()
193 for (Type type : types) { in getRawType()
213 Type componentType = getComponentType(mType); in getComponentType()
[all …]
/frameworks/rs/
DrsType.cpp28 Type::Type(Context *rsc) : ObjectBase(rsc) { in Type() function in android::renderscript::Type
33 void Type::preDestroy() const { in preDestroy()
43 Type::~Type() { in ~Type()
47 void Type::operator delete(void* ptr) { in operator delete()
49 Type *t = (Type*) ptr; in operator delete()
54 void Type::clear() { in clear()
74 void Type::compute() { in compute()
151 void Type::dumpLOGV(const char *prefix) const { in dumpLOGV()
164 void Type::serialize(Context *rsc, OStream *stream) const { in serialize()
179 Type *Type::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
[all …]
DrsType.h36 class Type : public ObjectBase {
66 Type * createTex2D(const Element *, size_t w, size_t h, bool mip);
108 static Type *createFromStream(Context *rsc, IStream *stream);
110 ObjectBaseRef<Type> cloneAndResize1D(Context *rsc, uint32_t dimX) const;
111 ObjectBaseRef<Type> cloneAndResize2D(Context *rsc, uint32_t dimX, uint32_t dimY) const;
113 static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e,
116 static Type* getType(Context *rsc, const Element *e, in getType()
118 ObjectBaseRef<Type> type = getTypeRef(rsc, e, params, len); in getType()
123 …static ObjectBaseRef<Type> getTypeRef(Context *rsc, const Element *e, uint32_t dimX, uint32_t dimY…
152 virtual ~Type();
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_variation/
Dstdout.txt.expect17 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
18 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
19 OperandType type2(Type::TENSOR_FLOAT32, {1});
20 OperandType type3(Type::INT32, {});
90 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
91 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
92 OperandType type2(Type::TENSOR_FLOAT32, {1});
93 OperandType type3(Type::INT32, {});
165 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
166 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
[all …]
/frameworks/av/services/mediaresourcemanager/test/
DResourceManagerService_test.cpp242 resources1.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in addResource()
244 resources1.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 200)); in addResource()
246 resources11.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 200)); in addResource()
251 resources2.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in addResource()
252 resources2.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 300)); in addResource()
258 resources3.push_back(MediaResource(MediaResource::Type::kSecureCodec, 1)); in addResource()
259 resources3.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 100)); in addResource()
281 resources1.push_back(MediaResource(MediaResource::Type::kDrmSession, -100)); in testCombineResourceWithNegativeValues()
282 resources1.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, -100)); in testCombineResourceWithNegativeValues()
298 resources1.push_back(MediaResource(MediaResource::Type::kDrmSession, INT64_MAX)); in testCombineResourceWithNegativeValues()
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_implicit_variation/
Dstdout.txt.expect17 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
18 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
19 OperandType type2(Type::TENSOR_FLOAT32, {1});
20 OperandType type3(Type::INT32, {});
90 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
91 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
92 OperandType type2(Type::TENSOR_FLOAT32, {1});
93 OperandType type3(Type::INT32, {});
165 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
166 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
[all …]
/frameworks/ml/nn/tools/test_generator/tests/P_naming/
Dstdout.txt.expect17 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
18 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
19 OperandType type2(Type::TENSOR_FLOAT32, {1});
20 OperandType type3(Type::INT32, {});
90 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
91 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
92 OperandType type2(Type::TENSOR_FLOAT32, {1});
93 OperandType type3(Type::INT32, {});
165 OperandType type0(Type::TENSOR_FLOAT32, {1, 2, 2, 2});
166 OperandType type1(Type::TENSOR_FLOAT32, {2, 2, 2, 2});
[all …]
/frameworks/av/media/libmedia/
DMediaResource.cpp26 MediaResource::MediaResource(Type type, int64_t value) { in MediaResource()
32 MediaResource::MediaResource(Type type, SubType subType, int64_t value) { in MediaResource()
38 MediaResource::MediaResource(Type type, const std::vector<int8_t> &id, int64_t value) { in MediaResource()
48 secure ? Type::kSecureCodec : Type::kNonSecureCodec, in CodecResource()
55 return MediaResource(Type::kGraphicMemory, value); in GraphicMemoryResource()
60 return MediaResource(Type::kCpuBoost, 1); in CpuBoostResource()
65 return MediaResource(Type::kBattery, SubType::kVideoCodec, 1); in VideoBatteryResource()
70 return MediaResource(Type::kDrmSession, id, value); in DrmSessionResource()
/frameworks/base/core/jni/hwbinder/
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 …]

12345678910>>...30