Home
last modified time | relevance | path

Searched refs:constexpr (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/system/netd/libnetdutils/include/netdutils/
DResponseCode.h30 static constexpr int ActionInitiated = 100;
31 static constexpr int InterfaceListResult = 110;
32 static constexpr int TetherInterfaceListResult = 111;
33 static constexpr int TetherDnsFwdTgtListResult = 112;
34 static constexpr int TtyListResult = 113;
35 static constexpr int TetheringStatsListResult = 114;
36 static constexpr int TetherDnsFwdNetIdResult = 115;
39 static constexpr int CommandOkay = 200;
40 static constexpr int TetherStatusResult = 210;
41 static constexpr int IpFwdStatusResult = 211;
[all …]
DBackoffSequence.h71 constexpr Builder& withInitialRetransmissionTime(time_type irt) { in withInitialRetransmissionTime()
75 constexpr Builder& withMaximumRetransmissionCount(counter_type mrc) { in withMaximumRetransmissionCount()
79 constexpr Builder& withMaximumRetransmissionTime(time_type mrt) { in withMaximumRetransmissionTime()
83 constexpr Builder& withMaximumRetransmissionDuration(time_type mrd) { in withMaximumRetransmissionDuration()
87 constexpr Builder& withEndOfSequenceIndicator(time_type eos) { in withEndOfSequenceIndicator()
92 constexpr BackoffSequence build() const { in build()
101 static constexpr int PER_ITERATION_SCALING_FACTOR = 2;
102 static constexpr time_type TIME_ZERO = time_type();
103 static constexpr time_type TIME_UNITY = time_type(1);
105 constexpr BackoffSequence(const struct Parameters &params) in BackoffSequence()
[all …]
/system/chre/util/include/chre/util/
Dtime.h25 constexpr uint64_t kOneMinuteInMilliseconds(60000);
28 constexpr uint64_t kOneSecondInMilliseconds(1000);
31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
34 constexpr uint64_t kOneMillisecondInNanoseconds(1000000);
37 constexpr uint64_t kOneMicrosecondInNanoseconds(1000);
40 constexpr uint64_t kOneMillisecondInMicroseconds(1000);
53 constexpr explicit Seconds(uint64_t seconds);
61 constexpr uint64_t toRawNanoseconds() const;
68 constexpr uint64_t getMilliseconds() const;
82 constexpr Milliseconds();
[all …]
Dtime_impl.h24 constexpr Seconds::Seconds(uint64_t seconds) in Seconds()
27 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds()
35 constexpr uint64_t Seconds::getMilliseconds() const { in getMilliseconds()
43 constexpr Milliseconds::Milliseconds() in Milliseconds()
46 constexpr Milliseconds::Milliseconds(uint64_t milliseconds) in Milliseconds()
49 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds()
53 constexpr uint64_t Milliseconds::toRawNanoseconds() const { in toRawNanoseconds()
61 constexpr uint64_t Milliseconds::getMicroseconds() const { in getMicroseconds()
69 constexpr uint64_t Milliseconds::getMilliseconds() const { in getMilliseconds()
73 constexpr bool Milliseconds::operator==(const Milliseconds& millis) const {
[all …]
/system/chre/util/include/chre/util/nanoapp/
Dapp_id.h48 constexpr uint64_t makeNanoappId(uint64_t vendor, uint32_t appNumber) { in makeNanoappId()
56 constexpr uint64_t makeExampleNanoappId(uint32_t appNumber) { in makeExampleNanoappId()
64 constexpr uint64_t makeGoogleNanoappId(uint32_t appNumber) { in makeGoogleNanoappId()
68 constexpr uint64_t kHelloWorldAppId = makeExampleNanoappId(1);
69 constexpr uint64_t kMessageWorldAppId = makeExampleNanoappId(2);
70 constexpr uint64_t kTimerWorldAppId = makeExampleNanoappId(3);
71 constexpr uint64_t kSensorWorldAppId = makeExampleNanoappId(4);
72 constexpr uint64_t kGnssWorldAppId = makeExampleNanoappId(5);
73 constexpr uint64_t kWifiWorldAppId = makeExampleNanoappId(6);
74 constexpr uint64_t kWwanWorldAppId = makeExampleNanoappId(7);
[all …]
/system/libvintf/include/vintf/
DSerializeFlags.h29 explicit constexpr Type(uint32_t value) : mValue(value) {} in Type()
32 constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
33 constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
34 constexpr bool is##name##Enabled() const { return mValue & (1 << bit); }
55 constexpr Type EVERYTHING = Type(~0);
56 constexpr Type NO_HALS = EVERYTHING.disableHals();
57 constexpr Type NO_AVB = EVERYTHING.disableAvb();
58 constexpr Type NO_SEPOLICY = EVERYTHING.disableSepolicy();
59 constexpr Type NO_VNDK = EVERYTHING.disableVndk();
60 constexpr Type NO_KERNEL = EVERYTHING.disableKernel();
[all …]
DCheckFlags.h29 [[nodiscard]] constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
30 [[nodiscard]] constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
31 constexpr bool is##name##Enabled() const { return mValue & (1 << bit); }
38 explicit constexpr Type(int32_t value) : mValue(value) {} in Type()
44 constexpr Type ENABLE_ALL_CHECKS{~0};
45 constexpr Type DISABLE_ALL_CHECKS{0};
47 constexpr Type DISABLE_AVB_CHECK = ENABLE_ALL_CHECKS.disableAvb();
49 constexpr Type DISABLE_RUNTIME_INFO = ENABLE_ALL_CHECKS.disableRuntimeInfo();
52 constexpr Type DEFAULT = DISABLE_AVB_CHECK;
/system/security/keystore/
Ddefaults.h27 constexpr int32_t DSA_DEFAULT_KEY_SIZE = 1024;
28 constexpr int32_t DSA_MIN_KEY_SIZE = 512;
29 constexpr int32_t DSA_MAX_KEY_SIZE = 8192;
32 constexpr int32_t EC_DEFAULT_KEY_SIZE = 256;
33 constexpr int32_t EC_MIN_KEY_SIZE = 192;
34 constexpr int32_t EC_MAX_KEY_SIZE = 521;
37 constexpr int32_t RSA_DEFAULT_KEY_SIZE = 2048;
38 constexpr int32_t RSA_DEFAULT_EXPONENT = 0x10001;
39 constexpr int32_t RSA_MIN_KEY_SIZE = 512;
40 constexpr int32_t RSA_MAX_KEY_SIZE = 8192;
/system/iorap/src/common/
Dexpected.h49 static constexpr bool is_right_v = true;
52 static constexpr bool is_right_v = false;
65 constexpr expected_data(U&& either, expected_tag_right)
69 constexpr expected_data(U&& either, expected_tag_error)
72 constexpr bool has_value() const {
76 constexpr const T& value() const {
80 constexpr T& value() {
84 constexpr const E& error() const {
88 constexpr E& error() {
212 constexpr expected_data(U&& either, expected_tag_right)
[all …]
Ddebug.h23 static constexpr bool kIsDebugBuild = true;
25 static constexpr bool kIsDebugBuild = false;
47 constexpr size_t value() const {
51 constexpr void set_value(size_t value) {
60 constexpr size_t value() const {
64 constexpr void set_value(size_t value) {
72 constexpr DebugCounter& operator++() {
77 constexpr DebugCounter operator++(int) {
83 constexpr operator size_t() const {
/system/connectivity/wifilogd/tests/
Dos_unittest.cpp96 constexpr char kSocketName[] = "fake-daemon"; in TEST_F()
97 constexpr int kFakeValidFd = 100; in TEST_F()
101 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
106 constexpr char kSocketName[] = "fake-daemon"; in TEST_F()
107 constexpr Os::Errno kError = EINVAL; in TEST_F()
111 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
116 constexpr auto kFakeSecs = 1U; in TEST_F()
117 constexpr auto kFakeNsecs = 2U; in TEST_F()
118 constexpr struct timespec fake_time { kFakeSecs, kFakeNsecs }; in TEST_F()
128 constexpr auto kSleepTimeNsec = 100; in TEST_F()
[all …]
/system/core/libmeminfo/include/meminfo/
Dsysmeminfo.h32 static constexpr const char* kMemTotal = "MemTotal:";
33 static constexpr const char* kMemFree = "MemFree:";
34 static constexpr const char* kMemBuffers = "Buffers:";
35 static constexpr const char* kMemCached = "Cached:";
36 static constexpr const char* kMemShmem = "Shmem:";
37 static constexpr const char* kMemSlab = "Slab:";
38 static constexpr const char* kMemSReclaim = "SReclaimable:";
39 static constexpr const char* kMemSUnreclaim = "SUnreclaim:";
40 static constexpr const char* kMemSwapTotal = "SwapTotal:";
41 static constexpr const char* kMemSwapFree = "SwapFree:";
[all …]
/system/update_engine/
Dmetrics_reporter_android.cc39 constexpr char kMetricsUpdateEngineAttemptNumber[] =
41 constexpr char kMetricsUpdateEngineAttemptResult[] =
43 constexpr char kMetricsUpdateEngineAttemptDurationInMinutes[] =
45 constexpr char kMetricsUpdateEngineAttemptDurationUptimeInMinutes[] =
47 constexpr char kMetricsUpdateEngineAttemptErrorCode[] =
49 constexpr char kMetricsUpdateEngineAttemptPayloadSizeMiB[] =
51 constexpr char kMetricsUpdateEngineAttemptPayloadType[] =
53 constexpr char kMetricsUpdateEngineAttemptCurrentBytesDownloadedMiB[] =
56 constexpr char kMetricsUpdateEngineSuccessfulUpdateAttemptCount[] =
58 constexpr char kMetricsUpdateEngineSuccessfulUpdateTotalDurationInMinutes[] =
[all …]
/system/apex/apexd/
Dapex_constants.h25 static constexpr const char* kApexDataDir = "/data/apex";
26 static constexpr const char* kActiveApexPackagesDataDir = "/data/apex/active";
27 static constexpr const char* kApexBackupDir = "/data/apex/backup";
28 static constexpr const char* kApexPackageSystemDir = "/system/apex";
31 static constexpr const char* kApexRoot = "/apex";
32 static constexpr const char* kStagedSessionsDir = "/data/app-staging";
34 static constexpr const char* kApexPackageSuffix = ".apex";
/system/media/audio_utils/include/audio_utils/
DTimestampVerifier.h36 explicit constexpr TimestampVerifier(
46 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier()
60 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add()
160 constexpr void discontinuity() { in discontinuity()
174 constexpr void error() { in error()
184 constexpr void setDiscontinuityMode(DiscontinuityMode mode) { in setDiscontinuityMode()
190 constexpr DiscontinuityMode getDiscontinuityMode() const { in getDiscontinuityMode()
223 constexpr int64_t getN() const { return mTimestamps; } in getN()
224 constexpr int64_t getDiscontinuities() const { return mDiscontinuities; } in getDiscontinuities()
225 constexpr int64_t getNotReady() const { return mNotReady; } in getNotReady()
[all …]
DStatistics.h54 constexpr KahanSum<T>() = default;
56 explicit constexpr KahanSum<T>(const T& value) in KahanSum()
61 friend constexpr KahanSum<T> operator+(KahanSum<T> lhs, const T& rhs) {
74 constexpr KahanSum<T>& operator+=(const T& rhs) { // takes T not KahanSum<T>
79 constexpr operator T() const { in T()
83 constexpr void reset() { in reset()
96 constexpr NeumaierSum<T>() = default;
98 explicit constexpr NeumaierSum<T>(const T& value) in NeumaierSum()
102 friend constexpr NeumaierSum<T> operator+(NeumaierSum<T> lhs, const T& rhs) {
114 constexpr NeumaierSum<T>& operator+=(const T& rhs) { // takes T not NeumaierSum<T>
[all …]
/system/nvram/messages/
Dnvram_messages.cpp31 static constexpr auto kFields = MakeFieldList();
35 static constexpr auto kFields =
45 static constexpr auto kFields =
53 static constexpr auto kFields = MakeFieldList();
57 static constexpr auto kFields =
62 static constexpr auto kFields =
70 static constexpr auto kFields =
76 static constexpr auto kFields = MakeFieldList();
80 static constexpr auto kFields = MakeFieldList();
84 static constexpr auto kFields = MakeFieldList();
[all …]
/system/bt/btif/include/
Dbtif_bqr.h49 static constexpr uint32_t kQualityEventMaskAllOff = 0;
50 static constexpr uint32_t kQualityEventMaskMonitorMode = 0x00000001;
51 static constexpr uint32_t kQualityEventMaskApproachLsto = 0x00000002;
52 static constexpr uint32_t kQualityEventMaskA2dpAudioChoppy = 0x00000004;
53 static constexpr uint32_t kQualityEventMaskScoVoiceChoppy = 0x00000008;
54 static constexpr uint32_t kQualityEventMaskAll =
60 static constexpr uint16_t kMinReportIntervalNoLimit = 0;
61 static constexpr uint16_t kMinReportIntervalMaxMs = 0xFFFF;
63 static constexpr uint8_t kBqrParamTotalLen = 48;
65 static constexpr int8_t kCriWarnRssi = -80;
[all …]
/system/netd/include/
DNetdPermissions.h20 inline constexpr char PERM_CONNECTIVITY_INTERNAL[] = "android.permission.CONNECTIVITY_INTERNAL";
21 inline constexpr char PERM_NETWORK_STACK[] = "android.permission.NETWORK_STACK";
22 inline constexpr char PERM_MAINLINE_NETWORK_STACK[] = "android.permission.MAINLINE_NETWORK_STACK";
23 inline constexpr char PERM_DUMP[] = "android.permission.DUMP";
24 inline constexpr char PERM_CONNECTIVITY_USE_RESTRICTED_NETWORKS[] =
26 inline constexpr char PERM_NETWORK_BYPASS_PRIVATE_DNS[] =
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dhci_packetizer.h37 static constexpr size_t COMMAND_PREAMBLE_SIZE = 3;
38 static constexpr size_t COMMAND_LENGTH_OFFSET = 2;
41 static constexpr size_t ACL_PREAMBLE_SIZE = 4;
42 static constexpr size_t ACL_LENGTH_OFFSET = 2;
45 static constexpr size_t SCO_PREAMBLE_SIZE = 3;
46 static constexpr size_t SCO_LENGTH_OFFSET = 2;
50 static constexpr size_t EVENT_PREAMBLE_SIZE = 2;
51 static constexpr size_t EVENT_LENGTH_OFFSET = 1;
53 static constexpr size_t PREAMBLE_SIZE_MAX = ACL_PREAMBLE_SIZE;
Dh4_packetizer.h52 static constexpr size_t COMMAND_PREAMBLE_SIZE = 3;
53 static constexpr size_t COMMAND_LENGTH_OFFSET = 2;
56 static constexpr size_t ACL_PREAMBLE_SIZE = 4;
57 static constexpr size_t ACL_LENGTH_OFFSET = 2;
60 static constexpr size_t SCO_PREAMBLE_SIZE = 3;
61 static constexpr size_t SCO_LENGTH_OFFSET = 2;
65 static constexpr size_t EVENT_PREAMBLE_SIZE = 2;
66 static constexpr size_t EVENT_LENGTH_OFFSET = 1;
68 static constexpr size_t PREAMBLE_SIZE_MAX = ACL_PREAMBLE_SIZE;
/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp29 constexpr const char* kDuplicatedField =
47 constexpr const char* kEmptyProp =
53 constexpr const char* kInvalidApiName =
65 constexpr const char* kEmptyEnumValues =
77 constexpr const char* kDuplicatedEnumValue =
90 constexpr const char* kInvalidModuleName =
102 constexpr const char* kInvalidNamespaceForPlatform =
114 constexpr const char* kRoPrefixForReadWriteProperty =
127 constexpr const char* kIntegerAsBoolWithWrongType =
160 constexpr const char* kTestCasesAndExpectedErrors[][2] = {
/system/chre/apps/chqts/src/shared/
Dtime_util.h25 constexpr uint64_t kOneMinuteInMilliseconds(60000);
28 constexpr uint64_t kOneSecondInMilliseconds(1000);
31 constexpr uint64_t kOneSecondInNanoseconds(1000000000);
34 constexpr uint64_t kOneMillisecondInNanoseconds(1000000);
37 constexpr uint64_t kOneMicrosecondInNanoseconds(1000);
40 constexpr uint64_t kOneMillisecondInMicroseconds(1000);
/system/gsid/
Dfile_paths.h22 static constexpr char kDefaultGsiImageFolder[] = "/data/gsi/dsu/";
24 static constexpr char kGsiLpMetadataFile[] = "/metadata/gsi/dsu/lp_metadata";
25 static constexpr char kGsiOneShotBootFile[] = "/metadata/gsi/dsu/one_shot_boot";
26 static constexpr char kGsiInstallDirFile[] = "/metadata/gsi/dsu/install_dir";
33 static constexpr char kGsiInstallStatusFile[] = "/metadata/gsi/dsu/install_status";
/system/core/adb/
Dservices.h22 constexpr char kShellServiceArgRaw[] = "raw";
23 constexpr char kShellServiceArgPty[] = "pty";
24 constexpr char kShellServiceArgShellProtocol[] = "v2";
28 constexpr char kMinadbdServicesExitSuccess[] = "DONEDONE";
29 constexpr char kMinadbdServicesExitFailure[] = "FAILFAIL";

12345678910>>...29