/frameworks/base/tools/aapt2/ |
H A D | Resource.h | 84 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...] |
/frameworks/base/tools/aapt2/flatten/ |
H A D | TableFlattener.cpp | 93 if (attr->min_int != std::numeric_limits<int32_t>::min()) { 100 if (attr->max_int != std::numeric_limits<int32_t>::max()) { 121 std::sort(style->entries.begin(), style->entries.end(), cmp_style_entries); 221 const std::map<size_t, std::string>* shared_libs, bool use_sparse_entries) 258 buffer->AppendBuffer(std::move(type_buffer)); 274 static_assert(std::is_same<ResTable_entry, T>::value || 275 std::is_same<ResTable_entry_ext, T>::value, 315 const size_t num_total_entries, std::vector<FlatEntry>* entries, 318 CHECK(num_total_entries <= std 220 PackageFlattener(IAaptContext* context, ResourceTablePackage* package, const std::map<size_t, std::string>* shared_libs, bool use_sparse_entries) argument [all...] |
/frameworks/base/tools/aapt2/proto/ |
H A D | TableProtoDeserializer.cpp | 35 explicit ReferenceIdToNameVisitor(const std::map<ResourceId, ResourceNameRef>* mapping) argument 53 const std::map<ResourceId, ResourceNameRef>* mapping_; 75 std::map<ResourceId, ResourceNameRef> idIndex; 163 std::unique_ptr<Item> DeserializeItemFromPb(const pb::Item& pb_item, 168 std::unique_ptr<Reference> ref = util::make_unique<Reference>(); 172 return std::move(ref); 186 const std::string str = util::GetString(*value_pool_, idx); 206 const std::string str = util::GetString(*value_pool_, idx); 212 const std::string str = util::GetString(*value_pool_, idx); 223 std [all...] |
/frameworks/native/libs/gui/ |
H A D | FrameTimestamps.cpp | 173 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 D | ColorSpace.cpp | 19 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/av/services/camera/libcameraservice/device3/ |
H A D | Camera3Stream.cpp | 448 const std::vector<size_t>& surface_ids) { 681 const std::vector<size_t>&) { 680 getBufferLocked(camera3_stream_buffer *, const std::vector<size_t>&) argument
|
/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | ClientManager.h | 85 const std::set<KEY>& conflictingKeys, int32_t score, int32_t ownerId, int32_t state); 86 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys, 124 std::set<KEY> getConflicting() const; 139 std::set<KEY> mConflicting; 151 const std::set<KEY>& conflictingKeys, int32_t score, int32_t ownerId, int32_t state) : 158 std::set<KEY>&& conflictingKeys, int32_t score, int32_t ownerId, int32_t state) : 159 mKey{std::forward<KEY>(key)}, mValue{std::forward<VALUE>(value)}, mCost{cost}, 160 mConflicting{std::forward<std 394 wouldEvict( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const argument 402 getIncompatibleClients( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) const argument 410 wouldEvictLocked( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client, bool returnIncompatibleClients) const argument 503 addAndEvict( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& client) argument 564 updatePriorities( const std::map<int32_t,ClientPriority>& ownerPriorityList) argument 620 waitUntilRemoved( const std::shared_ptr<ClientDescriptor<KEY, VALUE>> client, nsecs_t timeout) const argument 658 remove( const std::shared_ptr<ClientDescriptor<KEY, VALUE>>& value) argument [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
H A D | encoding.h | 109 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...] |
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | service_framework_tests.cpp | 69 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...] |
H A D | remote_method_tests.cpp | 40 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...] |
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
H A D | Hwc2TestProperties.h | 74 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...] |
H A D | Hwc2Test.cpp | 129 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...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 82 const std::vector<nsecs_t>& timestamps, 83 const std::vector<native_handle_t*>& handles); 369 const std::vector<nsecs_t>&, 370 const std::vector<native_handle_t*>& handles) { 368 postRecordingFrameHandleTimestampBatch( const std::vector<nsecs_t>&, const std::vector<native_handle_t*>& handles) argument
|
/frameworks/base/tools/aapt2/cmd/ |
H A D | Link.cpp | 70 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/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWC2.cpp | 43 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...] |