/frameworks/base/core/java/android/util/ |
H A D | MathUtils.java | 127 public static float acos(float value) { argument 128 return (float) Math.acos(value); 131 public static float asin(float value) { argument 132 return (float) Math.asin(value); 135 public static float atan(float value) { argument 136 return (float) Math.atan(value); 151 public static float norm(float start, float stop, float value) { argument 152 return (value - start) / (stop - start); 155 public static float map(float minStart, float minStop, float maxStart, float maxStop, float value) { argument 156 return maxStart + (maxStart - maxStop) * ((value [all...] |
H A D | SparseBooleanArray.java | 70 * Gets the boolean mapped from the specified key, or the specified value 97 * Adds a mapping from the specified key to the specified value, 101 public void put(int key, boolean value) { argument 105 mValues[i] = value; 130 mValues[i] = value; 136 * Returns the number of key-value mappings that this SparseBooleanArray 145 * the key from the <code>index</code>th key-value mapping that this 154 * the value from the <code>index</code>th key-value mapping that this 173 * specified value 178 indexOfValue(boolean value) argument 197 append(int key, boolean value) argument [all...] |
H A D | SparseIntArray.java | 74 * Gets the int mapped from the specified key, or the specified value 108 * Adds a mapping from the specified key to the specified value, 112 public void put(int key, int value) { argument 116 mValues[i] = value; 141 mValues[i] = value; 147 * Returns the number of key-value mappings that this SparseIntArray 156 * the key from the <code>index</code>th key-value mapping that this 165 * the value from the <code>index</code>th key-value mapping that this 184 * specified value 189 indexOfValue(int value) argument 208 append(int key, int value) argument [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 48 * @param value the string value of the setting 49 * @return whether to continue with writing the value to the database. In 51 * and in some cases the property value needs to be modified before setting. 53 public boolean restoreValue(String name, String value) { argument 55 setBrightness(Integer.parseInt(value)); 57 setSoundEffects(Integer.parseInt(value) == 1); 59 setGpsLocation(value); 62 setAutoRestore(Integer.parseInt(value) == 1); 98 private void setGpsLocation(String value) { argument [all...] |
/frameworks/av/include/drm/ |
H A D | DrmConstraints.h | 120 const char* value = this->getAsByteArray(&key); local 121 if (NULL != value) { 122 delete[] value; 123 value = NULL; 137 * Adds constraint information as <key, value> pair to this instance 140 * @param[in] value Value to add 143 status_t put(const String8* key, const char* value); 146 * Retrieves the value of given key 148 * @param key Key whose value to be retrieved 149 * @return The value [all...] |
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | residual.cpp | 158 int escape, numPrefix, sufmask, suffix, shift, sign, value, absvalue, vlcnum, level_two_or_higher; local 295 value = level[i]; 296 absvalue = (value >= 0) ? value : -value; 300 if (value > 0) value--; 301 else value++; 305 if (value >= 0) 312 value [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | InputConnectionWrapper.java | 51 * any other thread. The returned object's 'have value' flag is cleared and its expected 184 CharSequence value = null; 191 value = callback.mTextAfterCursor; 198 return value; 202 CharSequence value = null; 209 value = callback.mTextBeforeCursor; 216 return value; 220 CharSequence value = null; 227 value = callback.mSelectedText; 234 return value; [all...] |
/frameworks/rs/ |
H A D | rsScriptC.cpp | 272 const char * value = mHal.info.exportedPragmaValueList[i]; local 275 if (!strcmp(value, "1")) { 278 ALOGE("Invalid version pragma value: %s\n", value); 283 if (!strcmp(value, "default")) { 286 if (!strcmp(value, "parent")) { 290 ALOGE("Unrecognized value %s passed to stateVertex", value); 295 if (!strcmp(value, "default")) { 298 if (!strcmp(value, "paren [all...] |
H A D | rsAdapter.cpp | 66 void rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) { argument 73 a->setY(value); 76 a->setZ(value); 79 a->setLOD(value); 82 a->setFace((RsAllocationCubemapFace)value); 140 void rsi_Adapter2DSetConstraint(Context *rsc, RsAdapter2D va, RsDimension dim, uint32_t value) { argument 150 a->setZ(value); 153 a->setLOD(value); 156 a->setFace((RsAllocationCubemapFace)value);
|
H A D | rsScript.cpp | 190 void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) { argument 192 s->setVar(slot, &value, sizeof(value)); 195 void rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) { argument 197 ObjectBase *o = static_cast<ObjectBase *>(value); 201 void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, long long value) { argument 203 s->setVar(slot, &value, sizeof(value)); 206 void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { argument 208 s->setVar(slot, &value, sizeo 211 rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 82 const Res_value& value, uint32_t ref, ssize_t block, 86 const Res_value& value, uint32_t ref, ssize_t block, 89 env->SetIntField(outValue, gTypedValueOffsets.mType, value.dataType); 92 env->SetIntField(outValue, gTypedValueOffsets.mData, value.data); 694 Res_value value; local 697 ssize_t block = res.getResource(ident, &value, false, density, &typeSpecFlags, &config); 706 block = res.resolveReference(&value, block, &ref, &typeSpecFlags, &config); 714 return block >= 0 ? copyValue(env, outValue, &res, value, ref, block, typeSpecFlags, &config) : block; 731 Res_value value; local 740 value 85 copyValue(JNIEnv* env, jobject outValue, const ResTable* table, const Res_value& value, uint32_t ref, ssize_t block, uint32_t typeSpecFlags, ResTable_config* config) argument 838 Res_value value; local 895 Res_value value; local 927 Res_value value; local 1137 Res_value value; local 1287 Res_value value; local 1418 Res_value value; local 1476 Res_value value; local 1541 Res_value value; local [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_seq_param_set.c | 50 /* enumeration to indicate invalid return value from the GetDpbSize function */ 88 u32 tmp, i, value; local 138 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 141 if (value > 12) 147 pSeqParamSet->maxFrameNum = 1 << (value+4); 150 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 153 if (value > 2) 158 pSeqParamSet->picOrderCntType = value; 163 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 166 if (value > 1 [all...] |
H A D | h264bsd_util.h | 66 /* value to be returned by GetBits if stream buffer is empty */ 83 /* macro for range checking an value, used only if compiler flag _RANGE_CHECK 86 #define RANGE_CHECK(value, minBound, maxBound) \ 88 if ((value) < (minBound) || (value) > (maxBound)) \ 92 #define RANGE_CHECK(value, minBound, maxBound) 131 /* macro to get absolute value */ 134 /* macro to clip a value z, so that x <= z =< y */ 137 /* macro to clip a value z, so that 0 <= z =< 255 */ 165 u32 h264bsdCountLeadingZeros(u32 value, u3 [all...] |
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | EventRecurrence.java | 114 /** maps a FREQ value to an integer constant */ 141 /** If set, validate the value of UNTIL parts. Minor performance impact. */ 562 * (2) For each part, find substrings for left/right sides of '=' (name/value). 563 * (3) Call a <name>-specific parsing function to parse the <value> into an 644 throw new InvalidFormatException("Must specify a FREQ value"); 664 * @param value The right-hand-side of the part. 666 * @return A bit value indicating which part was parsed. 668 public abstract int parsePart(String value, EventRecurrence er); argument 674 * @param minVal Minimum allowed value. 675 * @param maxVal Maximum allowed value 726 parsePart(String value, EventRecurrence er) argument 737 parsePart(String value, EventRecurrence er) argument 753 parsePart(String value, EventRecurrence er) argument 764 parsePart(String value, EventRecurrence er) argument 775 parsePart(String value, EventRecurrence er) argument 784 parsePart(String value, EventRecurrence er) argument 793 parsePart(String value, EventRecurrence er) argument 802 parsePart(String value, EventRecurrence er) argument 853 parsePart(String value, EventRecurrence er) argument 862 parsePart(String value, EventRecurrence er) argument 871 parsePart(String value, EventRecurrence er) argument 880 parsePart(String value, EventRecurrence er) argument 889 parsePart(String value, EventRecurrence er) argument 898 parsePart(String value, EventRecurrence er) argument [all...] |
/frameworks/support/renderscript/v8/rs_support/ |
H A D | rsAdapter.cpp | 66 void rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) { argument 73 a->setY(value); 76 a->setZ(value); 79 a->setLOD(value); 82 a->setFace((RsAllocationCubemapFace)value); 140 void rsi_Adapter2DSetConstraint(Context *rsc, RsAdapter2D va, RsDimension dim, uint32_t value) { argument 150 a->setZ(value); 153 a->setLOD(value); 156 a->setFace((RsAllocationCubemapFace)value);
|
H A D | rsScript.cpp | 190 void rsi_ScriptSetVarI(Context *rsc, RsScript vs, uint32_t slot, int value) { argument 192 s->setVar(slot, &value, sizeof(value)); 195 void rsi_ScriptSetVarObj(Context *rsc, RsScript vs, uint32_t slot, RsObjectBase value) { argument 197 ObjectBase *o = static_cast<ObjectBase *>(value); 201 void rsi_ScriptSetVarJ(Context *rsc, RsScript vs, uint32_t slot, long long value) { argument 203 s->setVar(slot, &value, sizeof(value)); 206 void rsi_ScriptSetVarF(Context *rsc, RsScript vs, uint32_t slot, float value) { argument 208 s->setVar(slot, &value, sizeo 211 rsi_ScriptSetVarD(Context *rsc, RsScript vs, uint32_t slot, double value) argument [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | ListPreference.java | 32 * This preference will store a string into the SharedPreferences. This string will be the value 99 * The array to find the value to save for a preference when an entry from 127 * Sets the value of the key. This should be one of the entries in 130 * @param value The value to set for the key. 132 public void setValue(String value) { argument 133 mValue = value; 135 persistString(value); 142 * value will be substituted in its place. 161 * value wil 212 findIndexOfValue(String value) argument 308 String value; field in class:ListPreference.SavedState [all...] |
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/ |
H A D | Tweener.java | 70 Object value = vars[i+1]; 74 interpolator = (TimeInterpolator) value; // TODO: multiple interpolators? 76 updateListener = (AnimatorUpdateListener) value; 78 listener = (AnimatorListener) value; 80 delay = ((Number) value).longValue(); 83 } else if (value instanceof float[]) { 85 ((float[])value)[0], ((float[])value)[1])); 86 } else if (value instanceof int[]) { 88 ((int[])value)[ [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | BaseAdapter.java | 187 Object value = mCallback.getAdapterItemValue( 193 if (value != null) { 194 if (value.getClass() != ViewAttribute.TEXT.getAttributeClass()) { 196 "Wrong Adapter Item value class for TEXT. Expected String, got %s", 197 value.getClass().getName()), null); 199 tv.setText((String) value); 207 Object value = mCallback.getAdapterItemValue( 213 if (value != null) { 214 if (value.getClass() != ViewAttribute.IS_CHECKED.getAttributeClass()) { 216 "Wrong Adapter Item value clas [all...] |
/frameworks/native/libs/gui/ |
H A D | Sensor.cpp | 111 size_t write(void* buffer, size_t offset, const String8& value) { argument 112 memcpy(static_cast<char*>(buffer) + offset, value.string(), value.length()); 113 return (value.length() + 3) & ~3; 117 size_t write(void* buffer, size_t offset, float value) { argument 118 *reinterpret_cast<float*>(static_cast<char*>(buffer) + offset) = value; 123 size_t write(void* buffer, size_t offset, int32_t value) { argument 124 *reinterpret_cast<int32_t*>(static_cast<char*>(buffer) + offset) = value; 147 size_t read(void const* buffer, size_t offset, String8* value, int32_t len) { argument 148 value 153 read(void const* buffer, size_t offset, float* value) argument 159 read(void const* buffer, size_t offset, int32_t* value) argument [all...] |
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
H A D | ImportTestProvider.java | 98 Object value = entry.getValue(); 99 if (value == null || TextUtils.isEmpty(value.toString())) { 185 final Object value = entry.getValue(); 186 final String valueString = (value != null ? value.toString() : null); 200 final String value = entry.getValue(); 204 builder.append(value); 220 final Object value = entry.getValue(); 224 // Type mismatch usuall happens as importer doesn't care the type of each value [all...] |
/frameworks/av/drm/common/ |
H A D | DrmMetadata.cpp | 26 const char* value) { 27 if((value != NULL) && (key != NULL)) { 28 int length = strlen(value); 31 memcpy(charValue, value, length); 114 String8 value = String8(mDrmMetadata->mMetadataMap.editValueAt(mIndex)); local 116 return value; 25 put(const String8* key, const char* value) argument
|
/frameworks/base/media/jni/mediaeditor/ |
H A D | VideoEditorJava.cpp | 423 // Retrieve the field value. 426 // Log the value. 491 int value, 502 // Check if the specified value matches the c value of the constant. 503 if (value == pClass->pConstants[index].c) 517 pName = unknown(value); 521 // Set the description to a default value. 533 int value, 544 // Check if the specified value matche 489 videoEditJava_getConstantClassName( const VideoEditJava_ConstantsClass* pClass, int value, VideoEditJava_UnknownConstant unknown) argument 531 videoEditJava_getConstantClassString( const VideoEditJava_ConstantsClass* pClass, int value, VideoEditJava_UnknownConstant unknown) argument 573 videoEditJava_getConstantClassJavaToC( bool* pResult, const VideoEditJava_ConstantsClass* pClass, int value) argument 610 videoEditJava_getConstantClassJavaToC( bool* pResult, const VideoEditJava_ConstantsClass* pClass, int value, int unknown) argument 649 videoEditJava_getConstantClassCToJava( const VideoEditJava_ConstantsClass* pClass, int value) argument 675 videoEditJava_getConstantClassCToJava( const VideoEditJava_ConstantsClass* pClass, int value, int unknown) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | TextLayout.cpp | 56 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, local 58 if (value == NULL) { 64 paint->getTextPath(value->getGlyphs(), value->getGlyphsCount() * 2, x_, y_, path); 70 sp<TextLayoutValue> value = TextLayoutEngine::getInstance().getValue(paint, local 72 if (value == NULL) { 76 memcpy(resultAdvances, value->getAdvances(), value->getAdvancesCount() * sizeof(jfloat)); 79 *resultTotalAdvance = value->getTotalAdvance(); 104 sp<TextLayoutValue> value local [all...] |
/frameworks/base/core/java/android/bluetooth/ |
H A D | IBluetoothPan.aidl | 29 void setBluetoothTethering(boolean value);
|