Home
last modified time | relevance | path

Searched refs:val (Results 1 – 25 of 128) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/bluetooth/
DBluetoothTestRunner.java56 String val = arguments.getString("enable_iterations"); in onCreate() local
57 if (val != null) { in onCreate()
59 sEnableIterations = Integer.parseInt(val); in onCreate()
65 val = arguments.getString("discoverable_iterations"); in onCreate()
66 if (val != null) { in onCreate()
68 sDiscoverableIterations = Integer.parseInt(val); in onCreate()
74 val = arguments.getString("scan_iterations"); in onCreate()
75 if (val != null) { in onCreate()
77 sScanIterations = Integer.parseInt(val); in onCreate()
83 val = arguments.getString("pair_iterations"); in onCreate()
[all …]
/frameworks/base/tools/aapt/
DBundle.h64 void setVerbose(bool val) { mVerbose = val; } in setVerbose() argument
66 void setAndroidList(bool val) { mAndroidList = val; } in setAndroidList() argument
68 void setForce(bool val) { mForce = val; } in setForce() argument
69 void setGrayscaleTolerance(int val) { mGrayscaleTolerance = val; } in setGrayscaleTolerance() argument
72 void setMakePackageDirs(bool val) { mMakePackageDirs = val; } in setMakePackageDirs() argument
74 void setUpdate(bool val) { mUpdate = val; } in setUpdate() argument
76 void setExtending(bool val) { mExtending = val; } in setExtending() argument
78 void setRequireLocalization(bool val) { mRequireLocalization = val; } in setRequireLocalization() argument
80 void setPseudolocalize(bool val) { mPseudolocalize = val; } in setPseudolocalize() argument
82 void setWantUTF16(bool val) { mWantUTF16 = val; } in setWantUTF16() argument
[all …]
DZipEntry.h110 void setMarked(bool val) { mMarked = val; } in setMarked() argument
122 static inline void putShortLE(unsigned char* buf, short val) { in putShortLE() argument
123 buf[0] = (unsigned char) val; in putShortLE()
124 buf[1] = (unsigned char) (val >> 8); in putShortLE()
126 static inline void putLongLE(unsigned char* buf, long val) { in putLongLE() argument
127 buf[0] = (unsigned char) val; in putLongLE()
128 buf[1] = (unsigned char) (val >> 8); in putLongLE()
129 buf[2] = (unsigned char) (val >> 16); in putLongLE()
130 buf[3] = (unsigned char) (val >> 24); in putLongLE()
/frameworks/base/libs/utils/
DTextOutput.cpp37 TextOutput& operator<<(TextOutput& to, bool val) in operator <<() argument
39 if (val) to.print("true", 4); in operator <<()
44 TextOutput& operator<<(TextOutput& to, int val) in operator <<() argument
47 sprintf(buf, "%d", val); in operator <<()
52 TextOutput& operator<<(TextOutput& to, long val) in operator <<() argument
55 sprintf(buf, "%ld", val); in operator <<()
60 TextOutput& operator<<(TextOutput& to, unsigned int val) in operator <<() argument
63 sprintf(buf, "%u", val); in operator <<()
68 TextOutput& operator<<(TextOutput& to, unsigned long val) in operator <<() argument
71 sprintf(buf, "%lu", val); in operator <<()
[all …]
Dmisc.cpp171 unsigned int roundUpPower2(unsigned int val) in roundUpPower2() argument
173 val--; in roundUpPower2()
174 val |= val >> 1; in roundUpPower2()
175 val |= val >> 2; in roundUpPower2()
176 val |= val >> 4; in roundUpPower2()
177 val |= val >> 8; in roundUpPower2()
178 val |= val >> 16; in roundUpPower2()
179 val++; in roundUpPower2()
181 return val; in roundUpPower2()
DDebug.cpp59 static inline char makehexdigit(uint32_t val) in makehexdigit() argument
61 return "0123456789abcdef"[val&0xF]; in makehexdigit()
64 static char* appendhexnum(uint32_t val, char* out) in appendhexnum() argument
67 *out++ = makehexdigit( val>>i ); in appendhexnum()
73 static inline char makeupperhexdigit(uint32_t val) in makeupperhexdigit() argument
75 return "0123456789ABCDEF"[val&0xF]; in makeupperhexdigit()
78 static char* appendupperhexnum(uint32_t val, char* out) in appendupperhexnum() argument
81 *out++ = makeupperhexdigit( val>>i ); in appendupperhexnum()
253 const unsigned char val = *(pos+startIndex+(index*dir)); in printHexData() local
254 *c++ = makehexdigit(val>>4); in printHexData()
[all …]
/frameworks/base/core/java/android/os/
DParcel.java391 public final native void writeInt(int val); in writeInt() argument
397 public final native void writeLong(long val); in writeLong() argument
403 public final native void writeFloat(float val); in writeFloat() argument
409 public final native void writeDouble(double val); in writeDouble() argument
415 public final native void writeString(String val); in writeString() argument
422 public final void writeCharSequence(CharSequence val) { in writeCharSequence() argument
423 TextUtils.writeToParcel(val, this, 0); in writeCharSequence()
430 public final native void writeStrongBinder(IBinder val); in writeStrongBinder() argument
436 public final void writeStrongInterface(IInterface val) { in writeStrongInterface() argument
437 writeStrongBinder(val == null ? null : val.asBinder()); in writeStrongInterface()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DTreeMapTest.java51 int val = mRandom.nextInt(1000); in doTest() local
52 if (SPEW) System.out.println("Adding val = " + val); in doTest()
53 if (val < minVal) { in doTest()
54 minVal = val; in doTest()
56 if (val > maxVal) { in doTest()
57 maxVal = val; in doTest()
59 tm.put(new Integer(val), "V:" + val); in doTest()
60 hm.put(new Integer(val), "V:" + val); in doTest()
77 for (int val = 0; val < 1000; val++) { in doTest()
78 Integer vv = new Integer(val); in doTest()
[all …]
/frameworks/base/media/libstagefright/codecs/amrnb/enc/src/
Dset_sign.cpp252 Word16 val, min; in set_sign() local
258 val = dn[i]; in set_sign()
260 if (val >= 0) in set_sign()
267 val = negate(val); in set_sign()
268 dn[i] = val; /* modify dn[] according to the fixed sign */ in set_sign()
271 dn2[i] = val; in set_sign()
498 Word16 val; in set_sign12k2() local
525 val = *(p_cn++); in set_sign12k2()
526 s = L_mac(s, val, val, pOverflow); in set_sign12k2()
527 val = *(p_dn++); in set_sign12k2()
[all …]
/frameworks/base/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_seek_synch.cpp133 uint16 val; in pvmp3_frame_synch() local
215 val = (tmp1 << 3); in pvmp3_frame_synch()
216 val |= (tmp2 >> 5); in pvmp3_frame_synch()
221 val = 0; // force mismatch in pvmp3_frame_synch()
224 if (val == SYNC_WORD) in pvmp3_frame_synch()
284 uint16 val; in pvmp3_header_sync() local
290 val = (uint16)getUpTo17bits(inputStream, SYNC_WORD_LNGTH); in pvmp3_header_sync()
292 while (((val&SYNC_WORD) != SYNC_WORD) && (inputStream->usedBits < availableBits)) in pvmp3_header_sync()
294 val <<= 8; in pvmp3_header_sync()
295 val |= getUpTo9bits(inputStream, 8); in pvmp3_header_sync()
[all …]
/frameworks/base/core/java/android/net/http/
DHeaders.java172 String val = buffer.substringTrimmed(pos, buffer.length()); in parseHeader() local
180 mHeaders[IDX_TRANSFER_ENCODING] = val; in parseHeader()
187 if (HTTP.IDENTITY_CODING.equalsIgnoreCase(val)) { in parseHeader()
200 mHeaders[IDX_CONTENT_LEN] = val; in parseHeader()
202 contentLength = Long.parseLong(val); in parseHeader()
213 mHeaders[IDX_CONTENT_TYPE] = val; in parseHeader()
218 mHeaders[IDX_CONTENT_ENCODING] = val; in parseHeader()
223 mHeaders[IDX_CONN_DIRECTIVE] = val; in parseHeader()
229 mHeaders[IDX_LOCATION] = val; in parseHeader()
234 mHeaders[IDX_PROXY_CONNECTION] = val; in parseHeader()
[all …]
/frameworks/base/media/libeffects/lvm/lib/Common/src/
DShift_Sat_v32xv32.c28 void Shift_Sat_v32xv32 (const LVM_INT16 val, in Shift_Sat_v32xv32() argument
36 if(val>0) in Shift_Sat_v32xv32()
45 b=(a<<val); in Shift_Sat_v32xv32()
47 if( (b>>val) != a ) /* if overflow occured, right shift will show difference*/ in Shift_Sat_v32xv32()
63 else if(val<0) in Shift_Sat_v32xv32()
65 RShift=(LVM_INT16)(-val); in Shift_Sat_v32xv32()
DShift_Sat_v16xv16.c28 void Shift_Sat_v16xv16 (const LVM_INT16 val, in Shift_Sat_v16xv16() argument
36 if(val>0) in Shift_Sat_v16xv16()
43 temp = temp << val; in Shift_Sat_v16xv16()
60 else if(val<0) in Shift_Sat_v16xv16()
62 RShift=(LVM_INT16)(-val); in Shift_Sat_v16xv16()
/frameworks/base/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastcodemb.cpp486 Int i, val, sav = 0; in getBlockSAV() local
491 val = *block++; in getBlockSAV()
492 if (val > 0) sav += val; in getBlockSAV()
493 else sav -= val; in getBlockSAV()
494 val = *block++; in getBlockSAV()
495 if (val > 0) sav += val; in getBlockSAV()
496 else sav -= val; in getBlockSAV()
497 val = *block++; in getBlockSAV()
498 if (val > 0) sav += val; in getBlockSAV()
499 else sav -= val; in getBlockSAV()
[all …]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DPowerCommand.java48 int val; in run() local
50 val = BatteryManager.BATTERY_PLUGGED_AC | in run()
54 val = 0; in run()
56 val = BatteryManager.BATTERY_PLUGGED_USB; in run()
58 val = BatteryManager.BATTERY_PLUGGED_AC; in run()
68 pm.setStayOnSetting(val); in run()
/frameworks/base/media/libeffects/lvm/lib/Common/lib/
DVectorArithmetic.h32 void LoadConst_16( const LVM_INT16 val,
36 void LoadConst_32( const LVM_INT32 val,
53 const LVM_INT16 val,
66 const LVM_INT16 val,
92 const LVM_INT16 val,
97 const LVM_INT16 val,
113 void Shift_Sat_v16xv16 ( const LVM_INT16 val,
118 void Shift_Sat_v32xv32 ( const LVM_INT16 val,
/frameworks/base/include/binder/
DParcel.h85 status_t writeInt32(int32_t val);
86 status_t writeInt64(int64_t val);
87 status_t writeFloat(float val);
88 status_t writeDouble(double val);
89 status_t writeIntPtr(intptr_t val);
94 status_t writeStrongBinder(const sp<IBinder>& val);
95 status_t writeWeakBinder(const wp<IBinder>& val);
96 status_t write(const Flattenable& val);
112 status_t writeObject(const flat_binder_object& val, bool nullMetaData);
140 status_t read(Flattenable& val) const;
[all …]
/frameworks/base/core/java/com/android/internal/util/
DXmlUtils.java178 public static final void writeMapXml(Map val, OutputStream out) in writeMapXml() argument
184 writeMapXml(val, null, serializer); in writeMapXml()
200 public static final void writeListXml(List val, OutputStream out) in writeListXml() argument
207 writeListXml(val, null, serializer); in writeListXml()
225 public static final void writeMapXml(Map val, String name, XmlSerializer out) in writeMapXml() argument
228 if (val == null) { in writeMapXml()
234 Set s = val.entrySet(); in writeMapXml()
264 public static final void writeListXml(List val, String name, XmlSerializer out) in writeListXml() argument
267 if (val == null) { in writeListXml()
278 int N = val.size(); in writeListXml()
[all …]
/frameworks/base/core/java/android/speech/srec/
DWaveHeader.java257 private static void writeInt(OutputStream out, int val) throws IOException { in writeInt() argument
258 out.write(val >> 0); in writeInt()
259 out.write(val >> 8); in writeInt()
260 out.write(val >> 16); in writeInt()
261 out.write(val >> 24); in writeInt()
264 private static void writeShort(OutputStream out, short val) throws IOException { in writeShort() argument
265 out.write(val >> 0); in writeShort()
266 out.write(val >> 8); in writeShort()
/frameworks/base/libs/rs/
DrsUtils.h63 T rsFindHighBit(T val) in rsFindHighBit() argument
66 while(val > 1) { in rsFindHighBit()
68 val>>=1; in rsFindHighBit()
74 bool rsIsPow2(T val) in rsIsPow2() argument
76 return (val & (val-1)) == 0; in rsIsPow2()
/frameworks/base/include/utils/
DObbFile.h110 static inline void put4LE(unsigned char* buf, uint32_t val) { in put4LE() argument
111 buf[0] = val & 0xFF; in put4LE()
112 buf[1] = (val >> 8) & 0xFF; in put4LE()
113 buf[2] = (val >> 16) & 0xFF; in put4LE()
114 buf[3] = (val >> 24) & 0xFF; in put4LE()
DList.h50 explicit _Node(const T& val) : mVal(val) {} in _Node() argument
56 inline void setVal(const T& val) { mVal = val; } in setVal() argument
207 void push_front(const T& val) { insert(begin(), val); } in push_front() argument
208 void push_back(const T& val) { insert(end(), val); } in push_back() argument
211 iterator insert(iterator posn, const T& val) in insert() argument
213 _Node* newNode = new _Node(val); // alloc & copy-construct in insert()
/frameworks/base/core/java/android/text/
DPackedObjectVector.java142 Object val = mValues[i * mColumns + j]; in moveRowGapTo() local
144 mValues[destrow * mColumns + j] = val; in moveRowGapTo()
158 Object val = mValues[i * mColumns + j]; in moveRowGapTo() local
160 mValues[destrow * mColumns + j] = val; in moveRowGapTo()
175 Object val = mValues[i * mColumns + j]; in dump() local
178 System.out.print(val + " "); in dump()
180 System.out.print("(" + val + ") "); in dump()
/frameworks/base/libs/binder/
DParcel.cpp589 status_t Parcel::writeInt32(int32_t val) in writeInt32() argument
591 return writeAligned(val); in writeInt32()
594 status_t Parcel::writeInt64(int64_t val) in writeInt64() argument
596 return writeAligned(val); in writeInt64()
599 status_t Parcel::writeFloat(float val) in writeFloat() argument
601 return writeAligned(val); in writeFloat()
604 status_t Parcel::writeDouble(double val) in writeDouble() argument
606 return writeAligned(val); in writeDouble()
609 status_t Parcel::writeIntPtr(intptr_t val) in writeIntPtr() argument
611 return writeAligned(val); in writeIntPtr()
[all …]
/frameworks/base/cmds/rawbu/
Dbackup.cpp168 static int write_int32(FILE* fh, int32_t val) in write_int32() argument
170 int res = fwrite(&val, 1, sizeof(val), fh); in write_int32()
171 if (res != sizeof(val)) { in write_int32()
179 static int write_int64(FILE* fh, int64_t val) in write_int64() argument
181 int res = fwrite(&val, 1, sizeof(val), fh); in write_int64()
182 if (res != sizeof(val)) { in write_int64()
404 int32_t val; in read_int32() local
405 if (fread(&val, 1, sizeof(val), fh) != sizeof(val)) { in read_int32()
410 return val; in read_int32()
415 int64_t val; in read_int64() local
[all …]

123456