/frameworks/base/packages/ExtServices/src/android/ext/services/notification/ |
H A D | Assistant.java | 158 final XmlSerializer out = new FastXmlSerializer(); 159 out.setOutput(stream, StandardCharsets.UTF_8.name()); 160 writeXml(out); 169 protected void writeXml(XmlSerializer out) throws IOException { argument 170 out.startDocument(null, true); 171 out.startTag(null, TAG_ASSISTANT); 172 out.attribute(null, ATTR_VERSION, Integer.toString(DB_VERSION)); 177 out.startTag(null, TAG_IMPRESSION); 178 out.attribute(null, ATT_KEY, entry.getKey()); 179 entry.getValue().writeXml(out); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
H A D | DockState.java | 347 private void getMappedRect(RectF bounds, int width, int height, Rect out) { argument 348 out.set((int) (bounds.left * width), (int) (bounds.top * height),
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | PackageManagerBackupAgent.java | 84 // IMPORTANT: this key needs to come first in the restore data stream (to find out 331 // metadata again. In either case, take it out of mExisting so that 468 private static void writeSignatureHashArray(DataOutputStream out, ArrayList<byte[]> hashes) argument 471 out.writeInt(hashes.size()); 475 out.writeInt(buffer.length); 476 out.write(buffer); 527 // Util: parse out an existing state file into a usable structure 620 // Util: write out our new backup state file 625 DataOutputStream out = new DataOutputStream(outbuf); 630 out [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsRecorder.java | 392 public void write(OutputStream out) throws IOException { argument 393 mCollection.write(new DataOutputStream(out)); 429 public void write(OutputStream out) throws IOException { argument 430 mTemp.write(new DataOutputStream(out));
|
/frameworks/base/services/core/java/com/android/server/slice/ |
H A D | SlicePermissionManager.java | 59 * The amount of time we delay flushing out permission changes to disk because they usually 66 // If/when this bumps again we'll need to write it out in the disk somewhere. 166 public void writeBackup(XmlSerializer out) throws IOException, XmlPullParserException { argument 168 out.startTag(null, TAG_LIST); 169 out.attribute(null, ATT_VERSION, String.valueOf(DB_VERSION)); 189 p.writeTo(out); 193 out.endTag(null, TAG_LIST); 331 XmlSerializer out = XmlPullParserFactory.newInstance().newSerializer(); 332 out.setOutput(stream, Encoding.UTF_8.name()); 334 persistable.writeTo(out); [all...] |
/frameworks/base/services/print/java/com/android/server/print/ |
H A D | PrintManagerService.java | 131 public void onShellCommand(FileDescriptor in, FileDescriptor out, argument 134 new PrintShellCommand(this).exec(this, in, out, err, args, callback, resultReceiver);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsDatabase.java | 370 * Figures out what to extract from the given IntervalStats object. 611 DataOutputStream out = new DataOutputStream(baos); 613 out.writeInt(BACKUP_VERSION); 615 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_DAILY].size()); 618 writeIntervalStatsToStream(out, 622 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_WEEKLY].size()); 625 writeIntervalStatsToStream(out, 629 out.writeInt(mSortedStatFiles[UsageStatsManager.INTERVAL_MONTHLY].size()); 632 writeIntervalStatsToStream(out, 636 out 729 writeIntervalStatsToStream(DataOutputStream out, AtomicFile statsFile) argument [all...] |
/frameworks/base/telephony/java/android/telephony/ims/ |
H A D | ImsStreamMediaProfile.java | 204 public void writeToParcel(Parcel out, int flags) { argument 205 out.writeInt(mAudioQuality); 206 out.writeInt(mAudioDirection); 207 out.writeInt(mVideoQuality); 208 out.writeInt(mVideoDirection); 209 out.writeInt(mRttMode);
|
/frameworks/base/tools/aapt2/ |
H A D | Resource.h | 267 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceId& res_id) { argument 268 return out << res_id.to_string(); 280 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceType& val) { argument 281 return out << to_string(val); 320 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceName& name) { argument 321 return out << name.to_string(); 365 inline ::std::ostream& operator<<(::std::ostream& out, const ResourceNameRef& name) { argument 366 return out << name.to_string();
|
H A D | ResourceValues.cpp | 45 std::ostream& operator<<(std::ostream& out, const Value& value) { argument 46 value.Print(&out); 47 return out; 93 void RawString::Print(std::ostream* out) const { 94 *out << "(raw string) " << *value; 143 void Reference::Print(std::ostream* out) const { 145 *out << "(reference) @"; 147 *out << "null"; 151 *out << "(attr-reference) ?"; 155 *out << "*"; 528 operator <<(std::ostream& out, const Attribute::Symbol& s) argument 599 std::ostringstream out; local 833 operator <<(std::ostream& out, const Style::Entry& entry) argument [all...] |
H A D | ResourceValues.h | 108 virtual void Print(std::ostream* out) const = 0; 114 friend std::ostream& operator<<(std::ostream& out, const Value& value); 170 void Print(std::ostream* out) const override; 187 bool Flatten(android::Res_value* out) const override; 189 void Print(std::ostream* out) const override; 202 void Print(std::ostream* out) const override; 236 void Print(std::ostream* out) const override; 253 void Print(std::ostream* out) const override; 273 void Print(std::ostream* out) const override; 287 void Print(std::ostream* out) cons 371 operator <<( std::ostream& out, const std::unique_ptr<T>& value) argument [all...] |
H A D | StringPool.cpp | 367 static bool EncodeString(const std::string& str, const bool utf8, BigBuffer* out, argument 383 EncodeString(kStringTooLarge, utf8, out, diag); 390 char* data = out->NextBlock<char>(total_size); 409 EncodeString(kStringTooLarge, utf8, out, diag); 417 char16_t* data = out->NextBlock<char16_t>(total_size); 434 bool StringPool::Flatten(BigBuffer* out, const StringPool& pool, bool utf8, argument 437 const size_t start_index = out->size(); 438 android::ResStringPool_header* header = out->NextBlock<android::ResStringPool_header>(); 447 uint32_t* indices = pool.size() != 0 ? out->NextBlock<uint32_t>(pool.size()) : nullptr; 449 pool.styles_.size() != 0 ? out 503 FlattenUtf8(BigBuffer* out, const StringPool& pool, IDiagnostics* diag) argument 507 FlattenUtf16(BigBuffer* out, const StringPool& pool, IDiagnostics* diag) argument [all...] |
/frameworks/base/tools/aapt2/java/ |
H A D | JavaClassGenerator.cpp | 259 // Look up the symbol so that we can write out in the comments what are possible legal values 459 // We list out the available values for the given attribute. 557 bool JavaClassGenerator::Generate(const StringPiece& package_name_to_generate, OutputStream* out, argument 559 return Generate(package_name_to_generate, package_name_to_generate, out, out_r_txt); 572 const StringPiece& out_package_name, OutputStream* out, 583 if (out != nullptr && options_.rewrite_callback_options) { 605 if (out != nullptr) { 626 if (out != nullptr && type->type == ResourceType::kStyleable && 633 if (out != nullptr) { 644 if (out ! 571 Generate(const StringPiece& package_name_to_generate, const StringPiece& out_package_name, OutputStream* out, OutputStream* out_r_txt) argument [all...] |
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 326 bool WriteAll(std::ostream& out, const BigBuffer& buffer) { argument 328 if (!out.write(reinterpret_cast<const char*>(b.buffer.get()), b.size)) {
|
/frameworks/ex/framesequence/jni/ |
H A D | FrameSequence_gif.cpp | 26 static int streamReader(GifFileType* fileType, GifByteType* out, int size) { argument 28 return (int) stream->read(out, size);
|
/frameworks/hardware/interfaces/sensorservice/libsensorndkbridge/ |
H A D | ASensorManager.cpp | 90 int ASensorManager::getSensorList(ASensorList *out) { argument 114 if (out) { 115 *out = reinterpret_cast<ASensorList>(mSensorList.get());
|
/frameworks/minikin/libs/minikin/ |
H A D | GreedyLineBreaker.cpp | 357 LineBreakResult out; local 371 out.breakPoints.push_back(breakPoint.offset); 372 out.widths.push_back(breakPoint.lineWidth); 373 out.ascents.push_back(extent.ascent); 374 out.descents.push_back(extent.descent); 375 out.flags.push_back((hasTabChar ? TAB_BIT : 0) | static_cast<int>(breakPoint.hyphenEdit)); 379 return out;
|
H A D | Locale.cpp | 67 static size_t unpackLanguageOrRegion(uint16_t in, char* out, uint8_t twoLetterBase, argument 74 out[0] = second + twoLetterBase; 75 out[1] = third + twoLetterBase; 78 out[0] = first + threeLetterBase; 79 out[1] = second + threeLetterBase; 80 out[2] = third + threeLetterBase; 89 static size_t unpackLanguage(uint16_t in, char* out) { argument 90 return unpackLanguageOrRegion(in, out, 'a', 'a'); 119 static size_t unpackRegion(uint16_t in, char* out) { argument 120 return unpackLanguageOrRegion(in, out, ' [all...] |
/frameworks/native/cmds/dumpstate/tests/ |
H A D | dumpstate_test.cpp | 155 out = GetCapturedStdout(); 165 out = GetCapturedStdout(); 199 std::string out, err; member in class:android::os::dumpstate::DumpstateTest 210 EXPECT_THAT(out, StrEq("stdout\n")); 218 EXPECT_THAT(out, 220 EXPECT_THAT(out, EndsWith("s was the duration of 'I AM GROOT' ------\n")); 227 EXPECT_THAT(out, StrEq("stdout\n")); 234 EXPECT_THAT(out, IsEmpty()); 241 EXPECT_THAT(out, StrEq("one\n")); 247 EXPECT_THAT(out, StrE 320 std::string out = GetCapturedStdout(); local 913 std::string out, err; member in class:android::os::dumpstate::DumpstateUtilTest [all...] |
/frameworks/native/cmds/lshal/ |
H A D | test.cpp | 124 out.str(""); 133 lshal = std::make_unique<Lshal>(out, err, serviceManager, serviceManager); 138 std::stringstream out; member in class:android::lshal::DebugTest 157 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.baz@1.0::IQuux\nfoo\nbar")); 165 EXPECT_THAT(out.str(), StrEq("android.hardware.tests.baz@1.0::IQuux\nbaz\nquux")); 180 MOCK_CONST_METHOD0(out, NullableOStream<std::ostream>()); 198 void dumpVintf(const NullableOStream<std::ostream>& out) { argument 199 return ListCommand::dumpVintf(out); 318 lshal = std::make_unique<Lshal>(out, err, serviceManager, passthruManager); 376 std::stringstream out; member in class:android::lshal::ListTest 605 std::stringstream out; member in class:android::lshal::HelpTest [all...] |
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | RecurrenceProcessor.java | 188 * Filter out the ones for events whose BYxxx rule is for 191 * Returns 0 if the event should not be filtered out 297 // Not allowed, filter it out. 309 // if we got to here, we didn't filter it out 314 * Filters out instances that don't match the BYSETPOS clause of a monthly recurrence rule. 369 continue; // out of range 376 continue; // out of range 728 * @param add Whether or not we should add to out, or remove from out. 729 * @param out th 733 expand(Time dtstart, EventRecurrence r, long rangeStartDateValue, long rangeEndDateValue, boolean add, TreeSet<Long> out) argument [all...] |
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
H A D | RecurrenceProcessorTest.java | 38 String[] out = new String[dates.length]; 42 out[i] = time.format2445(); 45 return out; 48 private static void printLists(String[] expected, String[] out) { argument 49 Log.i(TAG, " expected out"); 51 for (i = 0; i < expected.length && i < out.length; i++) { 53 + " " + out[i]); 58 for (; i < out.length; i++) { 59 Log.i(TAG, " [" + i + "] " + out[i]); 109 long[] out [all...] |
/frameworks/opt/net/voip/src/java/android/net/sip/ |
H A D | SipProfile.java | 195 * @throws IllegalArgumentException if the port number is out of range 326 public void writeToParcel(Parcel out, int flags) { argument 327 out.writeSerializable(mAddress); 328 out.writeString(mProxyAddress); 329 out.writeString(mPassword); 330 out.writeString(mDomain); 331 out.writeString(mProtocol); 332 out.writeString(mProfileName); 333 out.writeInt(mSendKeepAlive ? 1 : 0); 334 out [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiBackupRestore.java | 104 * Regex to mask out passwords in backup data dump. 150 final XmlSerializer out = new FastXmlSerializer(); 152 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 155 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); 157 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_BACKUP_DATA_VERSION); 159 writeNetworkConfigurationsToXml(out, configurations); 161 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); 182 XmlSerializer out, List<WifiConfiguration> configurations) 184 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWORK_LIST); 196 XmlUtil.writeNextSectionStart(out, XML_TAG_SECTION_HEADER_NETWOR 181 writeNetworkConfigurationsToXml( XmlSerializer out, List<WifiConfiguration> configurations) argument 207 writeNetworkConfigurationToXml(XmlSerializer out, WifiConfiguration configuration) argument [all...] |
H A D | WifiConfigStore.java | 119 * Alarm listener for flushing out any buffered writes. 277 final XmlSerializer out = new FastXmlSerializer(); 279 out.setOutput(outputStream, StandardCharsets.UTF_8.name()); 281 XmlUtil.writeDocumentStart(out, XML_TAG_DOCUMENT_HEADER); 282 XmlUtil.writeNextValue(out, XML_TAG_VERSION, CURRENT_CONFIG_STORE_DATA_VERSION); 292 XmlUtil.writeNextSectionStart(out, tag); 293 storeData.serializeData(out, shareData); 294 XmlUtil.writeNextSectionEnd(out, tag); 296 XmlUtil.writeDocumentEnd(out, XML_TAG_DOCUMENT_HEADER); 324 * Helper method to actually perform the writes to the file. This flushes out an 580 serializeData(XmlSerializer out, boolean shared) argument [all...] |