/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/services/core/java/com/android/server/pm/ |
H A D | PackageManagerServiceCompilerMapping.java | 48 // exception in case the reason or value are invalid. 102 String value = SystemProperties.get("dalvik.vm.dex2oat-filter"); 103 if (value == null || value.isEmpty()) { 107 if (!DexFile.isValidCompilerFilter(value) || 108 DexFile.isProfileGuidedCompilerFilter(value)) { 112 return value;
|
/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 | ResourceUtils_test.cpp | 154 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName); 158 EXPECT_EQ(ref.value().name.value(), kStyleFooName); 163 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName); 167 EXPECT_EQ(ref.value().name.value(), kStyleFooName); 171 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooNam 210 auto value = ResourceUtils::TryParseNullOrEmpty("@null"); local 219 auto value = ResourceUtils::TryParseNullOrEmpty("@empty"); local [all...] |
/frameworks/base/tools/incident_report/ |
H A D | generic_message.cpp | 28 GenericMessage::addInt32(int32_t fieldId, uint32_t value) argument 32 node.value32 = value; 37 GenericMessage::addInt64(int32_t fieldId, uint64_t value) argument 41 node.value64 = value; 57 GenericMessage::addString(int32_t fieldId, const string& value) argument 61 node.str = new string(value);
|
/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/service/java/com/android/server/wifi/ |
H A D | ByteBufferReader.java | 37 * Read an integer value from a buffer. 42 * @return The integer value 55 // Format the value based on byte order. 56 long value = 0; 59 value = (value << Byte.SIZE) | (octets[n] & 0xFF); 63 value = (value << Byte.SIZE) | (octet & 0xFF); 66 return value; 86 * Read a string from a buffer where the string value i [all...] |
/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/compat/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/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/base/tools/aapt2/compile/ |
H A D | IdAssigner.cpp | 37 if (pkg->id.value() == id.package_id()) { 38 if (!type->id || type->id.value() == id.type_id()) { 41 if (!entry->id || entry->id.value() == id.entry_id()) { 48 const ResourceId existing_id(pkg->id.value(), type->id ? type->id.value() : 0, 49 entry->id ? entry->id.value() : 0); 81 ResourceId resource_id(package->id.value(), type->id.value(), 82 entry->id.value()); 128 ResourceId resource_id(package->id.value(), [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/libs/androidfw/tests/ |
H A D | AssetManager2_test.cpp | 90 Res_value value; local 96 0 /*density_override*/, &value, &selected_config, &flags); 107 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); 120 Res_value value; local 126 0 /*density_override*/, &value, &selected_config, &flags); 137 EXPECT_EQ(Res_value::TYPE_STRING, value.dataType); 148 Res_value value; local 154 0 /*density_override*/, &value, &selected_config, &flags); 159 EXPECT_EQ(Res_value::TYPE_REFERENCE, value.dataType); 162 cookie = assetmanager.GetResource(value 194 Res_value value; local 309 Res_value value; local 332 Res_value value; local [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/av/media/libaudiohal/ |
H A D | ConversionHelperHidl.cpp | 35 // "keyFormat=<value>" pair. We need to transform it into a single key string so that it is 37 String8 value; local 39 (halKeys.get(String8(AudioParameter::keyStreamSupportedChannels), value) == NO_ERROR || 40 halKeys.get(String8(AudioParameter::keyStreamSupportedSamplingRates), value) == NO_ERROR); 48 halKeys.getAt(i, key, value); 49 formatParam.add(key, value); 64 String8 key, value; local 65 status_t status = params.getAt(i, key, value); 68 (*hidlParams)[i].value = value [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | Resources.java | 319 * Return the string value associated with a particular resource ID. The 326 * entry. The value 0 is an invalid identifier. 343 * Return the Typeface value associated with a particular resource ID. 348 * entry. The value 0 is an invalid identifier. 355 final TypedValue value = obtainTempTypedValue(); 358 impl.getValue(id, value, true); 359 Typeface typeface = impl.loadFont(this, value, id); 364 releaseTempTypedValue(value); 371 Typeface getFont(@NonNull TypedValue value, @FontRes int id) throws NotFoundException { argument 372 return mResourcesImpl.loadFont(this, value, i 883 loadDrawable(@onNull TypedValue value, int id, int density, @Nullable Theme theme) argument 1027 loadColorStateList(@onNull TypedValue value, int id, @Nullable Theme theme) argument 1036 loadComplexColor(@onNull TypedValue value, int id, @Nullable Theme theme) argument 1242 releaseTempTypedValue(TypedValue value) argument 1263 openRawResource(@awRes int id, TypedValue value) argument [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...] |