/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | KeyValueMap.java | 36 throw new RuntimeException("Key-value argument " + i + " must be a key of type " 40 Object value = keyValues[i+1]; 41 put(key, value); 71 Object value = entry.getValue(); 72 if (value instanceof String) { 73 valueString = "\"" + value + "\""; 75 valueString = value.toString();
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EffectParameter.java | 46 public void displayValue(int value, boolean fromTouch) { argument 47 String text = Integer.toString(value)+" "+mUnit; 50 mSeekBar.setProgress(value - mMin); 58 public abstract void setParameter(Integer value); argument 72 int value = progress + mMin; 74 setParameter(value);
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Byte3.java | 75 * @param value 77 public void add(byte value) { argument 78 x += value; 79 y += value; 80 z += value; 129 * @param value 131 public void sub(byte value) { argument 132 x -= value; 133 y -= value; 134 z -= value; 185 mul(byte value) argument 239 div(byte value) argument 370 setAt(int i, byte value) argument 392 addAt(int i, byte value) argument [all...] |
H A D | Byte4.java | 79 * @param value 81 public void add(byte value) { argument 82 x += value; 83 y += value; 84 z += value; 85 w += value; 137 * @param value 139 public void sub(byte value) { argument 140 x -= value; 141 y -= value; 197 mul(byte value) argument 255 div(byte value) argument 395 setAt(int i, byte value) argument 420 addAt(int i, byte value) argument [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | JapanesePhoneNumberFormatter.java | 193 short value = FORMAT_MAP[base + ch - '0']; 194 if (value < 0) { 195 if (value <= -100) { 199 int dashPos2 = rootIndex + (Math.abs(value) % 10); 203 int dashPos1 = rootIndex + (Math.abs(value) / 10); 209 base = value;
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
H A D | IImsConfig.aidl | 32 * Gets the value for ims service/capabilities parameters from the provisioned 33 * value storage. Synchronous blocking call. 36 * @return value in Integer format. 41 * Gets the value for ims service/capabilities parameters from the provisioned 42 * value storage. Synchronous blocking call. 45 * @return value in String format. 50 * Sets the value for IMS service/capabilities parameters by the operator device 51 * management entity. It sets the config item value in the provisioned storage 52 * from which the master value is derived. Synchronous blocking call. 55 * @param value i [all...] |
/frameworks/base/tools/aapt2/ |
H A D | Flags.h | 33 std::string* value); 35 std::vector<std::string>* value); 37 Maybe<std::string>* value); 39 std::vector<std::string>* value); 41 bool* value); 54 std::function<bool(const StringPiece& value)> action;
|
H A D | Flags.cpp | 29 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 D | ResourceTable.cpp | 54 if (package->id && package->id.value() == id) { 68 if (id && package->id && package->id.value() != id.value()) { 147 ResourceConfigValue* value = iter->get(); local 148 if (value->config == config && StringPiece(value->product) == product) { 149 return value; 160 ResourceConfigValue* value = iter->get(); local 161 if (value->config == config && StringPiece(value 175 ResourceConfigValue* value = iter->get(); local 184 ResourceConfigValue* value = iter->get(); local 256 addResource(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument 265 addResource(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument 307 addResourceAllowMangled(const ResourceNameRef& name, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument 316 addResourceAllowMangled(const ResourceNameRef& name, const ResourceId id, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, IDiagnostics* diag) argument 326 addResourceImpl(const ResourceNameRef& name, const ResourceId resId, const ConfigDescription& config, const StringPiece& product, std::unique_ptr<Value> value, const char16_t* validChars, std::function<int(Value*,Value*)> conflictResolver, IDiagnostics* diag) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
H A D | DynamicIdMap.java | 66 Integer value = mDynamicIds.get(resource); 67 if (value == null) { 68 value = ++mDynamicSeed; 69 mDynamicIds.put(resource, value); 70 mRevDynamicIds.put(value, resource); 73 return value;
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | MockResources.java | 60 public void setBoolean(int id, boolean value) { argument 61 mBooleanValues.put(id, value); 64 public void setInteger(int id, int value) { argument 65 mIntegerValues.put(id, value); 68 public void setString(int id, String value) { argument 69 mStringValues.put(id, value);
|
/frameworks/support/v4/java/android/support/v4/util/ |
H A D | ContainerHelpers.java | 45 static int binarySearch(int[] array, int size, int value) { argument 53 if (midVal < value) { 55 } else if (midVal > value) { 58 return mid; // value found 61 return ~lo; // value not present 64 static int binarySearch(long[] array, int size, long value) { argument 72 if (midVal < value) { 74 } else if (midVal > value) { 77 return mid; // value found 80 return ~lo; // value no [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 312 * Return the string value associated with a particular resource ID. The 319 * entry. The value 0 is an invalid identifier. 346 * entry. The value 0 is an invalid identifier. 362 * Return the string value associated with a particular resource ID. It 368 * entry. The value 0 is an invalid identifier. 382 * Return the string value associated with a particular resource ID, 390 * entry. The value 0 is an invalid identifier. 421 * entry. The value 0 is an invalid identifier. 450 * entry. The value 0 is an invalid identifier. 465 * Return the string value associate 852 loadDrawable(@onNull TypedValue value, int id, @Nullable Theme theme) argument 996 loadColorStateList(@onNull TypedValue value, int id, @Nullable Theme theme) argument 1005 loadComplexColor(@onNull TypedValue value, int id, @Nullable Theme theme) argument 1212 releaseTempTypedValue(TypedValue value) argument 1233 openRawResource(@awRes int id, TypedValue value) argument [all...] |
/frameworks/base/location/java/android/location/ |
H A D | GpsNavigationMessage.java | 121 public void setType(byte value) { argument 122 mType = value; 157 public void setPrn(byte value) { argument 158 mPrn = value; 164 * subframe 4 and 5, this value corresponds to the 'frame id' of the navigation message. 174 public void setMessageId(short value) { argument 175 mMessageId = value; 180 * If required by {@link #getType()}, this value contains a sub-index within the current message 191 public void setSubmessageId(short value) { argument 192 mSubmessageId = value; 207 setData(byte[] value) argument 225 setStatus(short value) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A D | AssertHelpers.java | 84 * Assert that every element in the value array is greater than the lower bound (exclusive). 86 * @param value an array of items 89 public static void assertArrayWithinLowerBound(String message, float[] value, float lowerBound) argument 91 for (int i = 0; i < value.length; ++i) { 94 message, value[i], lowerBound, i, Arrays.toString(value)), 95 value[i] > lowerBound); 100 * Assert that every element in the value array is less than the upper bound (exclusive). 102 * @param value an array of items 105 public static void assertArrayWithinUpperBound(String message, float[] value, floa argument 118 assertInRange(float value, float low, float high) argument [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | BordeauxSessionManager.java | 48 String value; field in class:BordeauxSessionManager.SessionKey 105 key.value = callingUid + "#" + "_" + name + "_" + learnerClass.getName(); 110 if (mSessions.containsKey(key.value)) { 111 return mSessions.get(key.value).learner.getBinder(); 116 Session stored = mSessionStorage.getSession(key.value); 119 stored.learner.setModelChangeCallback(new LearningUpdateCallback(key.value)); 121 mSessions.put(key.value, stored); 126 Log.i(TAG, "create a new learning session: " + key.value); 130 learner.setModelChangeCallback(new LearningUpdateCallback(key.value)); 134 mSessions.put(key.value, sessio [all...] |
/frameworks/base/media/java/android/media/audiofx/ |
H A D | AudioEffect.java | 182 * Operation failed due to bad parameter value. 523 * generic one where the parameter and its value are both specified as an 524 * array of bytes. The parameter and value type and length are therefore 530 * @param value the new value for the specified parameter 537 public int setParameter(byte[] param, byte[] value) argument 540 return native_setParameter(param.length, param, value.length, value); 544 * Set effect parameter. The parameter and its value are integers. 549 public int setParameter(int param, int value) throw argument 562 setParameter(int param, short value) argument 576 setParameter(int param, byte[] value) argument 589 setParameter(int[] param, int[] value) argument 614 setParameter(int[] param, short[] value) argument 640 setParameter(int[] param, byte[] value) argument 668 getParameter(byte[] param, byte[] value) argument 681 getParameter(int param, byte[] value) argument 696 getParameter(int param, int[] value) argument 727 getParameter(int param, short[] value) argument 758 getParameter(int[] param, int[] value) argument 792 getParameter(int[] param, short[] value) argument 825 getParameter(int[] param, byte[] value) argument 1000 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument 1234 native_setParameter(int psize, byte[] param, int vsize, byte[] value) argument 1237 native_getParameter(int psize, byte[] param, int vsize, byte[] value) argument 1309 intToByteArray(int value) argument 1336 shortToByteArray(short value) argument [all...] |
H A D | LoudnessEnhancer.java | 29 * The processing is parametrized by a target gain value, which determines the maximum amount 115 * The target gain is the maximum value by which a sample value will be amplified when the 136 int[] value = new int[1]; 137 checkStatus(getParameter(PARAM_TARGET_GAIN_MB, value)); 138 return value[0]; 144 * when a parameter value has changed. 148 * Method called when a parameter value has changed. The method is called only if the 153 * @param value the new parameter value 155 onParameterChange(LoudnessEnhancer effect, int param, int value) argument 166 onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) argument [all...] |
H A D | PresetReverb.java | 156 short[] value = new short[1]; 157 checkStatus(getParameter(PARAM_PRESET, value)); 158 return value[0]; 163 * when a parameter value has changed. 167 * Method called when a parameter value has changed. The method is called only if the 173 * @param value the new parameter value. 175 void onParameterChange(PresetReverb effect, int status, int param, short value); argument 186 public void onParameterChange(AudioEffect effect, int status, byte[] param, byte[] value) { argument 201 if (value [all...] |
/frameworks/base/core/java/android/util/ |
H A D | LongSparseLongArray.java | 99 * Gets the long mapped from the specified key, or the specified value 133 * Adds a mapping from the specified key to the specified value, 137 public void put(long key, long value) { argument 141 mValues[i] = value; 146 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); 152 * Returns the number of key-value mappings that this SparseIntArray 161 * the key from the <code>index</code>th key-value mapping that this 175 * the value from the <code>index</code>th key-value mapping that this 180 * <code>valueAt(0)</code> will return the value associate 205 indexOfValue(long value) argument 224 append(long key, long value) argument [all...] |
H A D | SparseLongArray.java | 97 * Gets the long mapped from the specified key, or the specified value 131 * Adds a mapping from the specified key to the specified value, 135 public void put(int key, long value) { argument 139 mValues[i] = value; 144 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); 150 * Returns the number of key-value mappings that this SparseIntArray 159 * the key from the <code>index</code>th key-value mapping that this 173 * the value from the <code>index</code>th key-value mapping that this 178 * <code>valueAt(0)</code> will return the value associate 203 indexOfValue(long value) argument 222 append(int key, long value) argument [all...] |
/frameworks/av/media/libstagefright/rtsp/ |
H A D | ASessionDescription.cpp | 97 AString key, value; local 117 value.setTo(line, colonPos + 1, line.size() - colonPos - 1); 121 value.trim(); 123 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); 125 mTracks.editItemAt(mTracks.size() - 1).add(key, value); 141 AString key, value; local 146 value = AString(line, equalPos + 1, line.size() - equalPos - 1); 149 value.trim(); 151 ALOGV("adding '%s' => '%s'", key.c_str(), value.c_str()); 153 mTracks.editItemAt(mTracks.size() - 1).add(key, value); 233 AString value; local 257 AString value; local [all...] |
/frameworks/base/tools/aapt2/compile/ |
H A D | PseudolocaleGenerator_test.cpp | 38 EXPECT_EQ(originalStyle.str, *newString->value->str); 39 ASSERT_EQ(originalStyle.spans.size(), newString->value->spans.size()); 41 EXPECT_EQ(2u, newString->value->spans[0].firstChar); 42 EXPECT_EQ(3u, newString->value->spans[0].lastChar); 43 EXPECT_EQ(std::u16string(u"b"), *newString->value->spans[0].name); 45 EXPECT_EQ(6u, newString->value->spans[1].firstChar); 46 EXPECT_EQ(7u, newString->value->spans[1].lastChar); 47 EXPECT_EQ(std::u16string(u"b"), *newString->value->spans[1].name); 49 EXPECT_EQ(1u, newString->value->spans[2].firstChar); 50 EXPECT_EQ(10u, newString->value [all...] |
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/ |
H A D | DataBinderWriter.kt | 33 val firstVal = it.value[0] 35 if (it.value.size == 1) { 46 it.value.forEach { 70 val firstVal = it.value[0] 72 if (it.value.size == 1) { 79 it.value.forEach { 104 it.value.forEach { 130 tab(",\"${it.value}\"")
|
/frameworks/support/v7/mediarouter/src/android/support/v7/app/ |
H A D | MediaRouterThemeHelper.java | 76 TypedValue value = new TypedValue(); 77 return context.getTheme().resolveAttribute(attr, value, true) ? value.resourceId : 0; 81 TypedValue value = new TypedValue(); 82 return context.getTheme().resolveAttribute(android.R.attr.disabledAlpha, value, true) 83 ? value.getFloat() : 0.5f; 141 TypedValue value = new TypedValue(); 143 android.support.v7.appcompat.R.attr.isLightTheme, value, true) 144 && value.data != 0; 157 TypedValue value [all...] |