Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/packages/services/Car/cpp/computepipe/runner/client_interface/
DPipeOptionsConverter.cpp44 PipeInputConfigInputType ConvertInputType(proto::InputStreamConfig::InputType type) { in ConvertInputType()
46 case proto::InputStreamConfig::CAMERA: in ConvertInputType()
48 case proto::InputStreamConfig::VIDEO_FILE: in ConvertInputType()
50 case proto::InputStreamConfig::IMAGE_FILES: in ConvertInputType()
55 PipeInputConfigCameraType ConvertCameraType(proto::CameraConfig::CameraType type) { in ConvertCameraType()
57 case proto::CameraConfig::DRIVER_VIEW_CAMERA: in ConvertCameraType()
59 case proto::CameraConfig::OCCUPANT_VIEW_CAMERA: in ConvertCameraType()
61 case proto::CameraConfig::EXTERNAL_CAMERA: in ConvertCameraType()
63 case proto::CameraConfig::SURROUND_VIEW_CAMERA: in ConvertCameraType()
68 PipeInputConfigImageFileType ConvertImageFileType(proto::ImageFileConfig::ImageFileType type) { in ConvertImageFileType()
[all …]
DDebuggerImpl.cpp42 proto::ProfilingType ToProtoProfilingType(PipeProfilingType type) { in ToProtoProfilingType()
45 return proto::ProfilingType::LATENCY; in ToProtoProfilingType()
47 return proto::ProfilingType::TRACE_EVENTS; in ToProtoProfilingType()
51 PipeProfilingType ToAidlProfilingType(proto::ProfilingType type) { in ToAidlProfilingType()
53 case proto::ProfilingType::LATENCY: in ToAidlProfilingType()
55 case proto::ProfilingType::TRACE_EVENTS: in ToAidlProfilingType()
57 case proto::ProfilingType::DISABLED: in ToAidlProfilingType()
97 proto::ConfigurationCommand command; in setPipeProfileOptions()
112 proto::ControlCommand controlCommand; in startPipeProfiling()
113 *controlCommand.mutable_start_pipe_profile() = proto::StartPipeProfile(); in startPipeProfiling()
[all …]
DAidlClientImpl.cpp67 Status ToAidlPacketType(proto::PacketType type, PacketDescriptorPacketType* outType) { in ToAidlPacketType()
72 case proto::SEMANTIC_DATA: in ToAidlPacketType()
75 case proto::PIXEL_DATA: in ToAidlPacketType()
170 proto::PacketType packetType = packetHandle->getType(); in dispatchPacketToClient()
172 case proto::SEMANTIC_DATA: in dispatchPacketToClient()
174 case proto::PIXEL_DATA: in dispatchPacketToClient()
209 proto::ConfigurationCommand configurationCommand; in setPipeInputSource()
221 proto::ConfigurationCommand configurationCommand; in setPipeOffloadOptions()
233 proto::ConfigurationCommand configurationCommand; in setPipeTermination()
279 proto::ConfigurationCommand configurationCommand; in setPipeOutputConfig()
[all …]
/packages/modules/StatsD/statsd/src/guardrail/
DStatsdStats.cpp861 void addConfigStatsToProto(const ConfigStats& configStats, ProtoOutputStream* proto) { in addConfigStatsToProto() argument
863 proto->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_CONFIG_STATS); in addConfigStatsToProto()
864 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_UID, configStats.uid); in addConfigStatsToProto()
865 proto->write(FIELD_TYPE_INT64 | FIELD_ID_CONFIG_STATS_ID, (long long)configStats.id); in addConfigStatsToProto()
866 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_CREATION, configStats.creation_time_sec); in addConfigStatsToProto()
868 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_RESET, configStats.reset_time_sec); in addConfigStatsToProto()
871 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_DELETION, in addConfigStatsToProto()
874 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_METRIC_COUNT, configStats.metric_count); in addConfigStatsToProto()
875 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_CONDITION_COUNT, in addConfigStatsToProto()
877 proto->write(FIELD_TYPE_INT32 | FIELD_ID_CONFIG_STATS_MATCHER_COUNT, configStats.matcher_count); in addConfigStatsToProto()
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/
DGrpcGraphServerImpl.h55 class GrpcGraphServerImpl : public proto::GrpcGraphService::Service {
91 const proto::GraphOptionsRequest* request, in GetGraphOptions()
92 proto::GraphOptionsResponse* response) override { in GetGraphOptions()
93 proto::Options options; in GetGraphOptions()
100 const proto::SetGraphConfigRequest* request, in SetGraphConfig()
101 proto::StatusResponse* response) override { in SetGraphConfig()
102 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetGraphConfig()
108 const proto::SetDebugRequest* request, in SetDebugOption()
109 proto::StatusResponse* response) override { in SetDebugOption()
110 response->set_code(proto::RemoteGraphStatusCode::SUCCESS); in SetDebugOption()
[all …]
/packages/modules/StatsD/statsd/
DAndroid.bp25 "src/active_config_list.proto",
38 "src/experiment_ids.proto",
70 "src/shell/shell_config.proto",
77 "src/statsd_config.proto",
78 "src/statsd_metadata.proto",
84 "src/uid_data.proto",
209 proto: {
264 // atom_field_options.proto needs field_options.proto, but that is
269 "src/shell/shell_data.proto",
270 "src/stats_log.proto",
[all …]
/packages/modules/StatsD/statsd/src/packages/
DUidMap.cpp317 std::set<string>* str_set, ProtoOutputStream* proto) { in writeUidMapSnapshot() argument
321 str_set, proto); in writeUidMapSnapshot()
327 std::set<string>* str_set, ProtoOutputStream* proto) { in writeUidMapSnapshotLocked() argument
328 proto->write(FIELD_TYPE_INT64 | FIELD_ID_SNAPSHOT_TIMESTAMP, (long long)timestamp); in writeUidMapSnapshotLocked()
334 uint64_t token = proto->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | in writeUidMapSnapshotLocked()
338 proto->write(FIELD_TYPE_UINT64 | FIELD_ID_SNAPSHOT_PACKAGE_NAME_HASH, in writeUidMapSnapshotLocked()
342 proto->write(FIELD_TYPE_UINT64 | FIELD_ID_SNAPSHOT_PACKAGE_VERSION_STRING_HASH, in writeUidMapSnapshotLocked()
347 proto->write(FIELD_TYPE_UINT64 | FIELD_ID_SNAPSHOT_PACKAGE_INSTALLER_HASH, in writeUidMapSnapshotLocked()
351 proto->write(FIELD_TYPE_STRING | FIELD_ID_SNAPSHOT_PACKAGE_NAME, kv.first.second); in writeUidMapSnapshotLocked()
353 proto->write(FIELD_TYPE_STRING | FIELD_ID_SNAPSHOT_PACKAGE_VERSION_STRING, in writeUidMapSnapshotLocked()
[all …]
/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp173 static void protoOutputStreamToUidMapping(ProtoOutputStream* proto, UidMapping* results) { in protoOutputStreamToUidMapping() argument
175 bytes.resize(proto->size()); in protoOutputStreamToUidMapping()
177 sp<ProtoReader> reader = proto->data(); in protoOutputStreamToUidMapping()
209 ProtoOutputStream proto; in TEST() local
210 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST()
214 protoOutputStreamToUidMapping(&proto, &results); in TEST()
237 ProtoOutputStream proto; in TEST() local
238 m.appendUidMap(3, config1, nullptr, true, true, &proto); in TEST()
242 protoOutputStreamToUidMapping(&proto, &results); in TEST()
269 ProtoOutputStream proto; in TEST() local
[all …]
/packages/services/Car/cpp/computepipe/runner/graph/
DGrpcGraph.cpp91 mGraphStub = proto::GrpcGraphService::NewStub(channel); in initialize()
99 proto::GraphOptionsRequest getGraphOptionsRequest; in initialize()
100 std::unique_ptr<::grpc::ClientAsyncResponseReader<proto::GraphOptionsResponse>> rpc( in initialize()
103 proto::GraphOptionsResponse response; in initialize()
146 proto::SetGraphConfigRequest setGraphConfigRequest; in handleConfigPhase()
149 std::unique_ptr<::grpc::ClientAsyncResponseReader<proto::StatusResponse>> rpc( in handleConfigPhase()
152 proto::StatusResponse response; in handleConfigPhase()
159 if (response.code() != proto::RemoteGraphStatusCode::SUCCESS) { in handleConfigPhase()
199 proto::StartGraphExecutionRequest startExecutionRequest; in handleExecutionPhase()
201 std::unique_ptr<::grpc::ClientAsyncResponseReader<proto::StatusResponse>> rpc( in handleExecutionPhase()
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DPipeOptionsConverterTest.cpp40 proto::Options options; in TEST()
44 proto::InputStreamConfig_InputType_CAMERA); in TEST()
46 proto::CameraConfig_CameraType_DRIVER_VIEW_CAMERA); in TEST()
51 proto::InputStreamConfig_InputType_CAMERA); in TEST()
53 proto::CameraConfig_CameraType_OCCUPANT_VIEW_CAMERA); in TEST()
58 proto::InputStreamConfig_InputType_CAMERA); in TEST()
60 proto::CameraConfig_CameraType_EXTERNAL_CAMERA); in TEST()
65 proto::InputStreamConfig_InputType_CAMERA); in TEST()
67 proto::CameraConfig_CameraType_SURROUND_VIEW_CAMERA); in TEST()
72 proto::InputStreamConfig_InputType_IMAGE_FILES); in TEST()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/incident/
Dincident_minimal.proto24 * Everything in this file is a subset of the platform incident.proto.
30 * it using this proto, which will result in the rest of the fields being dropped.
32 * From frameworks/base/core/proto/android/os/incident.proto
40 * From frameworks/base/core/proto/android/os/header.proto
48 * From frameworks/base/core/proto/android/service/restricted_image.proto
55 * From frameworks/base/core/proto/android/service/restricted_image.proto
69 * From frameworks/base/core/proto/android/service/restricted_image.proto
78 // Metadata about the image. Typically this has another proto schema,
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java41 import android.util.proto.ProtoOutputStream;
206 public void dumpDebug(ProtoOutputStream proto) { in dumpDebug() argument
207 long token = proto.start(CardEmulationManagerProto.REGISTERED_SERVICES_CACHE); in dumpDebug()
208 mServiceCache.dumpDebug(proto); in dumpDebug()
209 proto.end(token); in dumpDebug()
211 token = proto.start(CardEmulationManagerProto.REGISTERED_NFC_F_SERVICES_CACHE); in dumpDebug()
212 mNfcFServicesCache.dumpDebug(proto); in dumpDebug()
213 proto.end(token); in dumpDebug()
215 token = proto.start(CardEmulationManagerProto.PREFERRED_SERVICES); in dumpDebug()
216 mPreferredServices.dumpDebug(proto); in dumpDebug()
[all …]
/packages/modules/common/proto/
DAndroid.bp20 name: "modules-common-proto-python-defaults",
33 defaults: ["modules-common-proto-python-defaults"],
34 srcs: ["sdk.proto"],
35 proto: {
46 proto: {
50 srcs: ["sdk.proto"],
58 defaults: ["modules-common-proto-python-defaults"],
59 srcs: ["classpaths.proto"],
60 proto: {
67 proto: {
[all …]
/packages/services/Car/cpp/computepipe/proto/
DOptions.proto3 package android.automotive.computepipe.proto;
5 import "packages/services/Car/cpp/computepipe/proto/InputConfig.proto";
6 import "packages/services/Car/cpp/computepipe/proto/OffloadConfig.proto";
7 import "packages/services/Car/cpp/computepipe/proto/OutputConfig.proto";
8 import "packages/services/Car/cpp/computepipe/proto/TerminationConfig.proto";
/packages/modules/GeoTZ/data_pipeline/
DAndroid.bp28 proto: {
33 srcs: ["src/main/proto/**/*.proto"],
56 // Converts geojson time zone boundaries (from timezone-boundary-builder) to TzS2Polygon proto
66 // Reads TzS2Polygon proto files and writes out TzS2Polygon proto files with canonical time zone
76 // Converts TzS2Polygon proto files to TsS2CellUnion proto files at a maximum S2 level.
85 // Converts TsS2CellUnion proto files to (single time zone) TzS2Ranges proto files.
94 // Merges multiple, single time zone TzS2Ranges proto files into one, multiple time zone TzS2Ranges
95 // proto file
104 // Converts the one, multiple time zone TzS2Ranges proto file to the file format required by the
/packages/modules/GeoTZ/data_pipeline/src/main/proto/
Ds2_protos.proto19 option java_package = "com.android.timezone.location.data_pipeline.steps.proto";
22 package com.android.timezone.location.data_pipeline.steps.proto;
26 // The proto equivalent to Types.TzS2Polygons.
34 // A proto representation of S2Polygon.
39 // A proto representation of S2Loop.
44 // A proto representation of S2Point.
51 // The proto equivalent to Types.TzS2CellUnion.
59 // The proto equivalent to Types.TzS2Range.
69 // The proto equivalent to Types.TzS2Ranges.
/packages/services/Telecomm/
DAndroid.bp26 "proto/**/*.proto",
29 proto: {
31 local_include_dirs: ["proto/"],
60 "proto/**/*.proto",
62 proto: {
64 local_include_dirs: ["proto/"],
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DProtoTracer.java78 LauncherTraceEntryProto.Builder proto = LauncherTraceEntryProto.newBuilder(); in updateBufferProto() local
79 proto.setElapsedRealtimeNanos(SystemClock.elapsedRealtimeNanos()); in updateBufferProto()
84 proto.setLauncher(launcherProto); in updateBufferProto()
86 return proto; in updateBufferProto()
103 public byte[] getProtoBytes(MessageLite.Builder proto) { in getProtoBytes() argument
104 return proto.build().toByteArray(); in getProtoBytes()
108 public int getProtoSize(MessageLite.Builder proto) { in getProtoSize() argument
109 return proto.build().getSerializedSize(); in getProtoSize()
/packages/modules/SdkExtensions/
DREADME.md28 apex. The structure of this protobuf can be seen [here][sdkinfo-proto]. The
41 protobuf message from [`classpaths.proto`] in a proto binary format. Exact
45 [`classpaths.proto`]: packages/modules/SdkExtensions/proto/classpaths.proto
47 [sdkinfo-proto]: packages/modules/SdkExtensions/proto/sdk.proto
56 sdk.proto.
/packages/apps/Nfc/src/com/android/nfc/
DNfcDiscoveryParameters.java19 import android.util.proto.ProtoOutputStream;
143 void dumpDebug(ProtoOutputStream proto) { in dumpDebug() argument
144 proto.write(DiscoveryParamsProto.TECH_MASK, mTechMask); in dumpDebug()
145 proto.write(DiscoveryParamsProto.ENABLE_LPD, mEnableLowPowerDiscovery); in dumpDebug()
146 proto.write(DiscoveryParamsProto.ENABLE_READER, mEnableReaderMode); in dumpDebug()
147 proto.write(DiscoveryParamsProto.ENABLE_HOST_ROUTING, mEnableHostRouting); in dumpDebug()
148 proto.write(DiscoveryParamsProto.ENABLE_P2P, mEnableP2p); in dumpDebug()
/packages/services/Car/cpp/computepipe/runner/input_manager/
DFactory.cpp38 InputManagerType getInputManagerType(const proto::InputStreamConfig& streamConfig) { in getInputManagerType()
40 case proto::InputStreamConfig::CAMERA: in getInputManagerType()
42 case proto::InputStreamConfig::IMAGE_FILES: in getInputManagerType()
44 case proto::InputStreamConfig::VIDEO_FILE: in getInputManagerType()
51 const proto::InputConfig& config, const proto::InputConfig& overrideConfig, in createInputManager()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp111 static void flushProtoToBuffer(ProtoOutputStream& proto, vector<uint8_t>* outData) { in flushProtoToBuffer() argument
113 outData->resize(proto.size()); in flushProtoToBuffer()
115 sp<android::util::ProtoReader> reader = proto.data(); in flushProtoToBuffer()
596 ProtoOutputStream* proto) { in onDumpReport() argument
600 uint64_t configKeyToken = proto->start(FIELD_TYPE_MESSAGE | FIELD_ID_CONFIG_KEY); in onDumpReport()
601 proto->write(FIELD_TYPE_INT32 | FIELD_ID_UID, key.GetUid()); in onDumpReport()
602 proto->write(FIELD_TYPE_INT64 | FIELD_ID_ID, (long long)key.GetId()); in onDumpReport()
603 proto->end(configKeyToken); in onDumpReport()
615 key, proto, erase_data && !keepFile /* should remove file after appending it */, in onDumpReport()
627 proto->write(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | FIELD_ID_REPORTS, in onDumpReport()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp262 int64_t currentTimeNs, const DumpReportReason reason, ProtoOutputStream* proto) { in writeActiveMetricToProtoOutputStream() argument
263 proto->write(FIELD_TYPE_INT64 | FIELD_ID_ACTIVE_METRIC_ID, (long long)mMetricId); in writeActiveMetricToProtoOutputStream()
274 const uint64_t activationToken = proto->start(FIELD_TYPE_MESSAGE | FIELD_COUNT_REPEATED | in writeActiveMetricToProtoOutputStream()
276 proto->write(FIELD_TYPE_INT32 | FIELD_ID_ACTIVE_EVENT_ACTIVATION_ATOM_MATCHER_INDEX, in writeActiveMetricToProtoOutputStream()
281 proto->write(FIELD_TYPE_INT64 | FIELD_ID_ACTIVE_EVENT_ACTIVATION_REMAINING_TTL_NANOS, in writeActiveMetricToProtoOutputStream()
283 proto->write(FIELD_TYPE_ENUM | FIELD_ID_ACTIVE_EVENT_ACTIVATION_STATE, in writeActiveMetricToProtoOutputStream()
288 proto->write( in writeActiveMetricToProtoOutputStream()
291 proto->write(FIELD_TYPE_ENUM | FIELD_ID_ACTIVE_EVENT_ACTIVATION_STATE, in writeActiveMetricToProtoOutputStream()
296 proto->write(FIELD_TYPE_ENUM | FIELD_ID_ACTIVE_EVENT_ACTIVATION_STATE, in writeActiveMetricToProtoOutputStream()
300 proto->end(activationToken); in writeActiveMetricToProtoOutputStream()
/packages/apps/Car/LocalMediaPlayer/
DAndroid.bp23 name: "LocalMediaPlayer-proto",
24 srcs: ["proto/**/*.proto"],
25 proto: {
27 local_include_dirs: ["proto"],
46 "LocalMediaPlayer-proto",
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiWakeMetrics.java23 import com.android.server.wifi.proto.nano.WifiMetricsProto.WifiWakeStats;
164 WifiWakeStats proto = new WifiWakeStats(); in buildProto() local
166 proto.numSessions = mTotalSessions; in buildProto()
167 proto.numWakeups = mTotalWakeups; in buildProto()
168 proto.numIgnoredStarts = mIgnoredStarts; in buildProto()
169 proto.sessions = new WifiWakeStats.Session[mSessions.size()]; in buildProto()
172 proto.sessions[i] = mSessions.get(i).buildProto(); in buildProto()
175 return proto; in buildProto()

12345678910>>...14