HomeSort by relevance Sort by last modified time
    Searched refs:amount (Results 1 - 25 of 190) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/compile/libbcc/lib/ScriptCRT/
clamp.c 20 extern float __attribute__((overloadable)) clamp(float amount, float low, float high) {
21 return amount < low ? low : (amount > high ? high : amount);
24 extern float2 __attribute__((overloadable)) clamp(float2 amount, float2 low, float2 high) {
26 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x);
27 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y)
    [all...]
rs_core.c 193 extern uint __attribute__((overloadable, always_inline)) rsClamp(uint amount, uint low, uint high) {
194 return amount < low ? low : (amount > high ? high : amount);
196 extern int __attribute__((overloadable, always_inline)) rsClamp(int amount, int low, int high) {
197 return amount < low ? low : (amount > high ? high : amount);
199 extern ushort __attribute__((overloadable, always_inline)) rsClamp(ushort amount, ushort low, ushort high) {
200 return amount < low ? low : (amount > high ? high : amount)
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/font/
Kerning.java 45 private int amount; field in class:Kerning
56 return amount;
59 public void setAmount(int amount) {
60 this.amount = amount;
66 oc.write(amount, "amount", 0);
72 amount = ic.readInt("amount", 0);
  /frameworks/base/core/jni/android/graphics/
Utils.cpp 32 ssize_t amount; local
39 // we want to return amount that was skipped
51 amount = newOffset - oldOffset;
53 amount = fAsset->read(buffer, size);
54 if (amount <= 0) {
55 SkDebugf("---- fAsset->read(%d) returned %d\n", size, amount);
59 if (amount < 0) {
60 amount = 0;
62 return amount;
  /external/icu4c/i18n/
curramt.cpp 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
22 Measure(amount, new CurrencyUnit(isoCode, ec), ec) {
25 CurrencyAmount::CurrencyAmount(double amount, const UChar* isoCode,
27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
tmutamt.cpp 24 TimeUnitAmount::TimeUnitAmount(double amount,
27 : Measure(Formattable(amount),
chnsecal.h 151 virtual void add(UCalendarDateFields field, int32_t amount, UErrorCode &status);
152 virtual void add(EDateFields field, int32_t amount, UErrorCode &status);
153 virtual void roll(UCalendarDateFields field, int32_t amount, UErrorCode &status);
154 virtual void roll(EDateFields field, int32_t amount, UErrorCode &status);
hebrwcal.h 233 * (Overrides Calendar) UDate Arithmetic function. Adds the specified (signed) amount
238 * @param amount The amount of date or time to be added to the field.
243 virtual void add(UCalendarDateFields field, int32_t amount, UErrorCode& status);
247 virtual void add(EDateFields field, int32_t amount, UErrorCode& status);
251 * (Overrides Calendar) Rolls up or down by the given amount in the specified field.
255 * @param amount Indicates amount to roll.
261 virtual void roll(UCalendarDateFields field, int32_t amount, UErrorCode& status);
264 * (Overrides Calendar) Rolls up or down by the given amount in the specified field
    [all...]
hebrwcal.cpp 185 * Add a signed amount to a specified field, using this calendar's rules.
205 * @param amount the amount to add to the field.
211 void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status)
219 // We can't just do a set(MONTH, get(MONTH) + amount). The
220 // reason is ADAR_1. Suppose amount is +2 and we land in
222 // if amount is -2 and we land in ADAR_1, then we have to
227 if (amount > 0) {
229 month += amount;
243 month += amount;
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/input/
JoyInput.java 52 * the given amount.
55 * @param amount Rumble amount. Should be between 0 and 1.
57 public void setJoyRumble(int joyId, float amount);
  /sdk/emulator/opengl/tests/ut_renderer/
ReadBuffer.cpp 48 void ReadBuffer::consume(size_t amount)
50 assert(amount <= m_validData);
51 m_validData -= amount;
52 m_readPtr += amount;
ReadBuffer.h 27 size_t validData() { return m_validData; } // return the amount of valid data in readptr
28 void consume(size_t amount); // notify that 'amount' data has been consumed;
  /dalvik/dx/src/com/android/dx/io/instructions/
BaseCodeCursor.java 56 * Advance the cursor by the indicated amount.
58 protected final void advance(int amount) {
59 cursor += amount;
  /external/dexmaker/src/dx/java/com/android/dx/io/instructions/
BaseCodeCursor.java 56 * Advance the cursor by the indicated amount.
58 protected final void advance(int amount) {
59 cursor += amount;
  /external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/file/
DnaBlockData.java 81 int amount = inputStream.readInt(); local
82 if (amount <= 0) {
83 throw new BlenderFileException("The names amount number should be positive!");
85 String[] names = new String[amount];
86 for (int i = 0; i < amount; ++i) {
97 amount = inputStream.readInt();
98 if (amount <= 0) {
99 throw new BlenderFileException("The types amount number should be positive!");
101 String[] types = new String[amount];
102 for (int i = 0; i < amount; ++i) {
    [all...]
  /frameworks/base/core/java/android/util/
MathUtils.java 38 public static int constrain(int amount, int low, int high) {
39 return amount < low ? low : (amount > high ? high : amount);
42 public static long constrain(long amount, long low, long high) {
43 return amount < low ? low : (amount > high ? high : amount);
46 public static float constrain(float amount, float low, float high) {
47 return amount < low ? low : (amount > high ? high : amount)
    [all...]
  /external/kernel-headers/original/linux/
percpu_counter.h 29 static inline void percpu_counter_init(struct percpu_counter *fbc, s64 amount)
32 fbc->count = amount;
41 void percpu_counter_mod(struct percpu_counter *fbc, s32 amount);
70 static inline void percpu_counter_init(struct percpu_counter *fbc, s64 amount)
72 fbc->count = amount;
80 percpu_counter_mod(struct percpu_counter *fbc, s32 amount)
83 fbc->count += amount;
  /external/icu4c/i18n/unicode/
curramt.h 23 * \brief C++ API: Currency Amount Object.
30 * A currency together with a numeric amount, such as 200 USD.
38 * Construct an object with the given numeric amount and the given
40 * @param amount a numeric object; amount.isNumeric() must be TRUE
43 * @param ec input-output error code. If the amount or the isoCode
47 CurrencyAmount(const Formattable& amount, const UChar* isoCode,
51 * Construct an object with the given numeric amount and the given
53 * @param amount the amount of the given currenc
    [all...]
  /sdk/emulator/opengl/host/libs/libOpenglRender/
ReadBuffer.cpp 68 void ReadBuffer::consume(size_t amount)
70 assert(amount <= m_validData);
71 m_validData -= amount;
72 m_readPtr += amount;
ReadBuffer.h 27 size_t validData() { return m_validData; } // return the amount of valid data in readptr
28 void consume(size_t amount); // notify that 'amount' data has been consumed;
  /sdk/chimpchat/src/com/android/chimpchat/adb/
LinearInterpolator.java 101 private static float lerp(float start, float stop, float amount) {
102 return start + (stop - start) * amount;
115 float amount = (float) (1.0 / steps); local
120 float newX = lerp(start.getX(), end.getX(), amount * i);
121 float newY = lerp(start.getY(), end.getY(), amount * i);
  /external/apache-xml/src/main/java/org/apache/xml/serializer/
output_unknown.properties 44 {http\u003a//xml.apache.org/xalan}indent-amount=0
  /external/chromium/net/base/
sdch_filter.cc 258 int amount = OutputBufferExcess(dest_buffer, available_space); local
259 *dest_len += amount;
260 dest_buffer += amount;
261 available_space -= amount;
305 amount = OutputBufferExcess(dest_buffer, available_space);
306 *dest_len += amount;
307 dest_buffer += amount;
308 available_space -= amount;
377 size_t amount = std::min(available_space, local
380 amount);
    [all...]
  /system/core/sh/
memalloc.h 74 #define STADJUST(amount, p) (p += (amount), sstrnleft -= (amount))
  /frameworks/base/core/java/android/webkit/
ByteArrayBuilder.java 59 int amount = Math.min(length, c.mArray.length - c.mLength); local
60 System.arraycopy(array, offset, c.mArray, c.mLength, amount);
61 c.mLength += amount;
62 length -= amount;
63 offset += amount;

Completed in 629 milliseconds

1 2 3 4 5 6 7 8