/system/update_engine/common/ |
D | constants.h | 24 static constexpr const auto& kExclusionPrefsSubDir = "exclusion"; 27 static constexpr const auto& kDlcPrefsSubDir = "dlc"; 30 static constexpr const auto& kPowerwashSafePrefsSubDirectory = 34 static constexpr const auto& kPrefsSubDirectory = "prefs"; 37 static constexpr const auto& kStatefulPartition = "/mnt/stateful_partition"; 40 static constexpr const auto& kPostinstallDefaultScript = "postinst"; 44 static constexpr const auto& kPrefsAttemptInProgress = "attempt-in-progress"; 45 static constexpr const auto& kPrefsBackoffExpiryTime = "backoff-expiry-time"; 46 static constexpr const auto& kPrefsBootId = "boot-id"; 47 static constexpr const auto& kPrefsCurrentBytesDownloaded = [all …]
|
D | testing_constants.h | 20 [[maybe_unused]] static constexpr auto&& kUnittestPrivateKeyPath = 22 [[maybe_unused]] static constexpr auto&& kUnittestOTACertsPath = "otacerts.zip"; 23 [[maybe_unused]] static constexpr auto&& kUnittestPublicKeyPath = 25 [[maybe_unused]] static constexpr auto&& kUnittestPrivateKey2Path = 27 [[maybe_unused]] static constexpr auto&& kUnittestPublicKey2Path = 29 [[maybe_unused]] static constexpr auto&& kUnittestPrivateKeyRSA4096Path = 31 [[maybe_unused]] static constexpr auto&& kUnittestPublicKeyRSA4096Path = 33 [[maybe_unused]] static constexpr auto&& kUnittestPrivateKeyECPath = 35 [[maybe_unused]] static constexpr auto&& kUnittestPublicKeyECPath =
|
/system/apex/apexd/ |
D | apex_constants.h | 26 static constexpr const char* kApexDataDir = "/data/apex"; 27 static constexpr const char* kActiveApexPackagesDataDir = "/data/apex/active"; 28 static constexpr const char* kApexBackupDir = "/data/apex/backup"; 29 static constexpr const char* kApexHashTreeDir = "/data/apex/hashtree"; 30 static constexpr const char* kApexDecompressedDir = "/data/apex/decompressed"; 31 static constexpr const char* kOtaReservedDir = "/data/apex/ota_reserved"; 32 static constexpr const char* kApexPackageSystemDir = "/system/apex"; 33 static constexpr const char* kApexPackageSystemExtDir = "/system_ext/apex"; 34 static constexpr const char* kApexPackageVendorDir = "/vendor/apex"; 41 static constexpr const char* kApexRoot = "/apex"; [all …]
|
/system/chre/util/include/chre/util/ |
D | time.h | 25 constexpr uint64_t kOneMinuteInMilliseconds(60000); 27 constexpr uint64_t kOneMinuteInNanoseconds(60000000000); 30 constexpr uint64_t kOneSecondInMilliseconds(1000); 33 constexpr uint64_t kOneSecondInNanoseconds(1000000000); 36 constexpr uint64_t kOneMillisecondInNanoseconds(1000000); 39 constexpr uint64_t kOneMicrosecondInNanoseconds(1000); 42 constexpr uint64_t kOneMillisecondInMicroseconds(1000); 54 constexpr explicit Seconds(uint64_t seconds); 62 constexpr uint64_t toRawNanoseconds() const; 69 constexpr uint64_t getMilliseconds() const; [all …]
|
D | time_impl.h | 24 constexpr Seconds::Seconds(uint64_t seconds) : mSeconds(seconds) {} in Seconds() 26 constexpr uint64_t Seconds::toRawNanoseconds() const { in toRawNanoseconds() 35 constexpr uint64_t Seconds::getMilliseconds() const { in getMilliseconds() 44 constexpr Milliseconds::Milliseconds() : mMilliseconds(0) {} 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() 62 constexpr uint64_t Milliseconds::getMicroseconds() const { in getMicroseconds() 71 constexpr uint64_t Milliseconds::getMilliseconds() const { in getMilliseconds() 75 constexpr bool Milliseconds::operator==(const Milliseconds &millis) const { [all …]
|
/system/libvintf/ |
D | constants-private.h | 30 static constexpr size_t kFakeAidlMajorVersion = SIZE_MAX; 31 static constexpr VersionRange kDefaultAidlVersionRange{kFakeAidlMajorVersion, 33 static constexpr Version kDefaultAidlVersion = kDefaultAidlVersionRange.minVer(); 36 constexpr const char* kSystemVintfDir = SYSTEM_VINTF_DIR; 38 constexpr const char* kVendorVintfDir = VENDOR_VINTF_DIR; 40 constexpr const char* kOdmVintfDir = ODM_VINTF_DIR; 42 constexpr const char* kProductVintfDir = PRODUCT_VINTF_DIR; 44 constexpr const char* kSystemExtVintfDir = SYSTEM_EXT_VINTF_DIR; 46 constexpr const char* kVendorManifest = VENDOR_VINTF_DIR "manifest.xml"; 47 constexpr const char* kSystemManifest = SYSTEM_VINTF_DIR "manifest.xml"; [all …]
|
/system/chre/util/include/chre/util/nanoapp/ |
D | app_id.h | 48 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() 69 constexpr uint64_t kHelloWorldAppId = makeExampleNanoappId(1); 70 constexpr uint64_t kMessageWorldAppId = makeExampleNanoappId(2); 71 constexpr uint64_t kTimerWorldAppId = makeExampleNanoappId(3); 72 constexpr uint64_t kSensorWorldAppId = makeExampleNanoappId(4); 73 constexpr uint64_t kGnssWorldAppId = makeExampleNanoappId(5); 74 constexpr uint64_t kWifiWorldAppId = makeExampleNanoappId(6); 75 constexpr uint64_t kWwanWorldAppId = makeExampleNanoappId(7); [all …]
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | cow_format.h | 23 static constexpr uint64_t kCowMagicNumber = 0x436f77634f572121ULL; 24 static constexpr uint32_t kCowVersionMajor = 2; 25 static constexpr uint32_t kCowVersionMinor = 0; 27 static constexpr uint32_t kCowVersionManifest = 2; 29 static constexpr size_t BLOCK_SZ = 4096; 30 static constexpr size_t BLOCK_SHIFT = (__builtin_ffs(BLOCK_SZ) - 1); 148 static constexpr uint8_t kCowCopyOp = 1; 149 static constexpr uint8_t kCowReplaceOp = 2; 150 static constexpr uint8_t kCowZeroOp = 3; 151 static constexpr uint8_t kCowLabelOp = 4; [all …]
|
/system/libvintf/include/vintf/ |
D | SerializeFlags.h | 29 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 …]
|
D | CheckFlags.h | 29 [[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/media/audio_utils/tests/ |
D | intrinsic_tests.cpp | 29 constexpr TypeParam a = 0.25f; in TYPED_TEST() 30 constexpr TypeParam b = 0.5f; in TYPED_TEST() 31 constexpr TypeParam result = a + b; in TYPED_TEST() 36 constexpr TypeParam value = 1.f; in TYPED_TEST() 41 constexpr TypeParam value = 2.f; in TYPED_TEST() 46 constexpr TypeParam a = 2.125f; in TYPED_TEST() 47 constexpr TypeParam b = 2.25f; in TYPED_TEST() 48 constexpr TypeParam c = 2.5f; in TYPED_TEST() 49 constexpr TypeParam result = c + a * b; in TYPED_TEST() 54 constexpr TypeParam a = 2.25f; in TYPED_TEST() [all …]
|
/system/gsid/include/libgsi/ |
D | libgsi.h | 27 static constexpr char kGsiServiceName[] = "gsiservice"; 39 static constexpr char kGsiBootedIndicatorFile[] = DSU_METADATA_PREFIX "booted"; 41 static constexpr char kGsiLpNamesFile[] = DSU_METADATA_PREFIX "lp_names"; 43 static constexpr char kDsuActiveFile[] = DSU_METADATA_PREFIX "active"; 45 static constexpr char kDsuAvbKeyDir[] = DSU_METADATA_PREFIX "avb/"; 47 static constexpr char kDsuMetadataKeyDirPrefix[] = "/metadata/vold/metadata_encryption/dsu/"; 49 static constexpr char kDsuSDPrefix[] = "/mnt/media_rw/"; 81 static constexpr char kGsiBootedProp[] = "ro.gsid.image_running"; 83 static constexpr char kGsiInstalledProp[] = "gsid.image_installed"; 85 static constexpr char kDsuPostfix[] = "_gsi"; [all …]
|
/system/memory/libmeminfo/include/meminfo/ |
D | sysmeminfo.h | 32 static constexpr const char kDmabufHeapRoot[] = "/dev/dma_heap"; 37 static constexpr const char kMemTotal[] = "MemTotal:"; 38 static constexpr const char kMemFree[] = "MemFree:"; 39 static constexpr const char kMemBuffers[] = "Buffers:"; 40 static constexpr const char kMemCached[] = "Cached:"; 41 static constexpr const char kMemShmem[] = "Shmem:"; 42 static constexpr const char kMemSlab[] = "Slab:"; 43 static constexpr const char kMemSReclaim[] = "SReclaimable:"; 44 static constexpr const char kMemSUnreclaim[] = "SUnreclaim:"; 45 static constexpr const char kMemSwapTotal[] = "SwapTotal:"; [all …]
|
/system/vold/ |
D | CryptoType.h | 35 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/media/audio_utils/include/audio_utils/ |
D | intrinsic_utils.h | 45 inline constexpr bool dependent_false_v = false; 84 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in vadd() 88 } else if constexpr (std::is_same_v<T, float32x2_t>) { in vadd() 90 } else if constexpr (std::is_same_v<T, float32x4_t>) { in vadd() 93 } else if constexpr (std::is_same_v<T, float64x2_t>) { in vadd() 103 if constexpr (std::is_array_v<decltype(retval)>) { in vadd() 123 if constexpr (std::is_same_v<T, float> || std::is_same_v<T, double>) { in vdupn() 127 } else if constexpr (std::is_same_v<T, float32x2_t>) { in vdupn() 129 } else if constexpr (std::is_same_v<T, float32x4_t>) { in vdupn() 132 } else if constexpr (std::is_same_v<T, float64x2_t>) { in vdupn() [all …]
|
D | TimestampVerifier.h | 36 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() 175 constexpr void discontinuity(DiscontinuityMode mode) { in discontinuity() 198 constexpr void error() { in error() 202 constexpr DiscontinuityMode getDiscontinuityMode() const { in getDiscontinuityMode() 235 constexpr int64_t getN() const { return mTimestamps; } in getN() 236 constexpr int64_t getDiscontinuities() const { return mDiscontinuities; } in getDiscontinuities() 237 constexpr int64_t getNotReady() const { return mNotReady; } in getNotReady() 238 constexpr int64_t getColds() const { return mColds; } in getColds() [all …]
|
D | Statistics.h | 56 constexpr KahanSum<T>() = default; 58 explicit constexpr KahanSum<T>(const T& value) in KahanSum() 63 friend constexpr KahanSum<T> operator+(KahanSum<T> lhs, const T& rhs) { 76 constexpr KahanSum<T>& operator+=(const T& rhs) { // takes T not KahanSum<T> 81 constexpr operator T() const { in T() 85 constexpr void reset() { in reset() 98 constexpr NeumaierSum<T>() = default; 100 explicit constexpr NeumaierSum<T>(const T& value) in NeumaierSum() 104 friend constexpr NeumaierSum<T> operator+(NeumaierSum<T> lhs, const T& rhs) { 116 constexpr NeumaierSum<T>& operator+=(const T& rhs) { // takes T not NeumaierSum<T> [all …]
|
/system/netd/server/ |
D | RouteController.h | 34 constexpr int32_t RULE_PRIORITY_VPN_OVERRIDE_SYSTEM = 10000; 35 constexpr int32_t RULE_PRIORITY_VPN_OVERRIDE_OIF = 11000; 36 constexpr int32_t RULE_PRIORITY_VPN_OUTPUT_TO_LOCAL = 12000; 37 constexpr int32_t RULE_PRIORITY_SECURE_VPN = 13000; 38 constexpr int32_t RULE_PRIORITY_PROHIBIT_NON_VPN = 14000; 46 constexpr int32_t RULE_PRIORITY_UID_EXPLICIT_NETWORK = 15000; 47 constexpr int32_t RULE_PRIORITY_EXPLICIT_NETWORK = 16000; 48 constexpr int32_t RULE_PRIORITY_OUTPUT_INTERFACE = 17000; 49 constexpr int32_t RULE_PRIORITY_LEGACY_SYSTEM = 18000; 50 constexpr int32_t RULE_PRIORITY_LEGACY_NETWORK = 19000; [all …]
|
/system/nvram/messages/ |
D | nvram_messages.cpp | 31 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/tools/sysprop/tests/ |
D | InvalidSyspropTest.cpp | 29 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/extras/simpleperf/ |
D | ETMConstants.h | 22 static constexpr int ETM_OPT_CTXTID = 14; 23 static constexpr int ETM_OPT_CTXTID2 = 15; 24 static constexpr int ETM_OPT_TS = 28; 26 static constexpr int ETM4_CFG_BIT_CTXTID = 6; 27 static constexpr int ETM4_CFG_BIT_VMID = 7; 28 static constexpr int ETM4_CFG_BIT_TS = 11; 29 static constexpr int ETM4_CFG_BIT_VMID_OPT = 15;
|
/system/tools/xsdc/utils/include/xsdc/ |
D | XsdcSupport.h | 32 constexpr xsdc_invalid_type<T> xsdc_enum_values; 44 constexpr auto begin() const { return std::begin(details::xsdc_enum_values<T>); } in begin() 45 constexpr auto cbegin() const { return begin(); } in cbegin() 46 constexpr auto rbegin() const { return std::rbegin(details::xsdc_enum_values<T>); } in rbegin() 47 constexpr auto crbegin() const { return rbegin(); } in crbegin() 48 constexpr auto end() const { return std::end(details::xsdc_enum_values<T>); } in end() 49 constexpr auto cend() const { return end(); } in cend() 50 constexpr auto rend() const { return std::rend(details::xsdc_enum_values<T>); } in rend() 51 constexpr auto crend() const { return rend(); } in crend()
|
/system/teeui/libteeui/include/teeui/ |
D | button.h | 71 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 …]
|
D | label.h | 35 constexpr FontBuffer() : data_(nullptr), size_(0) {} in FontBuffer() 36 constexpr FontBuffer(const uint8_t* data, size_t size) noexcept : data_(data), size_(size) {} in FontBuffer() 38 explicit constexpr FontBuffer(const uint8_t (&data)[size]) noexcept in FontBuffer() 40 constexpr FontBuffer(const FontBuffer&) noexcept = default; 41 constexpr FontBuffer(FontBuffer&&) noexcept = default; 45 constexpr operator bool() const { return data_ != nullptr; } 109 static const constexpr Alignment label_horizontal_text_alignment = Alignment::LEFT; 110 static const constexpr Alignment label_vertical_text_alignment = Alignment::TOP; 111 static const constexpr Color label_text_color = 0xff000000; 112 static const constexpr int label_font = 0; [all …]
|
/system/netd/include/binder_utils/ |
D | NetdPermissions.h | 20 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[] =
|