Home
last modified time | relevance | path

Searched refs:pb (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/tools/aapt2/format/proto/
DProtoSerialize.cpp24 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia… in SerializeStringPoolToPb()
38 void SerializeSourceToPb(const Source& source, StringPool* src_pool, pb::Source* out_pb_source) { in SerializeSourceToPb()
46 static pb::Visibility::Level SerializeVisibilityToPb(Visibility::Level state) { in SerializeVisibilityToPb()
49 return pb::Visibility::PRIVATE; in SerializeVisibilityToPb()
51 return pb::Visibility::PUBLIC; in SerializeVisibilityToPb()
55 return pb::Visibility::UNKNOWN; in SerializeVisibilityToPb()
58 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config) { in SerializeConfig()
65 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR); in SerializeConfig()
69 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL); in SerializeConfig()
82 pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL); in SerializeConfig()
[all …]
DProtoDeserialize.cpp64 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb()
81 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR: in DeserializeConfigFromPb()
86 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL: in DeserializeConfigFromPb()
100 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL: in DeserializeConfigFromPb()
105 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_NORMAL: in DeserializeConfigFromPb()
110 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_LARGE: in DeserializeConfigFromPb()
115 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_XLARGE: in DeserializeConfigFromPb()
125 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_LONG: in DeserializeConfigFromPb()
130 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_NOTLONG: in DeserializeConfigFromPb()
140 case pb::Configuration_ScreenRound_SCREEN_ROUND_ROUND: in DeserializeConfigFromPb()
[all …]
DProtoSerialize.h35 void SerializeValueToPb(const Value& value, pb::Value* out_value, StringPool* src_pool = nullptr);
39 void SerializeItemToPb(const Item& item, pb::Item* out_item);
42 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node);
45 void SerializeXmlResourceToPb(const xml::XmlResource& resource, pb::XmlNode* out_node);
49 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia…
52 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config);
55 void SerializeTableToPb(const ResourceTable& table, pb::ResourceTable* out_table, IDiagnostics* dia…
58 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
DProtoDeserialize.h35 std::unique_ptr<Value> DeserializeValueFromPb(const pb::Value& pb_value,
41 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, StringPool* value_pool,
52 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config,
56 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files,
59 bool DeserializeCompiledFileFromPb(const pb::internal::CompiledFile& pb_file,
DProtoSerialize_test.cpp97 pb::ResourceTable pb_table; in TEST()
204 pb::XmlNode pb_xml; in TEST()
278 pb::ResourceTable pb_table; in TEST()
372 pb::Configuration pb_config; in ExpectConfigSerializes()
/frameworks/base/media/java/android/media/
DPlayerBase.java416 public IAppOpsCallbackWrapper(PlayerBase pb) { in IAppOpsCallbackWrapper() argument
417 mWeakPB = new WeakReference<PlayerBase>(pb); in IAppOpsCallbackWrapper()
424 final PlayerBase pb = mWeakPB.get(); in opChanged() local
425 if (pb != null) { in opChanged()
426 pb.updateAppOpsPlayAudio(); in opChanged()
440 public IPlayerWrapper(PlayerBase pb) { in IPlayerWrapper() argument
441 mWeakPB = new WeakReference<PlayerBase>(pb); in IPlayerWrapper()
446 final PlayerBase pb = mWeakPB.get(); in start() local
447 if (pb != null) { in start()
448 pb.playerStart(); in start()
[all …]
/frameworks/base/tools/aapt2/format/
DContainer_test.cpp44 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()
DContainer.h42 bool AddResTableEntry(const pb::ResourceTable& table);
43 bool AddResFileEntry(const pb::internal::CompiledFile& file, io::KnownSizeInputStream* in);
62 bool GetResTable(pb::ResourceTable* out_table);
63 bool GetResFileOffsets(pb::internal::CompiledFile* out_file, off64_t* out_offset,
DContainer.cpp57 bool ContainerWriter::AddResTableEntry(const pb::ResourceTable& table) { in AddResTableEntry()
87 bool ContainerWriter::AddResFileEntry(const pb::internal::CompiledFile& file, in AddResFileEntry()
173 bool ContainerReaderEntry::GetResTable(pb::ResourceTable* out_table) { in GetResTable()
192 bool ContainerReaderEntry::GetResFileOffsets(pb::internal::CompiledFile* out_file, in GetResFileOffsets()
/frameworks/base/tools/aapt2/
DResourcesInternal.proto22 package aapt.pb.internal;
24 option java_package = "android.aapt.pb.internal";
35 aapt.pb.SourcePosition source = 2;
42 aapt.pb.Configuration config = 2;
45 aapt.pb.FileReference.Type type = 3;
Dformats.md30 [aapt.pb.ResourceTable](Resources.proto).
39 | `header_size` | `header` | The serialized Protobuf message [aapt.pb.internal.CompiledFile…
41 …mined by the `type` field in the `aapt.pb.internal.CompiledFile`. This can be a PNG file, binary X…
DLoadedApk.cpp65 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection()
99 pb::XmlNode pb_node; in LoadProtoApkFromFileCollection()
227 pb::ResourceTable pb_table; in WriteToArchive()
275 pb::XmlNode pb_node; in DetermineApkFormat()
DConfiguration.proto19 package aapt.pb;
/frameworks/base/services/core/java/com/android/server/pm/
DSELinuxMMAC.java214 Policy.PolicyBuilder pb = new Policy.PolicyBuilder(); in readSignerOrThrow() local
220 pb.addSignature(cert); in readSignerOrThrow()
231 pb.setGlobalSeinfoOrThrow(seinfo); in readSignerOrThrow()
234 readPackageOrThrow(parser, pb); in readSignerOrThrow()
237 pb.addSignature(sig); in readSignerOrThrow()
244 return pb.build(); in readSignerOrThrow()
261 private static void readPackageOrThrow(XmlPullParser parser, Policy.PolicyBuilder pb) throws in readPackageOrThrow() argument
274 pb.addInnerPackageMapOrThrow(pkgName, seinfo); in readPackageOrThrow()
/frameworks/native/opengl/tests/angeles/
Ddemo.c243 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/
DShortcutManagerTest2.java240 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel() local
241 pb.putInt("k", 1); in testShortcutInfoParcel()
253 .setExtras(pb) in testShortcutInfoParcel()
290 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel_resId() local
291 pb.putInt("k", 1); in testShortcutInfoParcel_resId()
303 .setExtras(pb) in testShortcutInfoParcel_resId()
338 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone() local
339 pb.putInt("k", 1); in testShortcutInfoClone()
350 .setExtras(pb) in testShortcutInfoClone()
445 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone_resId() local
[all …]
/frameworks/base/tools/aapt2/cmd/
DDump.cpp90 pb::XmlNode pb_node; in DumpXmlFile()
144 pb::ResourceTable pb_table; in TryDumpFile()
212 pb::ResourceTable pb_table; in TryDumpFile()
232 pb::internal::CompiledFile pb_compiled_file; in TryDumpFile()
DConvert.cpp174 pb::XmlNode pb_node; in SerializeFile()
222 pb::XmlNode pb_node; in SerializeXml()
228 pb::ResourceTable pb_table; in SerializeTable()
DCompile.cpp270 pb::ResourceTable pb_table; in CompileTable()
352 pb::internal::CompiledFile pb_compiled_file; in WriteHeaderAndDataToWriter()
370 pb::internal::CompiledFile pb_compiled_file; in FlattenXmlToOutStream()
373 pb::XmlNode pb_xml_node; in FlattenXmlToOutStream()
DLink.cpp299 pb::XmlNode pb_node; in FlattenXml()
584 pb::XmlNode pb_xml_node; in Flatten()
1085 pb::ResourceTable pb_table; in FlattenTable()
1487 pb::ResourceTable pb_table; in MergeFile()
1507 pb::internal::CompiledFile pb_compiled_file; in MergeFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncOperationTest.java123 PersistableBundle pb = op1.toJobInfoExtras(); in testConversionToExtras() local
124 SyncOperation op2 = SyncOperation.maybeCreateFromJobExtras(pb); in testConversionToExtras()
/frameworks/av/services/audioflinger/
DFastMixerDumpState.cpp46 static int compare_uint32_t(const void *pa, const void *pb) in compare_uint32_t() argument
49 uint32_t b = *(const uint32_t *)pb; in compare_uint32_t()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DBatteryMeterDrawableBase.java395 final float pb = mFrame.bottom - (mFrame.height() - pw) / 2; in draw() local
397 || mPlusFrame.right != pr || mPlusFrame.bottom != pb) { in draw()
398 mPlusFrame.set(pl, pt, pr, pb); in draw()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhone.java1698 PersistableBundle pb = configManager.getConfigForSubId(getSubId()); in processWfcDisconnectForNotification() local
1699 if (pb == null) { in processWfcDisconnectForNotification()
1704 pb.getStringArray( in processWfcDisconnectForNotification()
/frameworks/data-binding/gradle/wrapper/
Dgradle-wrapper.jar ... is java.util.Formatter stdout String line ProcessBuilder pb Process p java.io.IOException e InterruptedException e ...

12