Searched defs:std (Results 1 - 25 of 40) sorted by relevance

12

/frameworks/base/tools/aapt2/compile/
H A DIdAssigner.h34 explicit IdAssigner(const std::unordered_map<ResourceName, ResourceId>* map) argument
40 const std::unordered_map<ResourceName, ResourceId>* assigned_id_map_ = nullptr;
/frameworks/av/media/libeffects/loudness/common/core/
H A Dmath.h22 using ::std::min;
23 using ::std::max;
24 using ::std::fill;
25 using ::std::fill_n;using ::std::lower_bound;
28 //using ::std::fpclassify;
74 namespace std { namespace
78 // since std::round is missing on android.
82 return static_cast<T>(std::floor(static_cast<double>(x) + 0.5));
85 } // namespace std
[all...]
/frameworks/base/tools/aapt2/
H A DSdkConstants.cpp31 static const std::vector<std::pair<uint16_t, ApiVersion>> sAttrIdMap = {
58 static bool less_entry_id(const std::pair<uint16_t, ApiVersion>& p, uint16_t entryId) { argument
66 auto iter = std::lower_bound(sAttrIdMap.begin(), sAttrIdMap.end(), id.entry_id(), less_entry_id);
73 static const std::unordered_map<std::string, ApiVersion> sAttrMap = {
747 std::pair<StringPiece, ApiVersion> GetDevelopmentSdkCodeNameAndVersion() {
748 return std::make_pair(StringPiece(sDevelopmentSdkCodeName), sDevelopmentSdkLevel);
/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h33 typename std::vector<std::pair<TKey, TValue>>::const_iterator;
39 std::initializer_list<std::pair<TKey, TValue>> list) {
41 std::vector<std::pair<TKey, TValue>>(list.begin(), list.end()));
45 std::initializer_list<std::pair<TKey, TValue>> list) {
46 std::vector<std
38 CreatePreSorted( std::initializer_list<std::pair<TKey, TValue>> list) argument
44 CreateAndSort( std::initializer_list<std::pair<TKey, TValue>> list) argument
[all...]
/frameworks/compile/mclinker/include/mcld/Support/
H A DRealPath.h49 namespace std { namespace
64 } // namespace std
H A DPath.h47 typedef std::string StringType;
109 inline std::basic_ostream<Char, Traits>& operator<<( argument
110 std::basic_ostream<Char, Traits>& pOS,
116 inline std::basic_istream<Char, Traits>& operator>>( argument
117 std::basic_istream<Char, Traits>& pOS,
156 namespace std { namespace
169 } // namespace std
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Ddefault_initialization_allocator.h16 // uninitialized; this is desirable when using std::vector as a resizable
18 template <typename T, typename Allocator = std::allocator<T>>
20 typedef std::allocator_traits<Allocator> AllocatorTraits;
33 std::is_nothrow_default_constructible<U>::value) {
39 std::forward<Args>(args)...);
32 noexcept( std::is_nothrow_default_constructible<U>::value) argument
H A Dserialization.h50 // * std::vector with value type of any supported type, including nesting.
51 // * std::string.
52 // * std::tuple with elements of any supported type, including nesting.
53 // * std::pair with elements of any supported type, including nesting.
54 // * std::map with keys and values of any supported type, including nesting.
55 // * std::unordered_map with keys and values of any supported type, including
57 // * std::array with values of any supported type, including nesting.
64 // * std::basic_string with all supported char types.
67 template <std::size_t N>
80 std
346 GetSerializedSize(const std::vector<T, Allocator>& v) argument
355 GetSerializedSize( const std::map<Key, T, Compare, Allocator>& v) argument
368 GetSerializedSize( const std::unordered_map<Key, T, Hash, KeyEqual, Allocator>& v) argument
[all...]
H A Dbuffer_wrapper.h24 typedef std::size_t size_type;
42 BufferWrapper(BufferWrapper&& other) { *this = std::move(other); }
100 class BufferWrapper<std::vector<T, Allocator>> {
102 using BufferType = typename std::vector<T, Allocator>;
116 BufferWrapper(BufferType&& buffer) : buffer_(std::move(buffer)) {}
118 : buffer_(std::move(buffer), allocator) {}
149 template <typename T, typename SizeType = std::size_t>
154 template <typename SizeType = std::size_t>
155 BufferWrapper<std::uint8_t*> WrapBuffer(void* buffer, SizeType size) {
156 return BufferWrapper<std
167 WrapBuffer( std::vector<T, Allocator>&& buffer) argument
[all...]
H A Dstring_wrapper.h15 // format as std::basic_string, and may be substituted for std::basic_string
18 // signatures specify std::basic_string arguments or return values.
19 template <typename CharT = std::string::value_type,
20 typename Traits = std::char_traits<CharT>>
26 typedef std::size_t size_type;
43 : StringWrapper(buffer, std::strlen(buffer)) {}
47 StringWrapper(StringWrapper&& other) { *this = std::move(other); }
108 // TODO(eieio): Wrapping std::basic_string is here for completeness, but is it
111 StringWrapper<const T> WrapString(const std argument
[all...]
/frameworks/rs/cpp/
H A DAndroid.mk23 -std=c++11
/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3DummyStream.cpp40 const std::vector<size_t>&) {
111 status_t Camera3DummyStream::setConsumers(const std::vector<sp<Surface>>& /*consumers*/) {
39 getBufferLocked(camera3_stream_buffer *, const std::vector<size_t>&) argument
H A DCamera3OutputStream.cpp156 const std::vector<size_t>&) {
560 std::vector<sp<GraphicBuffer>> removedBuffers;
729 const std::vector<sp<GraphicBuffer>>& removedBuffers) {
773 std::vector<sp<GraphicBuffer>> removedBuffers;
794 status_t Camera3OutputStream::setConsumers(const std::vector<sp<Surface>>& consumers) {
155 getBufferLocked(camera3_stream_buffer *buffer, const std::vector<size_t>&) argument
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestLayers.cpp21 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers,
24 std::unordered_map<Hwc2TestPropertyName, Hwc2TestCoverage>()) { }
26 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers, argument
28 const std::unordered_map<Hwc2TestPropertyName,
33 mTestLayers.emplace(std::piecewise_construct,
34 std::forward_as_tuple(layer),
35 std::forward_as_tuple(coverage, displayArea, coverageExceptions));
50 std::string Hwc2TestLayers::dump() const
52 std::stringstream dmp;
H A DHwc2TestLayer.cpp22 Hwc2TestCoverage coverage, const std::unordered_map<Hwc2TestPropertyName,
31 std::unordered_map<Hwc2TestPropertyName, Hwc2TestCoverage>()) { }
34 const Area& displayArea, const std::unordered_map<Hwc2TestPropertyName,
63 std::string Hwc2TestLayer::dump() const
65 std::stringstream dmp;
21 getCoverage(Hwc2TestPropertyName property, Hwc2TestCoverage coverage, const std::unordered_map<Hwc2TestPropertyName, Hwc2TestCoverage>& coverageExceptions) argument
33 Hwc2TestLayer(Hwc2TestCoverage coverage, const Area& displayArea, const std::unordered_map<Hwc2TestPropertyName, Hwc2TestCoverage>& coverageExceptions) argument
/frameworks/av/media/libstagefright/codec2/vndk/include/util/
H A DC2ParamUtils.h65 std::vector<C2Value::Primitive> { _C2_MAP(_C2_GET_ENUM_VALUE, type, __VA_ARGS__) }, \
73 std::vector<std::pair<C2StringLiteral, name>> names); \
118 /* std::cout << name.substr(0, word_start) << "|"
121 << ": " << (char)type << std::endl; */
159 // std::cout << "=> " << name << std::endl;
163 static std::vector<C2String> sanitizeEnumValueNames(
164 const std::vector<C2StringLiteral> names,
166 std
255 customEnumValues( std::vector<std::pair<C2StringLiteral, E>> items) argument
[all...]
/frameworks/base/core/jni/
H A Dfd_utils.cpp57 bool FileDescriptorWhitelist::IsAllowed(const std::string& path) const {
94 && path.find("/../") == std::string::npos) {
102 && path.find("/../") == std::string::npos) {
109 && path.find("/../") == std::string::npos) {
135 std::string socket_name;
164 std::string file_path;
165 const std::string fd_path = android::base::StringPrintf("/proc/self/fd/%d", fd);
278 FileDescriptorInfo::FileDescriptorInfo(struct stat stat, const std::string& file_path,
292 bool FileDescriptorInfo::GetSocketName(const int fd, std::string* result) {
324 // std
439 FileDescriptorTable( const std::unordered_map<int, FileDescriptorInfo*>& map) argument
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A DStringPiece.h32 // WARNING: When creating from std::basic_string<>, moving the original
33 // std::basic_string<> will invalidate the data held in a BasicStringPiece<>.
46 BasicStringPiece(const std::basic_string<TChar>& str); // NOLINT(implicit)
61 std::basic_string<TChar> to_string() const;
96 inline BasicStringPiece<TChar>::BasicStringPiece(const std::basic_string<TChar>& str)
166 inline std::basic_string<TChar> BasicStringPiece<TChar>::to_string() const {
167 return std::basic_string<TChar>(data_, length_);
198 inline ::std::ostream& operator<<(::std::ostream& out, const BasicStringPiece<char16_t>& str) {
205 std
304 namespace std { namespace
[all...]
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp54 const std::map<ResourceId, ResourceName>* mapping)
74 const std::map<ResourceId, ResourceName>* mapping_;
193 if (package_id > std::numeric_limits<uint8_t>::max()) {
202 std::u16string package_name;
349 const std::string type_str = util::GetString(type_pool_, type->id - 1);
373 std::unique_ptr<Value> resource_value;
393 if (!table_->AddResourceAllowMangled(name, res_id, config, {}, std::move(resource_value),
432 std::unique_ptr<Item> BinaryResourceParser::ParseValue(const ResourceNameRef& name,
435 std::unique_ptr<Item> item = ResourceUtils::ParseBinaryResValue(name.type, config, value_pool_,
452 std
53 ReferenceIdToNameVisitor( const std::map<ResourceId, ResourceName>* mapping) argument
[all...]
/frameworks/compile/libbcc/lib/
H A DRSCompilerDriver.cpp84 mConfig = new (std::nothrow) CompilerConfig(DEFAULT_TARGET_TRIPLE_STRING);
165 std::error_code error;
191 std::unique_ptr<llvm::raw_fd_ostream> IRStream;
193 std::string path(pOutputPath);
306 const std::vector<Source*>& sources,
307 const std::list<std::list<std::pair<int, int>>>& toFuse,
308 const std::list<std
303 buildScriptGroup( BCCContext& Context, const char* pOutputFilepath, const char* pRuntimePath, const char* pRuntimeRelaxedPath, bool dumpIR, const char* buildChecksum, const std::vector<Source*>& sources, const std::list<std::list<std::pair<int, int>>>& toFuse, const std::list<std::string>& fused, const std::list<std::list<std::pair<int, int>>>& invokes, const std::list<std::string>& invokeBatchNames) argument
[all...]
/frameworks/native/libs/vr/libdvr/
H A Ddvr_display_manager.cpp44 void operator()(const std::array<float, 2>& value) { argument
45 std::copy(value.cbegin(), value.cend(), attribute->value.float2_value);
48 void operator()(const std::array<float, 3>& value) { argument
49 std::copy(value.cbegin(), value.cend(), attribute->value.float3_value);
52 void operator()(const std::array<float, 4>& value) { argument
53 std::copy(value.cbegin(), value.cend(), attribute->value.float4_value);
56 void operator()(const std::array<float, 8>& value) { argument
57 std::copy(value.cbegin(), value.cend(), attribute->value.float8_value);
60 void operator()(const std::array<float, 16>& value) { argument
61 std
[all...]
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dnumeric.h90 const T& tol = std::numeric_limits<T>::epsilon()) {
91 return std::abs(v) <= tol;
96 const T& tol = std::numeric_limits<T>::epsilon()) {
97 return std::abs(b - a) <= tol;
108 std::enable_if<std::is_floating_point<T>::value>::type* = 0) {
109 std::random_device rd;
110 std::mt19937 gen(rd());
111 std::uniform_real_distribution<T> distro(lo, hi);
118 std
89 IsZero(const T& v, const T& tol = std::numeric_limits<T>::epsilon()) argument
95 IsEqual(const T& a, const T& b, const T& tol = std::numeric_limits<T>::epsilon()) argument
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dutility.h35 std::swap(data_, other.data_);
36 std::swap(size_, other.size_);
37 std::swap(capacity_, other.capacity_);
122 template <typename T, std::size_t N, template <typename...> class TT>
140 return std::make_tuple(ReturnValueHelper(value, S)...);
143 // Returns an N-tuple of type std::tuple<T,...T> containing |value| in each
146 typename R = typename RepeatedType<T, N, std::tuple>::type>
200 // with std::vector is helpful.
213 Payload(const std::initializer_list<uint8_t>& initializer) {
215 std
241 operator ==(const std::vector<Type, AllocatorType>& other) const argument
247 operator !=(const std::vector<Type, AllocatorType>& other) const argument
[all...]
/frameworks/av/media/vndk/xmlparser/1.0/
H A DMediaCodecsXmlParser.cpp51 const char *file_name, std::string *out_path) {
53 *out_path = std::string(kConfigLocationList[i]) + "/" + file_name;
64 std::vector<TypeInfo>::iterator findTypeInfo(
66 return std::find_if(
88 std::string config_file_path;
838 std::map<AString, AString> *settings) const {
852 status_t MediaCodecsXmlParser::getQuirks(const char *name, std::vector<AString> *quirks) const {
837 getGlobalSettings( std::map<AString, AString> *settings) const argument
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
H A DParameterManagerWrapper.cpp38 using std::string;
39 using std::map;
40 using std::vector;
106 std::string error;
135 std::string error;
222 T *ParameterManagerWrapper::getElement(const string &name, std::map<string, T *> &elementsMap)
225 typename std::map<string, T *>::iterator it = elementsMap.find(name);
231 const T *ParameterManagerWrapper::getElement(const string &name, const std::map<string, T *> &elementsMap) const argument
234 typename std::map<string, T *>::const_iterator it = elementsMap.find(name);

Completed in 500 milliseconds

12