Searched defs:val (Results 26 - 50 of 225) sorted by relevance

123456789

/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
H A DUT_bug_char.java33 private Byte2 pack_b2(byte[] val) { argument
34 assert val.length == 2;
35 Log.i("bug_char", "pack_b2 " + val[0] + " " + val[1]);
36 return new Byte2(val[0], val[1]);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
H A DUT_bug_char.java35 private Byte2 pack_b2(byte[] val) { argument
36 assert val.length == 2;
37 Log.i("bug_char", "pack_b2 " + val[0] + " " + val[1]);
38 return new Byte2(val[0], val[1]);
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
H A Dpvmp3_seek_synch.cpp133 uint16 val; local
215 val = (tmp1 << 3);
216 val |= (tmp2 >> 5);
221 val = 0; // force mismatch
224 if (val == SYNC_WORD)
284 uint16 val; local
290 val = (uint16)getUpTo17bits(inputStream, SYNC_WORD_LNGTH);
292 while (((val&SYNC_WORD) != SYNC_WORD) && (inputStream->usedBits < availableBits))
294 val <<= 8;
295 val |
[all...]
/frameworks/base/cmds/statsd/benchmark/
H A Dlog_event_benchmark.cpp38 static void write4Bytes(int val, vector<char>* buffer) { argument
39 buffer->push_back(static_cast<char>(val));
40 buffer->push_back(static_cast<char>((val >> 8) & 0xFF));
41 buffer->push_back(static_cast<char>((val >> 16) & 0xFF));
42 buffer->push_back(static_cast<char>((val >> 24) & 0xFF));
/frameworks/base/core/java/android/content/pm/
H A DPackageSharedLibraryUpdater.java49 <T> ArrayList<T> prefix(@Nullable ArrayList<T> cur, T val) { argument
53 cur.add(0, val);
/frameworks/base/core/jni/hwbinder/
H A DEphemeralStorage.cpp60 const char *val = env->GetStringUTFChars(obj, NULL); local
65 item.mPtr = (void *)val;
69 s->setToExternal((char *)val, strlen(val));
79 const Type *val = env->Get ## NewType ## ArrayElements(obj, NULL); \
84 item.mPtr = (void *)val; \
90 vec->setToExternal(const_cast<Type *>(val), len); \
/frameworks/base/libs/androidfw/tests/
H A DIdmap_test.cpp63 Res_value val; local
64 ssize_t block = target_table_.getResource(R::string::test2, &val, false);
66 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType);
69 ASSERT_LT(val.data, pool->size());
72 const char16_t* target_str16 = pool->stringAt(val.data, &str_len);
79 ssize_t new_block = target_table_.getResource(R::string::test2, &val, false);
82 ASSERT_EQ(Res_value::TYPE_STRING, val.dataType);
85 ASSERT_LT(val.data, pool->size());
87 target_str16 = pool->stringAt(val.data, &str_len);
116 Res_value val; local
[all...]
H A DSplit_test.cpp85 Res_value val; local
87 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0,
98 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType);
113 Res_value val; local
115 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0,
122 EXPECT_EQ(Res_value::TYPE_STRING, val.dataType);
162 Res_value val; local
164 ssize_t block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0,
174 block = table.getResource(R::string::test1, &val, MAY_NOT_BE_BAG, 0,
218 Res_value val; local
[all...]
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java34 public void addDays(int val) { argument
35 mTime += val * DAY_IN_MILLIS;
38 public void addWeeks(int val) { argument
39 mTime += val * WEEK_IN_MILLIS;
42 public void addMonths(int val) { argument
43 mTime += val * MONTH_IN_MILLIS;
46 public void addYears(int val) { argument
47 mTime += val * YEAR_IN_MILLIS;
/frameworks/base/tools/aapt/
H A DResourceFilter.cpp29 AaptLocaleValue val; local
30 if (val.initFromFilterString(part)) {
33 val.writeTo(&entry.first);
/frameworks/native/libs/binder/tests/
H A DbinderTextOutputTest.cpp49 #define CHECK_VAL_(val, singleline) \
52 ss << val; \
54 CHECK_LOG_(val, s.c_str(), singleline); \
58 #define CHECK_VAL(val) CHECK_VAL_(val, true)
108 android::Parcel val; local
109 CHECK_LOG(val, "Parcel(NULL)");
114 android::HexDump val(buf, sizeof(buf));
115 CHECK_LOG(val, "03020100 07060504 0b0a0908 0f0e0d0c '................'");
120 android::HexDump val(bu
130 int32_t val = 321; //0x141 local
[all...]
/frameworks/rs/cpp/util/
H A DStrongPointer.h31 TextOutput& printStrongPointer(TextOutput& to, const void* val);
115 TextOutput& operator<<(TextOutput& to, const sp<T>& val);
212 inline TextOutput& operator<<(TextOutput& to, const sp<T>& val) argument
214 return printStrongPointer(to, val.get());
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
H A DUT_bug_char.java34 private Byte2 pack_b2(byte[] val) { argument
35 assert val.length == 2;
36 Log.i("bug_char", "pack_b2 " + val[0] + " " + val[1]);
37 return new Byte2(val[0], val[1]);
/frameworks/av/cmds/screenrecord/
H A DTextRenderer.cpp62 static bool isPowerOfTwo(uint32_t val) { argument
64 return (val & (val -1)) == 0;
67 static uint32_t powerOfTwoCeil(uint32_t val) { argument
69 val--;
70 val |= val >> 1;
71 val |= val >> 2;
72 val |
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DAUtils.h90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
/frameworks/av/media/libeffects/loudness/common/core/
H A Dbyte_swapper.h42 static T Swap(const T &val) { argument
43 T new_val = val;
56 static T Swap(const T &val) { argument
57 return val;
63 static T Swap(const T &val) { argument
65 const char *o = (const char *)&val;
75 static T Swap(const T &val) { argument
77 const char *o = (const char *)&val;
89 static T Swap(const T &val) { argument
90 T new_val = val;
106 SwapBytes(const T &val, bool force_swap) argument
[all...]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DAUtils.h90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DAUtils.h90 inline static T periodicError(const T &val, const T &period) { argument
91 T err = abs(val) % period;
/frameworks/base/cmds/statsd/tests/
H A Dindexed_priority_queue_test.cpp25 AATest(uint32_t val, std::string a, std::string b) : val(val), a(a), b(b) { argument
28 const int val; member in struct:AATest
34 return (a->val < b->val);
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
H A DNumericalWatcher.java62 private int sanitize(int val) { argument
63 if (val > mMax) {
64 val = mMax;
65 } else if (val < mMin) {
66 val = mMin;
68 return val;
/frameworks/base/core/java/android/os/
H A DCommonTimeUtils.java70 public int transactSetInt(int method_code, int val) { argument
76 data.writeInt(val);
112 public int transactSetLong(int method_code, long val) { argument
118 data.writeLong(val);
154 public int transactSetString(int method_code, String val) { argument
160 data.writeString(val);
H A DStatsLogEventWrapper.java76 private void write4Bytes(int val) { argument
77 mStorage.write(val);
78 mStorage.write(val >>> 8);
79 mStorage.write(val >>> 16);
80 mStorage.write(val >>> 24);
83 private void write8Bytes(long val) { argument
84 write4Bytes((int) (val & 0xFFFFFFFF)); // keep the lowe 32-bits
85 write4Bytes((int) (val >>> 32)); // Write the high 32-bits.
91 public void writeInt(int val) { argument
93 write4Bytes(val);
99 writeLong(long val) argument
107 writeFloat(float val) argument
116 writeString(String val) argument
[all...]
/frameworks/base/core/java/android/view/
H A DRoundScrollbarRenderer.java97 private static float clamp(float val, float min, float max) { argument
98 if (val < min) {
100 } else if (val > max) {
103 return val;
/frameworks/base/graphics/java/android/graphics/
H A DPorterDuff.java380 public static Mode intToMode(int val) { argument
381 switch (val) {
/frameworks/base/libs/hwui/
H A DVertex.h48 static inline void set(Vertex* vertex, Vector2 val) { set(vertex, val.x, val.y); } argument

Completed in 433 milliseconds

123456789