/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 29 void SerializeStringPoolToPb(const android::StringPool& pool, pb::StringPool* out_pb_pool, in SerializeStringPoolToPb() 45 pb::Source* out_pb_source) { in SerializeSourceToPb() 53 static pb::Visibility::Level SerializeVisibilityToPb(Visibility::Level state) { in SerializeVisibilityToPb() 56 return pb::Visibility::PRIVATE; in SerializeVisibilityToPb() 58 return pb::Visibility::PUBLIC; in SerializeVisibilityToPb() 62 return pb::Visibility::UNKNOWN; in SerializeVisibilityToPb() 65 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config) { in SerializeConfig() 72 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR); in SerializeConfig() 76 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL); in SerializeConfig() 89 pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL); in SerializeConfig() [all …]
|
D | ProtoDeserialize.cpp | 68 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb() 85 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR: in DeserializeConfigFromPb() 90 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL: in DeserializeConfigFromPb() 104 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL: in DeserializeConfigFromPb() 109 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_NORMAL: in DeserializeConfigFromPb() 114 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_LARGE: in DeserializeConfigFromPb() 119 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_XLARGE: in DeserializeConfigFromPb() 129 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_LONG: in DeserializeConfigFromPb() 134 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_NOTLONG: in DeserializeConfigFromPb() 144 case pb::Configuration_ScreenRound_SCREEN_ROUND_ROUND: in DeserializeConfigFromPb() [all …]
|
D | ProtoSerialize.h | 53 void SerializeValueToPb(const Value& value, pb::Value* out_value, 58 void SerializeItemToPb(const Item& item, pb::Item* out_item); 61 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node, 65 void SerializeXmlResourceToPb(const xml::XmlResource& resource, pb::XmlNode* out_node, 70 void SerializeStringPoolToPb(const android::StringPool& pool, pb::StringPool* out_pb_pool, 74 void SerializeConfig(const android::ConfigDescription& config, pb::Configuration* out_pb_config); 77 void SerializeTableToPb(const ResourceTable& table, pb::ResourceTable* out_table, 81 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
|
D | ProtoDeserialize.h | 34 std::unique_ptr<Value> DeserializeValueFromPb(const pb::Value& pb_value, 40 std::unique_ptr<Item> DeserializeItemFromPb(const pb::Item& pb_item, 46 std::unique_ptr<xml::XmlResource> DeserializeXmlResourceFromPb(const pb::XmlNode& pb_node, 49 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, 52 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, 56 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files, 59 bool DeserializeCompiledFileFromPb(const pb::internal::CompiledFile& pb_file,
|
/frameworks/native/libs/binder/tests/ |
D | binderPersistableBundleTest.cpp | 46 inline std::ostream& operator<<(std::ostream& out, PersistableBundle const& pb) { in operator <<() argument 48 for (auto const& key : pb.get##TYPENAME##Keys()) { \ in operator <<() 50 pb.get##TYPENAME(key, &val); \ in operator <<() 54 out << "size: " << pb.size() << std::endl; in operator <<() 78 PersistableBundle pb{}; in createSimplePersistableBundle() local 79 pb.putInt(kKey, 64); in createSimplePersistableBundle() 80 return pb; in createSimplePersistableBundle() 86 PersistableBundle pb{}; \ 88 pb.put##TYPENAME(kKey, expected); \ 91 EXPECT_EQ(pb.get##TYPENAME##Keys(), expectedKeys); \ [all …]
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 376 public IPlayerWrapper(PlayerBase pb) { in IPlayerWrapper() argument 377 mWeakPB = new WeakReference<PlayerBase>(pb); in IPlayerWrapper() 382 final PlayerBase pb = mWeakPB.get(); in start() local 383 if (pb != null) { in start() 384 pb.playerStart(); in start() 390 final PlayerBase pb = mWeakPB.get(); in pause() local 391 if (pb != null) { in pause() 392 pb.playerPause(); in pause() 398 final PlayerBase pb = mWeakPB.get(); in stop() local 399 if (pb != null) { in stop() [all …]
|
/frameworks/base/tools/aapt2/format/ |
D | Container_test.cpp | 44 pb::internal::CompiledFile pb_compiled_file; in TEST() 46 pb_compiled_file.set_type(pb::FileReference::PROTO_XML); in TEST() 51 pb::ResourceTable pb_table; in TEST() 52 pb::Package* pb_pkg = pb_table.add_package(); in TEST() 68 pb::internal::CompiledFile pb_new_file; in TEST() 79 pb::ResourceTable pb_new_table; in TEST()
|
D | Container.h | 41 bool AddResTableEntry(const pb::ResourceTable& table); 42 bool AddResFileEntry(const pb::internal::CompiledFile& file, android::KnownSizeInputStream* in); 61 bool GetResTable(pb::ResourceTable* out_table); 62 bool GetResFileOffsets(pb::internal::CompiledFile* out_file, off64_t* out_offset,
|
D | Container.cpp | 66 bool ContainerWriter::AddResTableEntry(const pb::ResourceTable& table) { in AddResTableEntry() 96 bool ContainerWriter::AddResFileEntry(const pb::internal::CompiledFile& file, in AddResFileEntry() 182 bool ContainerReaderEntry::GetResTable(pb::ResourceTable* out_table) { in GetResTable() 202 bool ContainerReaderEntry::GetResFileOffsets(pb::internal::CompiledFile* out_file, in GetResFileOffsets()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | PerfettoTrigger.java | 57 ProcessBuilder pb = new ProcessBuilder(TRIGGER_COMMAND, triggerName); in trigger() local 58 Log.v(TAG, "Triggering " + String.join(" ", pb.command())); in trigger() 59 pb.start(); in trigger()
|
/frameworks/base/tools/aapt2/ |
D | ResourcesInternal.proto | 22 package aapt.pb.internal; 24 option java_package = "android.aapt.pb.internal"; 34 aapt.pb.SourcePosition source = 2; 41 aapt.pb.Configuration config = 2; 44 aapt.pb.FileReference.Type type = 3;
|
D | formats.md | 30 [aapt.pb.ResourceTable](Resources.proto). 39 | `header_size` | `header` | The serialized Protobuf message [aapt.pb.internal.CompiledFi… 41 …mined by the `type` field in the `aapt.pb.internal.CompiledFile`. This can be a PNG file, binary X…
|
D | LoadedApk.cpp | 53 pb::XmlNode pb_node; in DetermineApkFormat() 104 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection() 138 pb::XmlNode pb_node; in LoadProtoApkFromFileCollection() 279 pb::ResourceTable pb_table; in WriteToArchive() 330 pb::XmlNode pb_node; in LoadXml()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncOperationTest.java | 124 PersistableBundle pb = op1.toJobInfoExtras(); in testConversionToExtras() local 125 SyncOperation op2 = SyncOperation.maybeCreateFromJobExtras(pb); in testConversionToExtras() 169 PersistableBundle pb = op1.toJobInfoExtras(); in testScheduleAsEjIsInExtras() local 171 ((PersistableBundle) pb.get("syncExtras")) in testScheduleAsEjIsInExtras() 174 SyncOperation op2 = SyncOperation.maybeCreateFromJobExtras(pb); in testScheduleAsEjIsInExtras()
|
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/ |
D | InferenceInfoStore.java | 47 public void addInferenceInfoFromBundle(PersistableBundle pb) { in addInferenceInfoFromBundle() argument 48 if (!pb.containsKey(OnDeviceSandboxedInferenceService.INFERENCE_INFO_BUNDLE_KEY)) { in addInferenceInfoFromBundle() 53 String infoBytesBase64String = pb.getString( in addInferenceInfoFromBundle()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SELinuxMMAC.java | 257 Policy.PolicyBuilder pb = new Policy.PolicyBuilder(); in readSignerOrThrow() local 263 pb.addSignature(cert); in readSignerOrThrow() 274 pb.setGlobalSeinfoOrThrow(seinfo); in readSignerOrThrow() 277 readPackageOrThrow(parser, pb); in readSignerOrThrow() 280 pb.addSignature(sig); in readSignerOrThrow() 287 return pb.build(); in readSignerOrThrow() 304 private static void readPackageOrThrow(XmlPullParser parser, Policy.PolicyBuilder pb) throws in readPackageOrThrow() argument 317 pb.addInnerPackageMapOrThrow(pkgName, seinfo); in readPackageOrThrow()
|
/frameworks/native/opengl/tests/angeles/ |
D | demo.c | 243 VECTOR3 pa, pb, pc, pd; in createSuperShape() local 250 superShapeMap(&pb, r2, r1, t2, p1); in createSuperShape() 256 pa.z = pb.z = 0; in createSuperShape() 258 vector3Sub(&v1, &pb, &pa); in createSuperShape() 313 result->vertexArray[currentVertex * 3] = FIXED(pb.x); in createSuperShape() 314 result->vertexArray[currentVertex * 3 + 1] = FIXED(pb.y); in createSuperShape() 315 result->vertexArray[currentVertex * 3 + 2] = FIXED(pb.z); in createSuperShape() 321 result->vertexArray[currentVertex * 3] = FIXED(pb.x); in createSuperShape() 322 result->vertexArray[currentVertex * 3 + 1] = FIXED(pb.y); in createSuperShape() 323 result->vertexArray[currentVertex * 3 + 2] = FIXED(pb.z); in createSuperShape()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 254 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel() local 255 pb.putInt("k", 1); in testShortcutInfoParcel() 269 .setExtras(pb) in testShortcutInfoParcel() 331 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel_resId() local 332 pb.putInt("k", 1); in testShortcutInfoParcel_resId() 344 .setExtras(pb) in testShortcutInfoParcel_resId() 384 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone() local 385 pb.putInt("k", 1); in testShortcutInfoClone() 398 .setExtras(pb) in testShortcutInfoClone() 532 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone_resId() local [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | ApkInfo.cpp | 37 const std::unordered_set<std::string>& xml_resources, pb::ApkInfo* out_apk_info, in ExportApkInfo() 73 pb::ApkInfo out_apk_info; in Action()
|
/frameworks/base/tools/aapt2/dump/ |
D | DumpManifest.cpp | 143 void ToProto(pb::Badging* out_badging) { in ToProto() 198 void ToProto(pb::Badging* out_badging) { in ToProto() 234 virtual void ToProto(pb::Badging* out_badging) { in ToProto() 455 bool DumpProto(pb::Badging* out_badging); 594 void ToProto(pb::Badging* out_badging) override { in ToProto() 619 out_package->set_install_location(pb::PackageInfo_InstallLocation_AUTO); in ToProto() 622 out_package->set_install_location(pb::PackageInfo_InstallLocation_INTERNAL_ONLY); in ToProto() 625 out_package->set_install_location(pb::PackageInfo_InstallLocation_PREFER_EXTERNAL); in ToProto() 778 void ToProto(pb::Badging* out_badging) override { in ToProto() 852 void ToProto(pb::Badging* out_badging) override { in ToProto() [all …]
|
D | DumpManifest.h | 39 int DumpBadgingProto(LoadedApk* apk, pb::Badging* out_badging, android::IDiagnostics* diag);
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | FabricatedOverlay.cpp | 64 FabricatedOverlay::FabricatedOverlay(pb::FabricatedOverlay&& overlay, in FabricatedOverlay() 69 : overlay_pb_(std::forward<pb::FabricatedOverlay>(overlay)), in FabricatedOverlay() 122 pb::ResourceValue* pb_value, const TargetValue &value) { in buildBinaryData() 237 pb::FabricatedOverlay overlay_pb; in Build() 261 pb::ResourceValue* pb_value = entry_pb->mutable_res_value(); in Build() 318 pb::FabricatedOverlay overlay{}; in FromBinaryStream() 440 const pb::FabricatedOverlay& overlay_pb = overlay_.overlay_pb_; in GetManifestInfo() 458 const pb::FabricatedOverlay& overlay_pb = overlay_.overlay_pb_; in GetOverlayData()
|
/frameworks/base/libs/WindowManager/Shell/ |
D | Android.bp | 94 "--viewer-config-file-path /system_ext/etc/wmshell.protolog.pb " + 120 name: "gen-wmshell.protolog.pb", 133 out: ["wmshell.protolog.pb"], 151 name: "wmshell.protolog.pb", 153 src: ":gen-wmshell.protolog.pb",
|
/frameworks/proto_logging/stats/express/libexpresscatalog/ |
D | catalog.cpp | 37 namespace pb = google::protobuf; 66 if (!pb::TextFormat::ParseFromString(buffer.str(), &cfMessage)) { in readMetrics()
|
/frameworks/base/services/core/ |
D | Android.bp | 53 "--viewer-config-file-path /etc/core.protolog.pb " + 79 name: "gen-core.protolog.pb", 92 out: ["core.protolog.pb"], 167 "core.protolog.pb", 286 name: "core.protolog.pb", 287 src: ":gen-core.protolog.pb",
|