Home
last modified time | relevance | path

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

12

/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java176 BitwiseOutputStream bos = new BitwiseOutputStream(10); in createBearerDataStream() local
177 bos.write(8, SUBPARAM_MESSAGE_IDENTIFIER); in createBearerDataStream()
178 bos.write(8, 3); // length: 3 bytes in createBearerDataStream()
179 bos.write(4, BearerData.MESSAGE_TYPE_DELIVER); in createBearerDataStream()
180 bos.write(8, ((messageId >>> 8) & 0xff)); in createBearerDataStream()
181 bos.write(8, (messageId & 0xff)); in createBearerDataStream()
182 bos.write(1, 0); // no User Data Header in createBearerDataStream()
183 bos.write(3, 0); // reserved in createBearerDataStream()
186 bos.write(8, SUBPARAM_PRIORITY_INDICATOR); in createBearerDataStream()
187 bos.write(8, 1); // length: 1 byte in createBearerDataStream()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java1214 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in checkBuildOfferPacket() local
1216 bos.write(new byte[] { in checkBuildOfferPacket()
1224 bos.write(CLIENT_ADDR.getAddress()); in checkBuildOfferPacket()
1226 bos.write(SERVER_ADDR.getAddress()); in checkBuildOfferPacket()
1228 bos.write(INADDR_ANY.getAddress()); in checkBuildOfferPacket()
1230 bos.write(CLIENT_MAC); in checkBuildOfferPacket()
1233 bos.write(new byte[202]); in checkBuildOfferPacket()
1236 bos.write(new byte[]{ in checkBuildOfferPacket()
1243 bos.write(new byte[] { (byte) 0x36, (byte) 0x04 }); in checkBuildOfferPacket()
1244 bos.write(SERVER_ADDR.getAddress()); in checkBuildOfferPacket()
[all …]
/packages/modules/GeoTZ/s2storage/src/write/java/com/android/timezone/location/storage/block/write/
DBlockFileWriter.java112 try (TypedOutputStream bos = new TypedOutputStream(new FileOutputStream(mOutputFile))) { in writeHeaderAndAppendTempFile() argument
114 bos.writeChar(mMagic); in writeHeaderAndAppendTempFile()
115 bos.writeInt(mVersion); in writeHeaderAndAppendTempFile()
116 bos.writeBytes(new byte[10]); // Reserved in writeHeaderAndAppendTempFile()
117 bos.writeInt(mBlockInfos.size()); in writeHeaderAndAppendTempFile()
137 bos.writeInt(blockInfoSize); in writeHeaderAndAppendTempFile()
138 bos.writeInt(blockInfo.getType()); in writeHeaderAndAppendTempFile()
139 bos.writeLong(blockInfo.getBlockStartByteOffset() + headerBytesAdjustment); in writeHeaderAndAppendTempFile()
140 bos.writeLong(blockInfo.getBlockSizeBytes()); in writeHeaderAndAppendTempFile()
141 bos.writeTinyByteArray(extraBytes); in writeHeaderAndAppendTempFile()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DInternalDataUtils.java80 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in serializeInternalProviderData() local
81 try (ObjectOutputStream out = new ObjectOutputStream(bos)) { in serializeInternalProviderData()
85 return bos.toByteArray(); in serializeInternalProviderData()
126 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in serializeInternalProviderData() local
127 try (ObjectOutputStream out = new ObjectOutputStream(bos)) { in serializeInternalProviderData()
130 return bos.toByteArray(); in serializeInternalProviderData()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java55 BufferedOutputStream bos = null; in executeAction() local
67 bos = new BufferedOutputStream(new FileOutputStream(outFile)); in executeAction()
73 bos.write(buffer, 0, bytesRead); in executeAction()
80 if (bos != null) { in executeAction()
82 bos.close(); in executeAction()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp136 StringBuffer bos; in TEST() local
138 OutputStream eos(bos, false); // Not writing BOM in TEST()
152 EXPECT_EQ(bos.GetSize(), bos2.GetSize()); in TEST()
153 EXPECT_EQ(0, memcmp(bos.GetString(), bos2.GetString(), bos2.GetSize())); in TEST()
177 StringBuffer bos; in TEST() local
178 Writer<StringBuffer> writer(bos); in TEST()
191 EXPECT_EQ(bos.GetSize(), bos2.GetSize()); in TEST()
192 EXPECT_EQ(0, memcmp(bos.GetString(), bos2.GetString(), bos2.GetSize())); in TEST()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsCollectionTest.java129 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyNetwork() local
130 collection.write(bos); in testReadLegacyNetwork()
138 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyNetwork()
157 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUid() local
158 collection.write(bos); in testReadLegacyUid()
166 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUid()
185 final ByteArrayOutputStream bos = new ByteArrayOutputStream(); in testReadLegacyUidTags() local
186 collection.write(bos); in testReadLegacyUidTags()
194 collection.read(new ByteArrayInputStream(bos.toByteArray())); in testReadLegacyUidTags()
/packages/modules/adb/tools/
Dcheck_ms_os_desc.cpp160 libusb_bos_descriptor* bos; in check_ms_os_desc_v2() local
161 int rc = libusb_get_bos_descriptor(device_handle, &bos); in check_ms_os_desc_v2()
168 for (size_t i = 0; i < bos->bNumDeviceCaps; ++i) { in check_ms_os_desc_v2()
169 libusb_bos_dev_capability_descriptor* desc = bos->dev_capability[i]; in check_ms_os_desc_v2()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java328 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in readRaw() local
333 bos.write(buf, 0, read); in readRaw()
335 bos.flush(); in readRaw()
336 return bos.toByteArray(); in readRaw()
339 bos.close(); in readRaw()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiBackupRestoreTest.java1166 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createWpaSupplicantConfBackupData() local
1167 OutputStreamWriter out = new OutputStreamWriter(bos); in createWpaSupplicantConfBackupData()
1173 return bos.toByteArray(); in createWpaSupplicantConfBackupData()
1249 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in createIpConfBackupData() local
1250 DataOutputStream out = new DataOutputStream(bos); in createIpConfBackupData()
1264 return bos.toByteArray(); in createIpConfBackupData()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DOsuServerConnection.java527 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in getCert() local
534 bos.write(buf, 0, rd); in getCert()
537 bos.flush(); in getCert()
538 byte[] byteArray = bos.toByteArray(); in getCert()
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java323 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in lookupAddress() local
324 DataOutputStream dos = new DataOutputStream(bos); in lookupAddress()
349 mGeoCache.insert(locationKey, bos.toByteArray()); in lookupAddress()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMoviePlayer.java504 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setBookmark() local
505 DataOutputStream dos = new DataOutputStream(bos); in setBookmark()
510 cache.insert(uri.hashCode(), bos.toByteArray()); in setBookmark()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java741 ByteArrayOutputStream bos = new ByteArrayOutputStream(input.length); in compressToBase64() local
746 bos.write(buf, 0, count); in compressToBase64()
751 bos.close(); in compressToBase64()
758 byte[] compressed = bos.toByteArray(); in compressToBase64()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityRoboTest.java428 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in bitmapToInputStream() local
429 bitmap.compress(Bitmap.CompressFormat.PNG, 0 /* ignored for PNG */, bos); in bitmapToInputStream()
430 byte[] bitmapdata = bos.toByteArray(); in bitmapToInputStream()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DLauncherModelHelper.java368 ByteArrayOutputStream bos = new ByteArrayOutputStream(); in setupDefaultLayoutProvider() local
369 builder.build(new OutputStreamWriter(bos)); in setupDefaultLayoutProvider()
372 new ByteArrayInputStream(bos.toByteArray())); in setupDefaultLayoutProvider()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dstream.md174 FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer));
177 OutputStream eos(bos, true); // Write BOM
225 FileWriteStream bos(fp, writeBuffer, sizeof(writeBuffer));
228 OutputStream eos(bos, type, putBOM);
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsUtils.java2619 final BufferedOutputStream bos = new BufferedOutputStream(fos);
2621 bos.write(rawPdu);
2622 bos.flush();
2624 bos.close();
/packages/inputmethods/LatinIME/dictionaries/
Dsv_wordlist.combined.gz
Dda_wordlist.combined.gz1dictionary=main:da,locale=da,description=Dansk,date=1393228134, ...
Dcs_wordlist.combined.gz1dictionary=main:cs,locale=cs,description=Čeština,date=1393228134, ...
Dro_wordlist.combined.gz
Dpt_BR_wordlist.combined.gz1dictionary=main:pt_br,locale=pt_BR,description=Português (Brasil),date ...
Dlt_wordlist.combined.gz1dictionary=main:lt,locale=lt,description=Lietuvių,date=1393228136, ...
Dsl_wordlist.combined.gz

12