Home
last modified time | relevance | path

Searched refs:Value (Results 1 – 25 of 143) sorted by relevance

123456

/frameworks/base/media/mca/filterfw/native/core/
Dvalue.h32 } Value; typedef
35 int GetIntValue(Value value);
36 float GetFloatValue(Value value);
37 const char* GetStringValue(Value value);
38 const char* GetBufferValue(Value value);
39 char* GetMutableBufferValue(Value value);
40 int* GetIntArrayValue(Value value);
41 float* GetFloatArrayValue(Value value);
44 int ValueIsNull(Value value);
45 int ValueIsInt(Value value);
[all …]
Dvalue.cpp34 POD GetPODValue(Value value) { in GetPODValue()
39 PTR GetPtrValue(Value value) { in GetPtrValue()
44 Value MakePODValue(POD value) { in MakePODValue()
45 Value result; in MakePODValue()
54 Value MakePtrValue(const BASE* values, int count) { in MakePtrValue()
55 Value result; in MakePtrValue()
64 int SetPODValue(Value* value, POD new_value) { in SetPODValue()
78 int SetPtrValue(Value* value, const BASE* new_values, int count) { in SetPtrValue()
92 int GetIntValue(Value value) { in GetIntValue()
96 float GetFloatValue(Value value) { in GetFloatValue()
[all …]
/frameworks/base/rs/java/android/renderscript/
DSampler.java30 public enum Value { enum in Sampler
40 Value(int id) { in Value() method in Sampler.Value
45 Value mMin;
46 Value mMag;
47 Value mWrapS;
48 Value mWrapT;
49 Value mWrapR;
60 public Value getMinification() { in getMinification()
67 public Value getMagnification() { in getMagnification()
74 public Value getWrapS() { in getWrapS()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DSampler.java43 public enum Value { enum in Sampler
53 Value(int id) { in Value() method in Sampler.Value
58 Value mMin;
59 Value mMag;
60 Value mWrapS;
61 Value mWrapT;
62 Value mWrapR;
72 public Value getMinification() { in getMinification()
79 public Value getMagnification() { in getMagnification()
86 public Value getWrapS() { in getWrapS()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_sampler.java36 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
37 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
38 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
39 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder()
46 b.setMinification(Sampler.Value.LINEAR_MIP_LINEAR); in initializeGlobals()
50 b.setMagnification(Sampler.Value.LINEAR); in initializeGlobals()
54 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals()
58 b.setWrapT(Sampler.Value.WRAP); in initializeGlobals()
82 minification.getMagnification() == Sampler.Value.NEAREST); in testJavaSide()
84 minification.getMinification() == Sampler.Value.LINEAR_MIP_LINEAR); in testJavaSide()
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_sampler.java38 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
39 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
40 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
41 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder()
48 b.setMinification(Sampler.Value.LINEAR_MIP_LINEAR); in initializeGlobals()
52 b.setMagnification(Sampler.Value.LINEAR); in initializeGlobals()
56 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals()
60 b.setWrapT(Sampler.Value.WRAP); in initializeGlobals()
84 minification.getMagnification() == Sampler.Value.NEAREST); in testJavaSide()
86 minification.getMinification() == Sampler.Value.LINEAR_MIP_LINEAR); in testJavaSide()
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_sampler.java39 b.setMinification(Sampler.Value.NEAREST); in getDefaultBuilder()
40 b.setMagnification(Sampler.Value.NEAREST); in getDefaultBuilder()
41 b.setWrapS(Sampler.Value.CLAMP); in getDefaultBuilder()
42 b.setWrapT(Sampler.Value.CLAMP); in getDefaultBuilder()
49 b.setMinification(Sampler.Value.LINEAR_MIP_LINEAR); in initializeGlobals()
53 b.setMagnification(Sampler.Value.LINEAR); in initializeGlobals()
57 b.setWrapS(Sampler.Value.WRAP); in initializeGlobals()
61 b.setWrapT(Sampler.Value.WRAP); in initializeGlobals()
86 minification.getMagnification() == Sampler.Value.NEAREST); in testJavaSide()
88 minification.getMinification() == Sampler.Value.LINEAR_MIP_LINEAR); in testJavaSide()
[all …]
/frameworks/base/startop/view_compiler/
Ddex_builder.h115 class Value {
117 static constexpr Value Local(size_t id) { return Value{id, Kind::kLocalRegister}; } in Local()
118 static constexpr Value Parameter(size_t id) { return Value{id, Kind::kParameter}; } in Parameter()
119 static constexpr Value Immediate(size_t value) { return Value{value, Kind::kImmediate}; } in Immediate()
120 static constexpr Value String(size_t value) { return Value{value, Kind::kString}; } in String()
121 static constexpr Value Label(size_t id) { return Value{id, Kind::kLabel}; } in Label()
122 static constexpr Value Type(size_t id) { return Value{id, Kind::kType}; } in Type()
134 constexpr Value() : value_{0}, kind_{Kind::kInvalid} {} in Value() function
142 constexpr Value(size_t value, Kind kind) : value_{value}, kind_{kind} {} in Value() function
159 operator const Value() const { return Value::Local(*index_); } in Value() function
[all …]
Ddex_layout_compiler.h83 dex::Value GetCurrentView() const;
84 dex::Value GetCurrentLayoutParams() const;
85 dex::Value GetParentView() const;
89 void BuildGetLayoutInflater(dex::Value dest);
90 void BuildGetResources(dex::Value dest);
91 void BuildGetLayoutResource(dex::Value dest, dex::Value resources, dex::Value resid);
92 void BuildLayoutResourceToAttributeSet(dex::Value dest, dex::Value layout_resource);
94 void BuildTryCreateView(dex::Value dest, dex::Value parent, dex::Value classname);
99 dex::Value const context_;
100 dex::Value const resid_;
Ddex_layout_compiler.cc29 using dex::Value;
47 context_{Value::Parameter(0)},
48 resid_{Value::Parameter(1)},
68 void DexViewBuilder::BuildGetLayoutInflater(Value dest) { in BuildGetLayoutInflater()
75 void DexViewBuilder::BuildGetResources(Value dest) { in BuildGetResources()
82 void DexViewBuilder::BuildGetLayoutResource(Value dest, Value resources, Value resid) { in BuildGetLayoutResource()
89 void DexViewBuilder::BuildLayoutResourceToAttributeSet(dex::Value dest, in BuildLayoutResourceToAttributeSet()
90 dex::Value layout_resource) { in BuildLayoutResourceToAttributeSet()
128 void DexViewBuilder::BuildTryCreateView(Value dest, Value parent, Value classname) { in BuildTryCreateView()
168 method_->AddInstruction(Instruction::Cast(view, Value::Type(view_group_def->orig_index))); in StartView()
[all …]
Ddex_testcase_generator.cc72 returnParam.BuildReturn(Value::Parameter(0)); in GenerateSimpleTestCases()
85 Instruction::InvokeVirtual(string_length.id, result, Value::Parameter(0))); in GenerateSimpleTestCases()
95 Value else_target{returnIfZero.MakeLabel()}; in GenerateSimpleTestCases()
97 Instruction::Op::kBranchEqz, /*dest=*/{}, Value::Parameter(0), else_target)); in GenerateSimpleTestCases()
116 Value else_target{returnIfNotZero.MakeLabel()}; in GenerateSimpleTestCases()
118 Instruction::Op::kBranchNEqz, /*dest=*/{}, Value::Parameter(0), else_target)); in GenerateSimpleTestCases()
153 Value labelA = method.MakeLabel(); in GenerateSimpleTestCases()
154 Value labelB = method.MakeLabel(); in GenerateSimpleTestCases()
204 Value else_target{method.MakeLabel()}; in GenerateSimpleTestCases()
206 Instruction::Op::kBranchEqz, /*dest=*/{}, Value::Parameter(0), else_target)); in GenerateSimpleTestCases()
[all …]
/frameworks/base/cmds/statsd/src/
DFieldValue.h268 struct Value { struct
269 Value() : type(UNKNOWN) {} in Value() function
271 Value(int32_t v) { in Value() argument
276 Value(int64_t v) { in Value() argument
281 Value(float v) { in Value() function
286 Value(double v) { in Value() function
291 Value(const std::string& v) { in Value() function
296 Value(const std::vector<uint8_t>& v) { in Value() argument
342 Value(const Value& from); argument
344 bool operator==(const Value& that) const;
[all …]
DFieldValue.cpp144 bool isAttributionUidField(const Field& field, const Value& value) { in isAttributionUidField()
152 Value::Value(const Value& from) { in Value() function in android::os::statsd::Value
178 std::string Value::toString() const { in toString()
197 bool Value::isZero() const { in isZero()
216 bool Value::operator==(const Value& that) const { in operator ==()
237 bool Value::operator!=(const Value& that) const { in operator !=()
257 bool Value::operator<(const Value& that) const { in operator <()
278 bool Value::operator>(const Value& that) const { in operator >()
299 bool Value::operator>=(const Value& that) const { in operator >=()
320 Value Value::operator-(const Value& that) const { in operator -()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DVoiceCallRatTracker.java41 private final Map<Key, Value> mRatUsageMap = new HashMap<>();
108 Value value = mRatUsageMap.get(mLastKey); in conclude()
114 mRatUsageMap.values().stream().forEach(Value::endSession); in conclude()
129 e.getKey(), e.getValue(), Value::mergeInPlace)); in mergeWith()
135 Value value = mRatUsageMap.get(key); in addToKey()
137 mRatUsageMap.put(key, new Value(durationMillis, connectionIds)); in addToKey()
144 mRatUsageMap.put(Key.fromProto(usage), Value.fromProto(usage)); in addProto()
147 private static RawVoiceCallRatUsage entryToProto(Map.Entry<Key, Value> entry) { in entryToProto()
149 Value value = entry.getValue(); in entryToProto()
192 private static class Value { class in VoiceCallRatTracker
[all …]
/frameworks/compile/libbcc/lib/
DRSKernelExpand.cpp235 llvm::Value *getStepValue(llvm::DataLayout *DL, llvm::Type *AllocType, in getStepValue()
236 llvm::Value *OrigStep) { in getStepValue()
426 llvm::Value *LowerBound, in createLoop()
427 llvm::Value *UpperBound, in createLoop()
428 llvm::Value **LoopIV) { in createLoop()
432 llvm::Value *Cond, *IVNext, *IV, *IVVar; in createLoop()
488 void finishArgList( llvm::SmallVector<llvm::Value *, ArgVectorLen> &ArgVector, in finishArgList() argument
489 const llvm::SmallVector<llvm::Value *, SpecialArgVectorLen> &SpecialArgVector, in finishArgList() argument
520 typedef llvm::SmallVector<llvm::Value *, 3> SmallGEPIndices;
568 llvm::Value *X, in ExpandSpecialArguments()
[all …]
DRSX86TranslateGEPPass.cpp56 llvm::Value *incrementOffset(llvm::Value *accum, llvm::Value *incr, in incrementOffset()
69 llvm::Value *computeGEPOffset(llvm::GetElementPtrInst *GEP) { in computeGEPOffset()
70 llvm::Value *Offset = nullptr; in computeGEPOffset()
85 llvm::Value *Incr = llvm::ConstantInt::get( in computeGEPOffset()
90 llvm::Value *EltSize = llvm::ConstantInt::get( in computeGEPOffset()
93 llvm::Value *Incr = llvm::BinaryOperator::CreateMul( in computeGEPOffset()
110 llvm::Value *Indices[1] = {computeGEPOffset(GEP)}; in translateGEP()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp70 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.uids[i]))); in LogEvent()
72 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.tags[i]))); in LogEvent()
83 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].int_value))); in LogEvent()
87 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].long_value))); in LogEvent()
91 field, Value(statsLogEventWrapper.getElements()[i].float_value))); in LogEvent()
95 field, Value(statsLogEventWrapper.getElements()[i].double_value))); in LogEvent()
99 FieldValue(field, Value(statsLogEventWrapper.getElements()[i].str_value))); in LogEvent()
103 field, Value(statsLogEventWrapper.getElements()[i].storage_value))); in LogEvent()
147 mValues.push_back(FieldValue(Field(mTagId, pos, 0 /* depth */), Value(uid))); in LogEvent()
151 mValues.push_back(FieldValue(Field(mTagId, pos, 2 /* depth */), Value(itr.first))); in LogEvent()
[all …]
/frameworks/base/tools/aapt2/
DResourceValues.h45 class Value {
47 virtual ~Value() = default;
95 virtual bool Equals(const Value* value) const = 0;
105 virtual Value* Clone(StringPool* new_pool) const = 0;
114 friend std::ostream& operator<<(std::ostream& out, const Value& value);
125 struct BaseValue : public Value {
131 struct Item : public Value {
167 bool Equals(const Value* value) const override;
186 bool Equals(const Value* value) const override;
199 bool Equals(const Value* value) const override;
[all …]
DResourceTable.h121 std::unique_ptr<Value> value;
231 using CollisionResolverFunc = std::function<CollisionResult(Value*, Value*, bool)>;
234 static CollisionResult ResolveValueCollision(Value* existing, Value* incoming, bool overlay);
237 static CollisionResult IgnoreCollision(Value* existing, Value* incoming, bool overlay);
240 const android::StringPiece& product, std::unique_ptr<Value> value,
245 const android::StringPiece& product, std::unique_ptr<Value> value,
251 const android::StringPiece& product, std::unique_ptr<Value> value,
256 const android::StringPiece& product, std::unique_ptr<Value> value,
327 const android::StringPiece& product, std::unique_ptr<Value> value,
/frameworks/av/media/codec2/sfplugin/
DReflectedParamUpdater.h57 struct Value : public AData<C2Value, int32_t, int64_t, AString, sp<ABuffer>>::Basic { struct
59 Value() = default;
60 explicit Value(C2Value i) { set(i); } in Value() function
61 explicit Value(int32_t i) { set(i); } in Value() argument
62 explicit Value(int64_t i) { set(i); } in Value() argument
63 explicit Value(const AString &i) { set(i); } in Value() function
64 explicit Value(const sp<ABuffer> &i) { set(i); } in Value() function
67 struct Dict : public std::map<std::string, Value> {
/frameworks/base/services/core/java/com/android/server/accounts/
DTokenCache.java38 private static class Value { class in TokenCache
42 public Value(String token, long expiryEpochMillis) { in Value() method in TokenCache.Value
83 private static class TokenLruCache extends LruCache<Key, Value> {
116 protected int sizeOf(Key k, Value v) { in sizeOf()
121 protected void entryRemoved(boolean evicted, Key k, Value oldVal, Value newVal) { in entryRemoved()
135 public void putToken(Key k, Value v) { in putToken()
201 Value v = new Value(token, expiryMillis); in put()
222 Value v = mCachedTokens.get(k); in get()
/frameworks/opt/bitmap/src/com/android/bitmap/
DContiguousFIFOAggregator.java59 private final SparseArray<Value> mTasks;
78 mTasks = new SparseArray<Value>(); in ContiguousFIFOAggregator()
107 mTasks.put(hash, new Value(callback, null)); in expect()
168 final Value value = mTasks.get(hash); in execute()
202 final Value value = mTasks.get(hash); in maybeExecuteNow()
225 final Value value = mTasks.get(hash); in onFirstExpectedChanged()
260 final Value value = mTasks.get(hash); in prettyPrint()
298 private class Value { class in ContiguousFIFOAggregator
303 Value(final Callback<T> callback, final Runnable task) { in Value() method in ContiguousFIFOAggregator.Value
/frameworks/native/vulkan/vkjson/
Dvkjson.cc850 Json::Value ToJsonValue(const T& value);
853 inline Json::Value ToJsonValue(const T& value) { in ToJsonValue()
854 return Json::Value(static_cast<double>(value)); in ToJsonValue()
857 inline Json::Value ToJsonValue(const uint64_t& value) { in ToJsonValue()
860 return Json::Value(string); in ToJsonValue()
865 inline Json::Value ToJsonValue(const T& value) { in ToJsonValue()
866 return Json::Value(static_cast<double>(value)); in ToJsonValue()
870 inline Json::Value ArrayToJsonValue(uint32_t count, const T* values) { in ArrayToJsonValue()
871 Json::Value array(Json::arrayValue); in ArrayToJsonValue()
877 inline Json::Value ToJsonValue(const T (&value)[N]) { in ToJsonValue()
[all …]
/frameworks/av/media/libnblog/
DReportPerformance.cpp43 static std::unique_ptr<Json::Value> dumpToJson(const PerformanceData& data) in dumpToJson()
45 std::unique_ptr<Json::Value> rootPtr = std::make_unique<Json::Value>(Json::objectValue); in dumpToJson()
46 Json::Value& root = *rootPtr; in dumpToJson()
49 root["frameCount"] = (Json::Value::Int)data.threadParams.frameCount; in dumpToJson()
50 root["sampleRate"] = (Json::Value::Int)data.threadParams.sampleRate; in dumpToJson()
54 root["underruns"] = (Json::Value::Int64)data.underruns; in dumpToJson()
55 root["overruns"] = (Json::Value::Int64)data.overruns; in dumpToJson()
56 root["activeMs"] = (Json::Value::Int64)ns2ms(data.active); in dumpToJson()
57 root["durationMs"] = (Json::Value::Int64)ns2ms(systemTime() - data.start); in dumpToJson()
81 Json::Value root(Json::arrayValue); in dumpJson()
[all …]
/frameworks/base/tools/aapt2/test/
DCommon.h54 template <typename T = Value>
69 Value* GetValueForConfigAndProduct<Value>(ResourceTable* table,
74 template <typename T = Value>
80 template <typename T = Value>
112 typename std::enable_if<std::is_base_of<Value, T>::value, std::ostream&>::type operator<<(
152 explicit ValueEqImpl(const Value* expected) : expected_(expected) { in ValueEqImpl()
170 const Value* expected_;
226 return GetValueForConfig<Value>(&(*arg), name, {}) != nullptr;
232 return GetValueForConfig<Value>(&(*arg), name, config) != nullptr;

123456