Home
last modified time | relevance | path

Searched refs:bos (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaSmsCbTest.java85 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local
86 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
87 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
88 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
89 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
90 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
91 bos.write(1, 0); // no User Data Header in createBearerDataStream()
92 bos.write(3, 0); // reserved in createBearerDataStream()
95 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
96 bos.write(8, 1); // length: 1 byte in createBearerDataStream()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java74 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
75 collection.write(new DataOutputStream(bos)); in testReadLegacyNetwork()
83 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
100 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
101 collection.write(new DataOutputStream(bos)); in testReadLegacyUid()
109 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
126 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
127 collection.write(new DataOutputStream(bos)); in testReadLegacyUidTags()
135 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DFsUtils.java55 public static int writeLayoutTestListRecursively(BufferedOutputStream bos, in writeLayoutTestListRecursively() argument
76 testCount += writeLayoutTestListRecursively(bos, s, ignoreResultsInDir); in writeLayoutTestListRecursively()
92 bos.write(s.getBytes()); in writeLayoutTestListRecursively()
95 bos.write((" IGNORE_RESULT").getBytes()); in writeLayoutTestListRecursively()
97 bos.write('\n'); in writeLayoutTestListRecursively()
106 BufferedOutputStream bos = new BufferedOutputStream( in updateTestStatus() local
108 bos.write(s.getBytes()); in updateTestStatus()
109 bos.close(); in updateTestStatus()
DMenu.java79 … BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tests_list, false)); in generateTestList() local
81 bos, path, false); // Don't ignore results in generateTestList()
82 bos.flush(); in generateTestList()
83 bos.close(); in generateTestList()
DLayoutTestsAutoTest.java439 … BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(tests_list, false)); in generateTestList() local
440 … FsUtils.writeLayoutTestListRecursively(bos, getTestPath(), false); // Don't ignore results in generateTestList()
441 bos.flush(); in generateTestList()
442 bos.close(); in generateTestList()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java375 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeFile() local
377 writer.write(bos); in writeFile()
378 bos.flush(); in writeFile()
381 IoUtils.closeQuietly(bos); in writeFile()
/frameworks/base/services/java/com/android/server/pm/
DUserManager.java211 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserLocked() local
215 serializer.setOutput(bos, "utf-8"); in writeUserLocked()
254 final BufferedOutputStream bos = new BufferedOutputStream(fos); in writeUserListLocked() local
258 serializer.setOutput(bos, "utf-8"); in writeUserListLocked()