Searched defs:std (Results 1 - 25 of 40) sorted by last modified time

12

/frameworks/rs/cpp/
H A DAndroid.mk23 -std=c++11
/frameworks/native/libs/gui/
H A DFrameTimestamps.cpp173 auto frame = std::find_if(
179 *iHint = std::min(*iHint, mFrames.size());
181 auto frame = std::find_if(
184 frame = std::find_if(
190 *iHint = static_cast<size_t>(std::distance(mFrames.begin(), frame));
210 auto earliestFrame = std::min_element(
249 uint64_t frameNumber, std::shared_ptr<FenceTime>&& acquire) {
258 frame->acquireFence = std::move(acquire);
262 frame->acquireFence = std::make_shared<FenceTime>(frame->postedTime);
317 std
446 getFrameDelta( FrameEventHistoryDelta* delta, const std::array<FrameEvents, MAX_FRAME_HISTORY>::iterator& frame) argument
[all...]
/frameworks/native/libs/ui/
H A DColorSpace.cpp19 using namespace std::placeholders;
28 return x >= p.d * p.c ? (std::pow(x, 1.0f / p.g) - p.b) / p.a : x / p.c;
32 return x >= p.d ? std::pow(p.a * x + p.b, p.g) : p.c * x;
36 return x >= p.d * p.c ? (std::pow(x - p.e, 1.0f / p.g) - p.b) / p.a : (x - p.f) / p.c;
40 return x >= p.d ? std::pow(p.a * x + p.b, p.g) + p.e : p.c * x + p.f;
44 float xx = std::abs(x);
45 return std::copysign(xx >= d * c ? (std::pow(xx, 1.0f / g) - b) / a : xx / c, x);
49 float xx = std::abs(x);
50 return std
199 computeXYZMatrix( const std::array<float2, 3>& primaries, const float2& whitePoint) 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/rpc/
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 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 Dencoding.h109 typedef std::uint8_t EncodingType;
303 inline constexpr std::size_t GetFixstrSize(EncodingType encoding) {
307 inline constexpr std::size_t GetFixarraySize(EncodingType encoding) {
311 inline constexpr std::size_t GetFixmapSize(EncodingType encoding) {
315 inline constexpr std::size_t GetFixextSize(EncodingType encoding) {
333 inline constexpr std::size_t GetEncodingSize(EncodingType encoding) {
397 inline constexpr EncodingType EncodeArrayType(std::size_t size) {
406 inline constexpr EncodingType EncodeMapType(std::size_t size) {
415 inline constexpr EncodingType EncodeStringType(std::size_t size) {
426 inline constexpr EncodingType EncodeBinType(std
455 EncodeType(const std::array<T, Size>& ) argument
465 EncodeType( const std::vector<T, Allocator>& value) argument
471 EncodeType( const std::map<Key, T, Compare, Allocator>& value) argument
478 EncodeType( const std::unordered_map<Key, T, Hash, KeyEqual, Allocator>& value) argument
491 EncodeType(const std::pair<T, U>& ) argument
[all...]
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 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/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/native/libs/vr/libpdx_uds/
H A Dremote_method_tests.cpp40 std::string Rot13(const std::string& s) {
41 std::string text = s;
42 std::transform(std::begin(text), std::end(text), std::begin(text),
44 if (!std::isalpha(c)) {
47 const char pivot = std::isupper(c) ? 'A' : 'a';
59 std
296 OpenFiles( const std::vector<std::pair<std::string, int>>& file_specs) argument
492 OnOpenFiles( Message&, const std::vector<std::pair<std::string, int>>& file_specs) argument
[all...]
H A Dservice_framework_tests.cpp69 using ImpulsePayload = std::array<std::uint8_t, sizeof(MessageInfo::impulse)>;
92 std::shared_ptr<Channel> OnChannelOpen(Message& message) override {
93 return std::make_shared<TestChannel>(message.GetChannelId());
97 const std::shared_ptr<Channel>& channel) override {
110 std::copy(message.ImpulseBegin(), message.ImpulseEnd(),
155 std::shared_ptr<TestChannel> channel;
182 auto channel = std::make_shared<TestChannel>(-1);
192 auto channel = std::make_shared<TestChannel>(-1);
215 std
375 SendLargeDataReturnSum( const std::array<int, kLargeDataSize>& data_array) argument
[all...]
/frameworks/native/services/surfaceflinger/DisplayHardware/
H A DHWC2.cpp43 device->callHotplug(std::move(display), connected);
55 device->callRefresh(std::move(display));
67 device->callVsync(std::move(display), timestamp);
92 : mComposer(std::make_unique<Hwc2::Composer>(useVrComposer)),
138 std::string Device::dump() const
149 android_pixel_format_t* format, std::shared_ptr<Display>* outDisplay)
182 mHotplug(std::move(display), connected);
190 mRefresh(std::move(pending));
200 mVsync(std::move(display), timestamp);
206 void Device::callHotplug(std
432 getChangedCompositionTypes( std::unordered_map<std::shared_ptr<Layer>, Composition>* outTypes) argument
573 getReleaseFences( std::unordered_map<std::shared_ptr<Layer>, sp<Fence>>* outFences) const argument
[all...]
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2Test.cpp129 std::lock_guard<std::mutex> lock(mHotplugMutex);
151 mLayers.insert(std::make_pair(display, *outLayer));
170 mLayers.erase(std::make_pair(display, layer));
200 std::vector<hwc2_config_t>* outConfigs,
321 std::lock_guard<std::mutex> lock(mVsyncMutex);
327 void getDisplayName(hwc2_display_t display, std::string* outName,
340 std::vector<char> name(size);
602 std
941 setColorTransform(hwc2_display_t display, const std::array<float, 16>& matrix, android_color_transform_t hint, hwc2_error_t* outErr = nullptr) argument
1699 presentDisplays(size_t layerCnt, Hwc2TestCoverage coverage, const std::unordered_map<Hwc2TestPropertyName, Hwc2TestCoverage>& coverageExceptions, bool optimize) argument
[all...]
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
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 DHwc2TestProperties.h74 virtual std::string dump() const = 0;
85 const std::vector<T>& completeList, const std::vector<T>& basicList,
86 const std::vector<T>& defaultList,
87 const std::array<bool, 6>& compositionSupport)
92 Hwc2TestProperty(const std::vector<T>& list, argument
93 const std::array<bool, 6>& compositionSupport)
128 const std::vector<T>& mList;
131 const std::array<bool, 6>& mCompositionSupport;
142 std
84 Hwc2TestProperty(Hwc2TestCoverage coverage, const std::vector<T>& completeList, const std::vector<T>& basicList, const std::vector<T>& defaultList, const std::array<bool, 6>& compositionSupport) 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/compile/mclinker/include/mcld/Support/
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
H A DRealPath.h49 namespace std { namespace
64 } // namespace std
/frameworks/base/tools/aapt2/
H A DResource.h84 std::string package;
86 std::string entry;
94 std::string ToString() const;
169 std::vector<SourcedResourceName> exported_symbols;
251 inline ::std::ostream& operator<<(::std::ostream& out,
253 std::ios_base::fmtflags old_flags = out.flags();
255 out << "0x" << std::internal << std::setfill('0') << std
385 namespace std { namespace
[all...]
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/cmd/
H A DLink.cpp70 std::string output_path;
71 std::string manifest_path;
72 std::vector<std::string> include_paths;
73 std::vector<std::string> overlay_files;
74 std::vector<std::string> assets_dirs;
79 Maybe<std::string> generate_java_class_path;
80 Maybe<std
609 WriteStableIdMapToPath(IDiagnostics* diag, const std::unordered_map<ResourceName, ResourceId>& id_map, const std::string& id_map_path) argument
[all...]
/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;

Completed in 1379 milliseconds

12