Searched defs:value (Results 251 - 275 of 1066) sorted by relevance

<<11121314151617181920>>

/frameworks/base/native/android/
H A Dnative_window.cpp44 int value; local
45 int res = window->query(window, what, &value);
46 return res < 0 ? res : value;
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
H A DOMAScalar.java12 public OMAScalar(OMAConstructed parent, String name, String context, String value, argument
14 this(parent, name, context, value, buildAttributes(avps));
17 public OMAScalar(OMAConstructed parent, String name, String context, String value, argument
20 mValue = value;
58 public OMANode addChild(String name, String context, String value, String path) argument
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
H A DMDnsUtils.java32 public static String getString(byte[] value) { argument
33 if (value != null) return new String(value,StandardCharsets.UTF_8);
62 for (String value : vendorValues) {
63 if (containsString(container, value)
64 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US))
65 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US)))
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
H A DMDnsUtils.java32 public static String getString(byte[] value) { argument
33 if (value != null) return new String(value,StandardCharsets.UTF_8);
62 for (String value : vendorValues) {
63 if (containsString(container, value)
64 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US))
65 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US)))
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
H A DMDnsUtils.java76 for (String value : vendorValues) {
77 if (containsString(container, value)
78 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US))
79 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US)))
85 private static String getString(byte[] value) { argument
86 if (value != null) return new String(value, StandardCharsets.UTF_8);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DSecureSetting.java38 protected abstract void handleValueChanged(int value, boolean observedChange); argument
51 public void setValue(int value) { argument
52 Secure.putIntForUser(mContext.getContentResolver(), mSettingName, value, mUserId);
71 final int value = getValue();
72 handleValueChanged(value, value != mObservedValue);
73 mObservedValue = value;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DTaskKeyLruCache.java27 * A mapping of {@link Task.TaskKey} to value, with additional LRU functionality where the least
66 * value is valid or not.
73 * Returns the value only if the key is valid (has not been updated since the last time it was
93 final void put(Task.TaskKey key, V value) { argument
94 if (key == null || value == null) {
95 Log.e(TAG, "Unexpected null key or value: " + key + ", " + value);
99 mCache.put(key.id, value);
104 // Remove the key after the cache value because we need it to make the callback
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DBatteryPreference.java83 protected boolean persistString(String value) { argument
84 final boolean v = PERCENT.equals(value);
87 if (DISABLED.equals(value)) {
H A DClockPreference.java79 protected boolean persistString(String value) { argument
80 TunerService.get(getContext()).setValue(Clock.CLOCK_SECONDS, SECONDS.equals(value) ? 1 : 0);
81 if (DISABLED.equals(value)) {
H A DDemoModeFragment.java198 private void setGlobal(String key, int value) { argument
199 Settings.Global.putInt(getContext().getContentResolver(), key, value);
/frameworks/base/rs/java/android/renderscript/
H A DDouble2.java59 * @param value
61 public void add(Double2 value) { argument
62 x += value.x;
63 y += value.y;
69 * @param value
71 public void add(double value) { argument
72 x += value;
73 y += value;
94 * @param value
96 public void sub(Double2 value) { argument
121 sub(double value) argument
146 mul(Double2 value) argument
171 mul(double value) argument
196 div(Double2 value) argument
221 div(double value) argument
332 setAt(int i, double value) argument
351 addAt(int i, double value) argument
[all...]
H A DDouble3.java62 * @param value
64 public void add(Double3 value) { argument
65 x += value.x;
66 y += value.y;
67 z += value.z;
73 * @param value
75 public void add(double value) { argument
76 x += value;
77 y += value;
78 z += value;
102 sub(Double3 value) argument
129 sub(double value) argument
156 mul(Double3 value) argument
183 mul(double value) argument
210 div(Double3 value) argument
237 div(double value) argument
355 setAt(int i, double value) argument
377 addAt(int i, double value) argument
[all...]
H A DFloat2.java58 * @param value
60 public void add(Float2 value) { argument
61 x += value.x;
62 y += value.y;
68 * @param value
70 public void add(float value) { argument
71 x += value;
72 y += value;
93 * @param value
95 public void sub(Float2 value) { argument
120 sub(float value) argument
145 mul(Float2 value) argument
170 mul(float value) argument
195 div(Float2 value) argument
220 div(float value) argument
331 setAt(int i, float value) argument
350 addAt(int i, float value) argument
[all...]
H A DFloat3.java62 * @param value
64 public void add(Float3 value) { argument
65 x += value.x;
66 y += value.y;
67 z += value.z;
73 * @param value
75 public void add(float value) { argument
76 x += value;
77 y += value;
78 z += value;
102 sub(Float3 value) argument
129 sub(float value) argument
156 mul(Float3 value) argument
183 mul(float value) argument
210 div(Float3 value) argument
237 div(float value) argument
355 setAt(int i, float value) argument
377 addAt(int i, float value) argument
[all...]
H A DScriptIntrinsicLUT.java22 * tables are 256 entries in size and can cover the full value
60 private void validate(int index, int value) { argument
64 if (value < 0 || value > 255) {
73 * @param value Must be 0-255
75 public void setRed(int index, int value) { argument
76 validate(index, value);
77 mCache[index] = (byte)value;
85 * @param value Must be 0-255
87 public void setGreen(int index, int value) { argument
99 setBlue(int index, int value) argument
111 setAlpha(int index, int value) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DCertBlacklisterTest.java45 private void overrideSettings(String key, String value) throws Exception { argument
46 Settings.Secure.putString(mContext.getContentResolver(), key, value);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/
H A Dsobeloperator.cpp93 double value = sqrt(gx * gx + gy * gy); local
94 *(magPtr + 4 * i + c) = static_cast<unsigned char>(value);
/frameworks/base/tools/aapt/
H A DAaptXml.cpp28 Res_value value; local
29 if (tree.getAttributeValue(attrIndex, &value) < 0) {
36 if (value.dataType != Res_value::TYPE_STRING) {
38 *outError = "attribute is not a string value";
50 Res_value value; local
51 if (tree.getAttributeValue(attrIndex, &value) < 0) {
58 if (value.dataType < Res_value::TYPE_FIRST_INT
59 || value.dataType > Res_value::TYPE_LAST_INT) {
61 *outError = "attribute is not an integer value";
65 return value
102 Res_value value; local
147 Res_value value; local
[all...]
/frameworks/base/tools/aapt2/
H A DDiagnostics.h54 DiagMessage& operator<<(const T& value) { argument
55 mMessage << value; local
H A DFlags.cpp29 std::string* value) {
30 auto func = [value](const StringPiece& arg) -> bool {
31 *value = arg.toString();
40 std::vector<std::string>* value) {
41 auto func = [value](const StringPiece& arg) -> bool {
42 value->push_back(arg.toString());
51 Maybe<std::string>* value) {
52 auto func = [value](const StringPiece& arg) -> bool {
53 *value = arg.toString();
62 std::vector<std::string>* value) {
28 requiredFlag(const StringPiece& name, const StringPiece& description, std::string* value) argument
39 requiredFlagList(const StringPiece& name, const StringPiece& description, std::vector<std::string>* value) argument
50 optionalFlag(const StringPiece& name, const StringPiece& description, Maybe<std::string>* value) argument
61 optionalFlagList(const StringPiece& name, const StringPiece& description, std::vector<std::string>* value) argument
72 optionalSwitch(const StringPiece& name, const StringPiece& description, bool* value) argument
[all...]
H A DValueVisitor.h26 * Visits a value and invokes the appropriate method based on its type. Does not traverse
32 virtual void visitItem(Item* value) {} argument
33 virtual void visit(Reference* value) { visitItem(value); } argument
34 virtual void visit(RawString* value) { visitItem(value); } argument
35 virtual void visit(String* value) { visitItem(value); } argument
36 virtual void visit(StyledString* value) { visitItem(value); } argument
37 visit(FileReference* value) argument
38 visit(Id* value) argument
39 visit(BinaryPrimitive* value) argument
41 visit(Attribute* value) argument
42 visit(Style* value) argument
43 visit(Array* value) argument
44 visit(Plural* value) argument
45 visit(Styleable* value) argument
111 T* value = nullptr; member in struct:aapt::DynCastVisitor
123 Item* value = nullptr; member in struct:aapt::DynCastVisitor
135 valueCast(Value* value) argument
[all...]
/frameworks/base/tools/aapt2/util/
H A DMaybe.h29 * Either holds a valid value of type T, or holds Nothing.
30 * The value is stored inline in this structure, so no
64 * Construct a Maybe holding a value.
66 Maybe(const T& value);
69 * Construct a Maybe holding a value.
71 Maybe(T&& value);
74 * True if this holds a value, false if
80 * Gets the value if one exists, or else
83 T& value();
86 * Gets the value i
237 Maybe(const T& value) argument
243 Maybe(T&& value) argument
254 T& Maybe<T>::value() { function in class:aapt::Maybe
260 const T& Maybe<T>::value() const { function in class:aapt::Maybe
271 make_value(T&& value) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DBridgeXmlPullAttributes.java85 String value = getAttributeValue(namespace, attribute);
86 if (value != null) {
87 ResourceValue r = getResourceValue(value);
90 value = r.getValue();
93 return XmlUtils.convertValueToList(value, options, defaultValue);
102 String value = getAttributeValue(namespace, attribute);
103 if (value != null) {
104 ResourceValue r = getResourceValue(value);
107 value = r.getValue();
110 return XmlUtils.convertValueToBoolean(value, defaultValu
260 getResourceValue(String value) argument
269 resolveResourceValue(String value, int defaultValue) argument
[all...]
H A DLruCache.java28 * a value is accessed, it is moved to the head of a queue. When a value is
29 * added to a full cache, the value at the end of that queue is evicted and may
37 * assume a value will always be returned, even when there's a cache miss.
45 * protected int sizeOf(String key, Bitmap value) {
46 * return value.getByteCount();
54 * cache.put(key, value);
58 * <p>This class does not allow null to be used as a key or value. A return
59 * value of null from {@link #get}, {@link #put} or {@link #remove} is
110 * Returns the value fo
169 put(K key, V value) argument
296 safeSizeOf(K key, V value) argument
311 sizeOf(K key, V value) argument
[all...]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DDelegateClassAdapter.java77 Object value) {
83 return super.visitField(access, name, desc, signature, value);
76 visitField(int access, String name, String desc, String signature, Object value) argument

Completed in 9289 milliseconds

<<11121314151617181920>>