/frameworks/base/tools/aapt2/format/proto/ |
D | ProtoSerialize.cpp | 26 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia… in SerializeStringPoolToPb() 40 void SerializeSourceToPb(const Source& source, StringPool* src_pool, pb::Source* out_pb_source) { in SerializeSourceToPb() 48 static pb::Visibility::Level SerializeVisibilityToPb(Visibility::Level state) { in SerializeVisibilityToPb() 51 return pb::Visibility::PRIVATE; in SerializeVisibilityToPb() 53 return pb::Visibility::PUBLIC; in SerializeVisibilityToPb() 57 return pb::Visibility::UNKNOWN; in SerializeVisibilityToPb() 60 void SerializeConfig(const ConfigDescription& config, pb::Configuration* out_pb_config) { in SerializeConfig() 67 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR); in SerializeConfig() 71 out_pb_config->set_layout_direction(pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL); in SerializeConfig() 84 pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL); in SerializeConfig() [all …]
|
D | ProtoDeserialize.cpp | 66 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, ConfigDescription* out_config, in DeserializeConfigFromPb() 83 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_LTR: in DeserializeConfigFromPb() 88 case pb::Configuration_LayoutDirection_LAYOUT_DIRECTION_RTL: in DeserializeConfigFromPb() 102 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_SMALL: in DeserializeConfigFromPb() 107 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_NORMAL: in DeserializeConfigFromPb() 112 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_LARGE: in DeserializeConfigFromPb() 117 case pb::Configuration_ScreenLayoutSize_SCREEN_LAYOUT_SIZE_XLARGE: in DeserializeConfigFromPb() 127 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_LONG: in DeserializeConfigFromPb() 132 case pb::Configuration_ScreenLayoutLong_SCREEN_LAYOUT_LONG_NOTLONG: in DeserializeConfigFromPb() 142 case pb::Configuration_ScreenRound_SCREEN_ROUND_ROUND: in DeserializeConfigFromPb() [all …]
|
D | ProtoSerialize.h | 40 void SerializeValueToPb(const Value& value, pb::Value* out_value, StringPool* src_pool = nullptr); 44 void SerializeItemToPb(const Item& item, pb::Item* out_item); 47 void SerializeXmlToPb(const xml::Element& el, pb::XmlNode* out_node, 51 void SerializeXmlResourceToPb(const xml::XmlResource& resource, pb::XmlNode* out_node, 56 void SerializeStringPoolToPb(const StringPool& pool, pb::StringPool* out_pb_pool, IDiagnostics* dia… 59 void SerializeConfig(const android::ConfigDescription& config, pb::Configuration* out_pb_config); 62 void SerializeTableToPb(const ResourceTable& table, pb::ResourceTable* out_table, IDiagnostics* dia… 65 void SerializeCompiledFileToPb(const ResourceFile& file, pb::internal::CompiledFile* out_file);
|
D | ProtoDeserialize.h | 35 std::unique_ptr<Value> DeserializeValueFromPb(const pb::Value& pb_value, 41 std::unique_ptr<Item> DeserializeItemFromPb(const pb::Item& pb_item, 47 std::unique_ptr<xml::XmlResource> DeserializeXmlResourceFromPb(const pb::XmlNode& pb_node, 50 bool DeserializeXmlFromPb(const pb::XmlNode& pb_node, xml::Element* out_el, StringPool* value_pool, 53 bool DeserializeConfigFromPb(const pb::Configuration& pb_config, 57 bool DeserializeTableFromPb(const pb::ResourceTable& pb_table, io::IFileCollection* files, 60 bool DeserializeCompiledFileFromPb(const pb::internal::CompiledFile& pb_file,
|
D | ProtoSerialize_test.cpp | 102 pb::ResourceTable pb_table; in TEST() 217 pb::XmlNode pb_xml; in TEST() 288 pb::XmlNode pb_xml; in TEST() 327 pb::ResourceTable pb_table; in TEST() 421 pb::Configuration pb_config; in ExpectConfigSerializes() 550 pb::ResourceTable pb_table; in TEST()
|
/frameworks/base/media/java/android/media/ |
D | PlayerBase.java | 444 public IAppOpsCallbackWrapper(PlayerBase pb) { in IAppOpsCallbackWrapper() argument 445 mWeakPB = new WeakReference<PlayerBase>(pb); in IAppOpsCallbackWrapper() 452 final PlayerBase pb = mWeakPB.get(); in opChanged() local 453 if (pb != null) { in opChanged() 454 pb.updateAppOpsPlayAudio(); in opChanged() 468 public IPlayerWrapper(PlayerBase pb) { in IPlayerWrapper() argument 469 mWeakPB = new WeakReference<PlayerBase>(pb); in IPlayerWrapper() 474 final PlayerBase pb = mWeakPB.get(); in start() local 475 if (pb != null) { in start() 476 pb.playerStart(); in start() [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 | 42 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,
|
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/tools/aapt2/ |
D | ResourcesInternal.proto | 22 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;
|
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() 102 pb::ResourceTable pb_table; in LoadProtoApkFromFileCollection() 136 pb::XmlNode pb_node; in LoadProtoApkFromFileCollection() 270 pb::ResourceTable pb_table; in WriteToArchive() 320 pb::XmlNode pb_node; in LoadXml()
|
D | Configuration.proto | 19 package aapt.pb;
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SELinuxMMAC.java | 225 Policy.PolicyBuilder pb = new Policy.PolicyBuilder(); in readSignerOrThrow() local 231 pb.addSignature(cert); in readSignerOrThrow() 242 pb.setGlobalSeinfoOrThrow(seinfo); in readSignerOrThrow() 245 readPackageOrThrow(parser, pb); in readSignerOrThrow() 248 pb.addSignature(sig); in readSignerOrThrow() 255 return pb.build(); in readSignerOrThrow() 272 private static void readPackageOrThrow(XmlPullParser parser, Policy.PolicyBuilder pb) throws in readPackageOrThrow() argument 285 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 | 240 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel() local 241 pb.putInt("k", 1); in testShortcutInfoParcel() 255 .setExtras(pb) in testShortcutInfoParcel() 295 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoParcel_resId() local 296 pb.putInt("k", 1); in testShortcutInfoParcel_resId() 308 .setExtras(pb) in testShortcutInfoParcel_resId() 343 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone() local 344 pb.putInt("k", 1); in testShortcutInfoClone() 357 .setExtras(pb) in testShortcutInfoClone() 485 PersistableBundle pb = new PersistableBundle(); in testShortcutInfoClone_resId() local [all …]
|
/frameworks/base/cmds/statsd/tools/localtools/src/com/android/statsd/shelltools/ |
D | Utils.java | 48 ProcessBuilder pb = new ProcessBuilder(commands); in runCommand() local 50 pb.redirectOutput(outputFile); in runCommand() 52 Process process = pb.start(); in runCommand()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncOperationTest.java | 123 PersistableBundle pb = op1.toJobInfoExtras(); in testConversionToExtras() local 124 SyncOperation op2 = SyncOperation.maybeCreateFromJobExtras(pb); in testConversionToExtras()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | ProxyTracker.java | 112 final ProxyInfo pb = canonicalizeProxyInfo(b); in proxyInfoEqual() local 115 return Objects.equals(pa, pb) && (pa == null || Objects.equals(pa.getHost(), pb.getHost())); in proxyInfoEqual()
|
/frameworks/av/services/audioflinger/ |
D | FastMixerDumpState.cpp | 46 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/tools/aapt2/cmd/ |
D | Convert.cpp | 104 pb::XmlNode pb_node; in SerializeFile() 154 pb::XmlNode pb_node; in SerializeXml() 160 pb::ResourceTable pb_table; in SerializeTable()
|
D | Dump.cpp | 165 pb::ResourceTable pb_table; in Action() 187 pb::internal::CompiledFile pb_compiled_file; in Action()
|
D | Compile.cpp | 210 pb::ResourceTable pb_table; in CompileTable() 305 pb::internal::CompiledFile pb_compiled_file; in WriteHeaderAndDataToWriter() 323 pb::internal::CompiledFile pb_compiled_file; in FlattenXmlToOutStream() 326 pb::XmlNode pb_xml_node; in FlattenXmlToOutStream()
|
D | Link.cpp | 241 pb::XmlNode pb_node; in FlattenXml() 545 pb::XmlNode pb_xml_node; in Flatten() 1067 pb::ResourceTable pb_table; in FlattenTable() 1479 pb::ResourceTable pb_table; in MergeFile() 1500 pb::internal::CompiledFile pb_compiled_file; in MergeFile()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/ |
D | BatteryMeterDrawableBase.java | 402 final float pb = mFrame.bottom - (mFrame.height() - pw) / 2; in draw() local 404 || mPlusFrame.right != pr || mPlusFrame.bottom != pb) { in draw() 405 mPlusFrame.set(pl, pt, pr, pb); in draw()
|