/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | ParamsUtils.java | 112 * Create a {@link Rational} value by approximating the float value as a rational. 118 * @param value a floating point value 121 public static Rational createRational(float value) { argument 122 if (Float.isNaN(value)) { 124 } else if (value == Float.POSITIVE_INFINITY) { 126 } else if (value == Float.NEGATIVE_INFINITY) { 128 } else if (value == 0.0f) { 132 // normal finite value [all...] |
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | MathExpr.java | 104 public KCode toInverseCode(KCode value) { argument 114 value = new KCode(cast).app("(", value).app(")"); 117 case '+': // const + x = value => x = value - const 118 return varExpr.toInverseCode(value.app(" - (", constExpr.toCode()).app(")")); 119 case '*': // const * x = value => x = value / const 120 return varExpr.toInverseCode(value.app(" / (", constExpr.toCode()).app(")")); 122 if (!left.isDynamic()) { // const - x = value [all...] |
/frameworks/av/include/drm/ |
H A D | DrmMetadata.h | 83 const char* value = this->getAsByteArray(&key); local 84 if (NULL != value) { 85 delete[] value; 86 value = NULL; 94 status_t put(const String8* key, const char* value);
|
/frameworks/base/core/java/android/content/ |
H A D | SharedPreferences.java | 51 * may be called even if a preference is set to its existing value. 71 * Set a String value in the preferences editor, to be written back once 75 * @param value The new value for the preference. 80 Editor putString(String key, @Nullable String value); argument 96 * Set an int value in the preferences editor, to be written back once 100 * @param value The new value for the preference. 105 Editor putInt(String key, int value); argument 108 * Set a long value i 117 putLong(String key, long value) argument 129 putFloat(String key, float value) argument 141 putBoolean(String key, boolean value) argument [all...] |
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/ |
H A D | MarshalQueryableRect.java | 41 public void marshal(Rect value, ByteBuffer buffer) { argument 42 buffer.putInt(value.left); 43 buffer.putInt(value.top); 44 buffer.putInt(value.width()); 45 buffer.putInt(value.height());
|
H A D | MarshalQueryableStreamConfiguration.java | 45 public void marshal(StreamConfiguration value, ByteBuffer buffer) { argument 46 buffer.putInt(value.getFormat()); 47 buffer.putInt(value.getWidth()); 48 buffer.putInt(value.getHeight()); 49 buffer.putInt(value.isInput() ? 1 : 0);
|
H A D | MarshalQueryableStreamConfigurationDuration.java | 54 public void marshal(StreamConfigurationDuration value, ByteBuffer buffer) { argument 55 buffer.putLong(value.getFormat() & MASK_UNSIGNED_INT); // unsigned int -> long 56 buffer.putLong(value.getWidth()); 57 buffer.putLong(value.getHeight()); 58 buffer.putLong(value.getDuration());
|
H A D | MarshalQueryableParcelable.java | 72 public void marshal(T value, ByteBuffer buffer) { argument 74 Log.v(TAG, "marshal " + value); 81 value.writeToParcel(parcel, /*flags*/0); 85 "Parcelable " + value + " must not have file descriptors"); 95 throw new AssertionError("No data marshaled for " + value); 134 T value = mCreator.createFromParcel(parcel); 138 throw new AssertionError("No data marshaled for " + value); 147 Log.v(TAG, "unmarshal, value is " + value); 150 return mClass.cast(value); 162 calculateMarshalSize(T value) argument [all...] |
/frameworks/base/libs/hwui/utils/ |
H A D | MathUtils.h | 33 inline static bool isZero(float value) { argument 34 return (value >= -NON_ZERO_EPSILON) && (value <= NON_ZERO_EPSILON); 37 inline static bool isPositive(float value) { argument 38 return value >= NON_ZERO_EPSILON; 42 * Clamps alpha value, and snaps when very near 0 or 1 70 * approximation of an arc, with a given threshold value.
|
/frameworks/base/tools/aapt2/ |
H A D | ResourceUtils_test.cpp | 159 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName); 163 EXPECT_EQ(ref.value().name.value(), kStyleFooName); 167 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooName); 171 EXPECT_EQ(ref.value().name.value(), kStyleFooName); 175 EXPECT_EQ(ref.value().name.value(), kAndroidStyleFooNam [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
H A D | GEOLocationElement.java | 22 * its extremes. As a simple example, consider the value 33 as a simple 8-bit number with three 26 * deliver measurements with a gaussian distribution around the exact value, meaning it is more 27 * reasonable to assume the value as a "center" value with a symmetric uncertainty interval. 28 * RFC-6225 redefines the "resolution" from RFC-3825 with an "uncertainty" value with these 65 public RealValue(double value) { argument 66 mValue = value; 71 public RealValue(double value, int resolution) { argument 72 mValue = value; 108 throw new ProtocolException("GeoLocation length field value " 232 append(long value, int width) argument 258 fixToFloat(long value, int fractionSize, int width) argument 268 floatToFix(double value, int fractionSize, int width) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | AppInterface.java | 88 CommandType(int value) { argument 89 mValue = value; 92 public int value() { method in class:AppInterface.CommandType 99 * @param value Integer value to be converted to a CommandType object. 100 * @return CommandType object whose "Type of Command" value is {@code 101 * value}. If no CommandType object has that value, null is 104 public static CommandType fromInt(int value) { argument 106 if (e.mValue == value) { [all...] |
/frameworks/base/core/java/android/util/ |
H A D | Base64.java | 237 private int value; field in class:Base64.Decoder 246 value = 0; 275 int value = this.value; 288 // (whitespace, etc.), value will end up negative. (All 291 // together will result in a value with its top bit set.) 297 (value = ((alphabet[input[p] & 0xff] << 18) | 301 output[op+2] = (byte) value; 302 output[op+1] = (byte) (value >> 8); 303 output[op] = (byte) (value >> 1 [all...] |
H A D | SparseBooleanArray.java | 94 * Gets the boolean mapped from the specified key, or the specified value 128 * Adds a mapping from the specified key to the specified value, 132 public void put(int key, boolean value) { argument 136 mValues[i] = value; 141 mValues = GrowingArrayUtils.insert(mValues, mSize, i, value); 147 * Returns the number of key-value mappings that this SparseBooleanArray 156 * the key from the <code>index</code>th key-value mapping that this 170 * the value from the <code>index</code>th key-value mapping that this 175 * <code>valueAt(0)</code> will return the value associate 184 setValueAt(int index, boolean value) argument 210 indexOfValue(boolean value) argument 229 append(int key, boolean value) argument [all...] |
H A D | SparseIntArray.java | 99 * Gets the int 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(int key, int 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 192 setValueAt(int index, int value) argument 213 indexOfValue(int value) argument 232 append(int key, int value) argument [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/ |
H A D | h264bsd_slice_header.c | 104 u32 tmp, i, value; local 121 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 124 pSliceHeader->firstMbInSlice = value; 125 if (value >= picSizeInMbs) 131 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 134 pSliceHeader->sliceType = value; 146 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 149 pSliceHeader->picParameterSetId = value; 174 tmp = h264bsdDecodeExpGolombUnsigned(pStrmData, &value); 177 pSliceHeader->idrPicId = value; 476 u32 tmp, value, i; local 580 u32 tmp, value; local 737 u32 tmp, value; local 800 u32 tmp, value, i; local 876 u32 tmp, value, i; local 961 u32 tmp, value, i; local 1061 u32 tmp, value, i; local 1169 u32 tmp, value, i; local 1273 u32 tmp, value, i; local 1409 u32 tmp, value, i; local [all...] |
/frameworks/av/services/audioflinger/ |
H A D | AudioResamplerFirGen.h | 67 inline double value() const { function in class:android::SineGen 83 double mCurrent; // current value of sine/cosine 84 double mPrevious; // previous value of sine/cosine 94 * The SineGen returned by value() starts at innerStart = outerStart + n*outerStep; 107 inline SineGen value() { function in class:android::SineGenGen 108 return SineGen(mSineInnerCur.value(), mSineInnerPrev.value(), mTwoCos); 139 * @param x is the value to round. 177 * pass in the absolute value as needed). 192 static const CONSTEXPR double value member in struct:android::I0Term 197 static const CONSTEXPR double value = 1.; member in struct:android::I0Term 202 static const CONSTEXPR double value = I0ATerm<N-1>::value * (2.*N-1.) * (2.*N-1.) / (8. * N); member in struct:android::I0ATerm 207 static const CONSTEXPR double value = member in struct:android::I0ATerm [all...] |
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
H A D | EGLImpl.java | 32 public native boolean eglQueryContext(EGLDisplay display, EGLContext context, int attribute, int[] value); argument 33 public native boolean eglQuerySurface(EGLDisplay display, EGLSurface surface, int attribute, int[] value); argument 37 public native boolean eglGetConfigAttrib(EGLDisplay display, EGLConfig config, int attribute, int[] value); argument 109 long value = _eglGetDisplay(native_display); 110 if (value == 0) { 113 if (mDisplay.mEGLDisplay != value) 114 mDisplay = new EGLDisplayImpl(value); 119 long value = _eglGetCurrentContext(); 120 if (value == 0) { 123 if (mContext.mEGLContext != value) [all...] |
/frameworks/av/media/mtp/ |
H A D | MtpPacket.h | 58 void setParameter(int index, uint32_t value); 67 void putUInt16(int offset, uint16_t value); 68 void putUInt32(int offset, uint32_t value);
|
/frameworks/base/core/java/android/annotation/ |
H A D | RequiresPermission.java | 59 * a permission which depends on the value of the parameter. For example, consider 90 String value() default ""; 95 * If specified, {@link #anyOf()} and {@link #value()} must both be null. 102 * If specified, {@link #allOf()} and {@link #value()} must both be null. 116 * a permission which depends on the value of the parameter (and typically 122 RequiresPermission value() default @RequiresPermission; 129 * a permission which depends on the value of the parameter (and typically 135 RequiresPermission value() default @RequiresPermission;
|
/frameworks/base/core/java/android/content/pm/ |
H A D | MacAuthenticatedInputStream.java | 53 int value = 0; 55 value |= tag[i] ^ actualTag[i]; 58 return value == 0;
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestApp/src/com/android/multidexlegacytestapp/ |
H A D | Test.java | 36 ((AnnotationWithEnum) TestApplication.annotation).value()); 38 ((AnnotationWithEnum) TestApplication.getAnnotationWithEnum()).value()); 43 ((AnnotationWithClass) TestApplication.annotation3).value());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | GlobalSetting.java | 31 protected abstract void handleValueChanged(int value); argument 43 public void setValue(int value) { argument 44 Global.putInt(mContext.getContentResolver(), mSettingName, value);
|
/frameworks/base/tools/layoutlib/bridge/src/android/text/ |
H A D | Primitive.java | 74 public Primitive getNewPrimitive(int location, float value) { argument 77 return new Primitive(this, location, value, 0f); 79 return new Primitive(this, location, 0f, value);
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | IntFloat.java | 8 public float value; field in class:IntFloat 33 out.writeFloat(value); 38 value = in.readFloat();
|