Home
last modified time | relevance | path

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

12345678910>>...37

/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 …]
/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/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* kApexHashTreeDir = "/data/apex/hashtree";
29 static constexpr const char* kApexPackageSystemDir = "/system/apex";
30 static constexpr const char* kApexPackageSystemExtDir = "/system_ext/apex";
31 static constexpr const char* kApexPackageVendorDir = "/vendor/apex";
38 static constexpr const char* kApexRoot = "/apex";
39 static constexpr const char* kStagedSessionsDir = "/data/app-staging";
41 static constexpr const char* kApexDataSubDir = "apexdata";
[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/bt/gd/l2cap/
Dcid.h26 constexpr Cid kInvalidCid = 0;
27 constexpr Cid kFirstFixedChannel = 1;
28 constexpr Cid kLastFixedChannel = 63;
29 constexpr Cid kFirstDynamicChannel = kLastFixedChannel + 1;
30 constexpr Cid kLastDynamicChannel = (uint16_t)(0xffff);
32 constexpr Cid kClassicSignallingCid = 1;
33 constexpr Cid kConnectionlessCid = 2;
34 constexpr Cid kLeAttributeCid = 4;
35 constexpr Cid kLeSignallingCid = 5;
36 constexpr Cid kSmpCid = 6;
[all …]
/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/bt/btif/include/
Dbtif_bqr.h68 static constexpr uint32_t kQualityEventMaskAllOff = 0;
69 static constexpr uint32_t kQualityEventMaskMonitorMode = 0x00000001;
70 static constexpr uint32_t kQualityEventMaskApproachLsto = 0x00000002;
71 static constexpr uint32_t kQualityEventMaskA2dpAudioChoppy = 0x00000004;
72 static constexpr uint32_t kQualityEventMaskScoVoiceChoppy = 0x00000008;
73 static constexpr uint32_t kQualityEventMaskRootInflammation = 0x00000010;
74 static constexpr uint32_t kQualityEventMaskLmpMessageTrace = 0x00010000;
75 static constexpr uint32_t kQualityEventMaskBtSchedulingTrace = 0x00020000;
76 static constexpr uint32_t kQualityEventMaskControllerDbgInfo = 0x00040000;
77 static constexpr uint32_t kQualityEventMaskAll =
[all …]
/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/vold/
DCryptoType.h35 constexpr CryptoType() : CryptoType(nullptr, nullptr, 0xFFFFFFFF) {} in CryptoType()
36 constexpr CryptoType set_keysize(size_t size) const { in set_keysize()
39 constexpr CryptoType set_config_name(const char* property) const { in set_config_name()
42 constexpr CryptoType set_kernel_name(const char* crypto) const { in set_kernel_name()
46 constexpr const char* get_config_name() const { return config_name; } in get_config_name()
47 constexpr const char* get_kernel_name() const { return kernel_name; } in get_kernel_name()
48 constexpr size_t get_keysize() const { return keysize; } in get_keysize()
55 constexpr CryptoType(const char* property, const char* crypto, size_t ksize) in CryptoType()
66 constexpr CryptoType invalid_crypto_type = CryptoType();
68 constexpr CryptoType aes_256_xts = CryptoType()
[all …]
/system/memory/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/connectivity/wifilogd/tests/
Dos_unittest.cpp97 constexpr char kSocketName[] = "fake-daemon"; in TEST_F()
98 constexpr int kFakeValidFd = 100; in TEST_F()
102 constexpr std::tuple<int, Os::Errno> kExpectedResult{kFakeValidFd, 0}; in TEST_F()
107 constexpr char kSocketName[] = "fake-daemon"; in TEST_F()
108 constexpr Os::Errno kError = EINVAL; in TEST_F()
112 constexpr std::tuple<int, Os::Errno> kExpectedResult{Os::kInvalidFd, kError}; in TEST_F()
117 constexpr auto kFakeSecs = 1U; in TEST_F()
118 constexpr auto kFakeNsecs = 2U; in TEST_F()
119 constexpr struct timespec fake_time { kFakeSecs, kFakeNsecs }; in TEST_F()
129 constexpr auto kSleepTimeNsec = 100; in TEST_F()
[all …]
/system/gsid/include/libgsi/
Dlibgsi.h24 static constexpr char kGsiServiceName[] = "gsiservice";
28 static constexpr char kGsiBootedIndicatorFile[] = DSU_METADATA_PREFIX "booted";
30 static constexpr char kGsiLpNamesFile[] = DSU_METADATA_PREFIX "lp_names";
32 static constexpr char kDsuActiveFile[] = DSU_METADATA_PREFIX "active";
34 static constexpr char kDsuAvbKeyDir[] = DSU_METADATA_PREFIX "avb/";
48 static constexpr char kGsiBootedProp[] = "ro.gsid.image_running";
50 static constexpr char kGsiInstalledProp[] = "gsid.image_installed";
52 static constexpr char kDsuPostfix[] = "_gsi";
54 static constexpr int kMaxBootAttempts = 1;
/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp29 constexpr const char* kDuplicatedField =
47 constexpr const char* kEmptyProp =
53 constexpr const char* kInvalidApiName =
65 constexpr const char* kInvalidPropName =
78 constexpr const char* kEmptyEnumValues =
90 constexpr const char* kDuplicatedEnumValue =
103 constexpr const char* kInvalidModuleName =
115 constexpr const char* kInvalidNamespaceForPlatform =
128 constexpr const char* kRoPrefixForReadWriteProperty =
141 constexpr const char* kIntegerAsBoolWithWrongType =
[all …]
/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()
169 constexpr void discontinuity() { in discontinuity()
183 constexpr void error() { in error()
193 constexpr void setDiscontinuityMode(DiscontinuityMode mode) { in setDiscontinuityMode()
199 constexpr DiscontinuityMode getDiscontinuityMode() const { in getDiscontinuityMode()
232 constexpr int64_t getN() const { return mTimestamps; } in getN()
233 constexpr int64_t getDiscontinuities() const { return mDiscontinuities; } in getDiscontinuities()
234 constexpr int64_t getNotReady() const { return mNotReady; } in getNotReady()
[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/netd/include/binder_utils/
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;
/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/bt/gd/dumpsys/bundler/
Dbundler.h19 constexpr char kDefaultBundleDataFile[] = "bundle_bfbs.bin";
20 constexpr char kDefaultGeneratedOutputPath[] = ".";
21 constexpr char kDefaultNamespace[] = "";
22 constexpr char kDefaultNamespaceDelim[] = "::";
23 constexpr char kDefaultTitle[] = "Bundled schema tables";
44 constexpr bool AsBinaryFile = true;
45 constexpr bool AsTextFile = false;
/system/bt/main/shim/
Dbtm.h42 static constexpr int kDiscoverableModeOff = 0; // BTM_NON_DISCOVERABLE
43 static constexpr int kLimitedDiscoverableMode = 1; // BTM_LIMITED_DISCOVERABLE
44 static constexpr int kGeneralDiscoverableMode = 2; // BTM_GENERAL_DISCOVERABLE
47 static constexpr uint8_t kInquiryModeOff = 0; // BTM_INQUIRY_NONE
48 static constexpr uint8_t kGeneralInquiryMode = 1; // BTM_GENERAL_INQUIRY
49 static constexpr uint8_t kLimitedInquiryMode = 2; // BTM_LIMITED_INQUIRY
52 static constexpr int kConnectibleModeOff = 0; // BTM_NON_CONNECTABLE
53 static constexpr int kConnectibleModeOn = 1; // BTM_CONNECTABLE
56 static constexpr int kStandardScanType = 0;
57 static constexpr int kInterlacedScanType = 1;
[all …]
/system/teeui/libteeui/include/teeui/
Dbutton.h71 static const constexpr bool button_round_top_left = false;
72 static const constexpr bool button_round_top_right = false;
73 static const constexpr bool button_round_bottom_left = false;
74 static const constexpr bool button_round_bottom_right = false;
75 static const constexpr std::tuple<> button_drawable_objects = {};
76 static const constexpr Color button_drawable_object_color = 0xff000000;
100 constexpr const size_t convex_object_count = in draw()
113 #define CornerRadius(radius) static const constexpr auto button_radius = radius
115 #define ButtonColor(color) static const constexpr auto button_color = color
117 #define RoundTopLeft static const constexpr bool button_round_top_left = true
[all …]

12345678910>>...37