/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 34 : resources_asset_(std::move(resources_asset)), in ApkAssets() 35 loaded_arsc_(std::move(loaded_arsc)), in ApkAssets() 36 assets_provider_(std::move(assets)), in ApkAssets() 38 idmap_asset_(std::move(idmap_asset)), in ApkAssets() 39 loaded_idmap_(std::move(loaded_idmap)) { in ApkAssets() 48 return Load(ZipAssetsProvider::Create(std::move(fd), debug_name, offset, len), flags); in LoadFromFd() 52 return LoadImpl(std::move(assets), flags, nullptr /* idmap_asset */, nullptr /* loaded_idmap */); in Load() 61 return LoadImpl(std::move(resources_asset), std::move(assets), flags, nullptr /* idmap_asset */, in LoadTable() 87 overlay_assets = EmptyAssetsProvider::Create(std::move(overlay_path)); in LoadOverlay() 90 overlay_assets = ZipAssetsProvider::Create(std::move(overlay_path), flags, std::move(fd)); in LoadOverlay() [all …]
|
D | AssetsProvider.cpp | 43 return CreateAssetFromFd(std::move(fd), path.c_str()); in CreateAssetFromFile() 71 return Asset::createFromUncompressedMap(std::move(file_map), in CreateAssetFromFd() 73 (path != nullptr) ? base::unique_fd(-1) : std::move(fd)); in CreateAssetFromFd() 91 name_(std::move(path)), in ZipAssetsProvider() 119 new ZipAssetsProvider(handle, PathOrDebugName::Path(std::move(path)), flags, sb.st_mtime)); in Create() 153 handle, PathOrDebugName::DebugName(std::move(friendly_name)), flags, sb.st_mtime)); in Create() 185 Asset::createFromCompressedMap(std::move(asset_map), entry.uncompressed_length, mode); in OpenInternal() 212 auto asset = Asset::createFromUncompressedMap(std::move(asset_map), mode, std::move(ufd)); in OpenInternal() 249 dirs.insert(std::move(dir)); in ForEachFile() 299 : dir_(std::move(path)), last_mod_time_(last_mod_time) {} in DirectoryAssetsProvider() [all …]
|
/frameworks/native/libs/ftl/ |
D | small_vector_test.cpp | 101 auto move = "tart"s; in TEST() local 102 SmallVector vector = {copy, std::move(move)}; in TEST() 120 auto move = "velvet"s; in TEST() local 122 SmallVector vector = ftl::init::list<std::string>(copy.c_str())(std::move(move))(list); in TEST() 125 EXPECT_TRUE(move.empty()); in TEST() 132 SmallVector vector = std::move(doubles); in TEST() 197 SmallVector<const std::string, 2> move(std::move(vector)); in TEST() local 199 EXPECT_EQ(move, (SmallVector{"snow"s, "cone"s})); in TEST() 203 move = std::move(other); in TEST() 205 EXPECT_EQ(move, (SmallVector{"tiramisu"s})); in TEST() [all …]
|
D | future_test.cpp | 40 auto future = ftl::yield(std::move(ptr)); in TEST() 47 ftl::Future<char> chain = ftl::Future(std::move(future)) in TEST() 49 .then([&futures](size_t i) { return std::move(futures[i]); }); in TEST() 75 [](ByteVector bytes) { return ftl::defer(decrement, std::move(bytes)); }); in TEST() 78 std::thread fetch_thread(std::move(fetch_string)); in TEST() 84 ftl::Future(std::move(fetch)) in TEST() 88 append_thread = std::thread(std::move(append_string), std::move(str)); in TEST() 93 decrement_thread = std::thread(std::move(decrement_bytes), std::move(bytes)); in TEST() 127 std::thread get_thread(std::move(get_int)); in TEST()
|
D | static_vector_test.cpp | 93 auto move = "tart"s; in TEST() local 94 StaticVector vector = {copy, std::move(move)}; in TEST() 110 auto move = "velvet"s; in TEST() local 112 StaticVector vector = ftl::init::list<std::string>(copy.c_str())(std::move(move))(list); in TEST() 115 EXPECT_TRUE(move.empty()); in TEST() 179 StaticVector<const std::string, 2> move(std::move(vector)); in TEST() local 181 EXPECT_EQ(move, (StaticVector{"snow"s, "cone"s})); in TEST() 185 move = std::move(other); in TEST() 187 EXPECT_EQ(move, (StaticVector{"tiramisu"s})); in TEST() 193 StaticVector<const std::string, 3> move(std::move(vector)); in TEST() local [all …]
|
/frameworks/native/libs/binder/tests/parcel_fuzzer/ |
D | main.cpp | 65 fillRandomParcel(p->parcel(), std::move(provider), options); in fillRandomParcel() 79 fillRandomParcel(&data, std::move(provider), &options); in doTransactFuzz() 98 fillRandomParcel(&p, std::move(provider), &options); in doReadFuzz() 132 fillRandomParcel(&p1, std::move(provider), &options); in doAppendFuzz() 164 std::move(provider)); in LLVMFuzzerTestOneInput() 168 std::move(provider)); in LLVMFuzzerTestOneInput() 175 doTransactFuzz<::android::Parcel>("binder_ndk", binder, std::move(provider)); in LLVMFuzzerTestOneInput() 179 std::move(provider)); in LLVMFuzzerTestOneInput() 183 std::move(provider)); in LLVMFuzzerTestOneInput() 187 std::move(provider)); in LLVMFuzzerTestOneInput() [all …]
|
/frameworks/av/media/liberror/include/error/ |
D | expected_utils.h | 63 return ::android::base::unexpected(std::move(_tmp.error())); \ 65 std::move(_tmp.value()); \ 74 return std::move(_tmp.error()); \ 76 std::move(_tmp.value()); \ 84 std::move(_tmp.value()); \ 92 return ::android::base::unexpected(std::move(_tmp)); \
|
/frameworks/native/cmds/installd/ |
D | run_dex2oat_test.cpp | 286 CallRunDex2Oat(std::move(args)); in TEST_F() 297 CallRunDex2Oat(std::move(args)); in TEST_F() 308 CallRunDex2Oat(std::move(args)); in TEST_F() 318 CallRunDex2Oat(std::move(args)); in TEST_F() 328 CallRunDex2Oat(std::move(args)); in TEST_F() 339 CallRunDex2Oat(std::move(args)); in TEST_F() 351 CallRunDex2Oat(std::move(args)); in TEST_F() 363 CallRunDex2Oat(std::move(args)); in TEST_F() 374 CallRunDex2Oat(std::move(args)); in TEST_F() 386 CallRunDex2Oat(std::move(args)); in TEST_F() [all …]
|
/frameworks/native/include/ftl/ |
D | optional.h | 37 Optional(std::optional<T> other) : std::optional<T>(std::move(other)) {} in Optional() 59 using R = details::transform_result_t<F, decltype(std::move(value()))>; in transform() 60 if (has_value()) return R(std::invoke(std::forward<F>(f), std::move(value()))); in transform() 66 using R = details::transform_result_t<F, decltype(std::move(value()))>; in transform() 67 if (has_value()) return R(std::invoke(std::forward<F>(f), std::move(value()))); in transform() 88 using R = details::and_then_result_t<F, decltype(std::move(value()))>; in and_then() 89 if (has_value()) return std::invoke(std::forward<F>(f), std::move(value())); in and_then() 95 using R = details::and_then_result_t<F, decltype(std::move(value()))>; in and_then() 96 if (has_value()) return std::invoke(std::forward<F>(f), std::move(value())); in and_then() 109 if (has_value()) return std::move(*this); [all …]
|
/frameworks/native/libs/binder/trusty/ |
D | RpcServerTrusty.cpp | 46 auto srv = sp<RpcServerTrusty>::make(std::move(ctx), std::move(portName), std::move(portAcl), in make() 63 : mRpcServer(makeRpcServer(std::move(ctx))), in RpcServerTrusty() 64 mPortName(std::move(portName)), in RpcServerTrusty() 65 mPortAcl(std::move(portAcl)) { in RpcServerTrusty() 122 channelContext->session = std::move(session); in handleConnectInternal() 123 channelContext->connection = std::move(result.connection); in handleConnectInternal() 137 android::RpcTransportFd transportFd(std::move(clientFd)); in handleConnectInternal() 142 RpcServer::establishConnection(sp<RpcServer>::fromExisting(rpcServer), std::move(transportFd), in handleConnectInternal()
|
/frameworks/base/libs/protoutil/src/ |
D | EncodedBuffer.cpp | 62 EncodedBuffer::Pointer::move(size_t amt) in move() function in android::util::EncodedBuffer::Pointer 165 mWp.move(); in writeRawByte() 234 mWp.move(chunk); in writeRaw() 247 reader->move(amt); in writeRaw() 266 reader->move(amt); in writeRaw() 287 mEp.move(); in readRawByte() 329 mEp.rewind()->move(pos); in editRawFixed32() 332 mEp.move(); in editRawFixed32() 334 mEp.rewind()->move(oldPos); in editRawFixed32() 342 cp.move(srcPos); in copy() [all …]
|
/frameworks/libs/binary_translation/tools/nogrod/ |
D | buffer_tests.cc | 35 Buffer b1(std::move(v)); in TEST() 44 TEST(buffer, move) { in TEST() argument 49 Buffer b = std::move(b_to_move); in TEST() 55 Buffer b1_to_move(std::move(v)); in TEST() 56 Buffer b1 = std::move(b1_to_move); in TEST()
|
/frameworks/compile/mclinker/unittests/ |
D | BinTreeTest.cpp | 120 pos.move<InputTree::Inclusive>(); in TEST_F() 123 pos.move<InputTree::Inclusive>(); in TEST_F() 147 pos.move<InputTree::Inclusive>(); in TEST_F() 149 pos.move<InputTree::Positional>(); in TEST_F() 151 pos.move<InputTree::Positional>(); in TEST_F() 153 pos.move<InputTree::Positional>(); in TEST_F() 190 pos.move<InputTree::Inclusive>(); in TEST_F() 193 pos.move<InputTree::Inclusive>(); in TEST_F() 219 pos.move<InputTree::Inclusive>(); in TEST_F() 221 pos.move<InputTree::Positional>(); in TEST_F() [all …]
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | channel_parcelable.cpp | 19 : data_fd_{std::move(data_fd)}, in ChannelParcelable() 20 pollin_event_fd_{std::move(pollin_event_fd)}, 21 pollhup_event_fd_{std::move(pollhup_event_fd)} {} 33 return ChannelManager::Get().CreateHandle(std::move(data_fd_), in TakeChannelHandle() 34 std::move(pollin_event_fd_), in TakeChannelHandle() 35 std::move(pollhup_event_fd_)); in TakeChannelHandle()
|
D | client_channel_factory.cpp | 43 : socket_{std::move(socket)} {} in ClientChannelFactory() 54 new ClientChannelFactory{std::move(socket)}}; in Create() 130 socket_ = std::move(connection_info.channel_fd); in Connect() 154 LocalHandle pollin_event_fd = std::move(response.channels[0].pollin_event_fd); in Connect() 156 std::move(response.channels[0].pollhup_event_fd); in Connect() 167 std::move(socket_), std::move(pollin_event_fd), in Connect() 168 std::move(pollhup_event_fd))); in Connect()
|
D | client_channel.cpp | 24 *handle = std::move(response.file_descriptors[index]); in GetLocalFileHandle() 37 std::move(channel_info.data_fd), in GetLocalChannelHandle() 38 std::move(channel_info.pollin_event_fd), in GetLocalChannelHandle() 39 std::move(channel_info.pollhup_event_fd)); in GetLocalChannelHandle() 49 request.file_descriptors.push_back(std::move(handle)); in PushFileHandle() 62 request.channels.push_back(std::move(channel_info)); in PushChannelHandle() 141 : channel_handle_{std::move(channel_handle)} { in ClientChannel() 148 new ClientChannel{std::move(channel_handle)}}; in Create() 232 status.SetValue(std::move(handle)); in SendWithFileHandle() 252 status.SetValue(std::move(handle)); in SendWithChannelHandle() [all …]
|
/frameworks/native/libs/binder/ |
D | RpcServer.cpp | 51 RpcServer::RpcServer(std::unique_ptr<RpcTransportCtx> ctx) : mCtx(std::move(ctx)) {} in RpcServer() 63 return sp<RpcServer>::make(std::move(ctx)); in make() 67 return setupExternalServer(std::move(bootstrapFd), &RpcServer::recvmsgSocketConnection); in setupUnixDomainSocketBootstrapServer() 161 mRootObjectFactory = std::move(makeObject); in setPerSessionRootObject() 167 mConnectionFilter = std::move(filter); in setConnectionFilter() 173 mServerSocketModifier = std::move(modifier); in setServerSocketModifier() 210 *out = std::move(clientSocket); in acceptSocketConnection() 233 unique_fd fd(std::move(std::get<unique_fd>(fds.back()))); in recvmsgSocketConnection() 236 *out = RpcTransportFd(std::move(fd)); in recvmsgSocketConnection() 283 sp<RpcServer>::fromExisting(this), std::move(clientSocket), addr, in join() [all …]
|
/frameworks/base/tools/aapt2/trace/ |
D | TraceBuffer.cpp | 58 TracePoint t = {type, getpid(), time, std::move(tag)}; in AddWithTime() 59 traces.emplace_back(std::move(t)); in AddWithTime() 63 AddWithTime(std::move(tag), type, GetTime()); in Add() 101 tracebuffer::Add(std::move(tag), tracebuffer::kBegin); in BeginTrace() 106 tracebuffer::Add(std::move(tag), tracebuffer::kEnd); in EndTrace() 119 Trace::Trace(std::string tag) : tag_(std::move(tag)) { in Trace() 134 return std::move(s).str(); in makeTag() 145 tracebuffer::Add(std::move(tag_), tracebuffer::kEnd); in ~Trace() 173 tracebuffer::Add(std::move(tag_), tracebuffer::kEnd); in ~FlushTrace()
|
/frameworks/av/media/libmedia/ |
D | OMXBuffer.cpp | 176 mBufferType = std::move(source.mBufferType); in operator =() 177 mRangeOffset = std::move(source.mRangeOffset); in operator =() 178 mRangeLength = std::move(source.mRangeLength); in operator =() 179 mMem = std::move(source.mMem); in operator =() 180 mGraphicBuffer = std::move(source.mGraphicBuffer); in operator =() 181 mNativeHandle = std::move(source.mNativeHandle); in operator =() 182 mHidlMemory = std::move(source.mHidlMemory); in operator =()
|
/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 82 auto guarded_assets = new Guarded<AssetManager2::ApkAssetsPtr>(std::move(assets)); in CreateGuardedApkAssets() 235 auto assets = MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoad() 238 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() 246 std::move(loader_assets), in NativeLoad() 250 auto assets = MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoad() 252 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoad() 266 return CreateGuardedApkAssets(std::move(apk_assets)); in NativeLoad() 296 MultiAssetsProvider::Create(std::move(loader_assets), in NativeLoadFromFd() 297 ZipAssetsProvider::Create(std::move(dup_fd), in NativeLoadFromFd() 300 apk_assets = ApkAssets::Load(std::move(assets), property_flags); in NativeLoadFromFd() [all …]
|
/frameworks/base/libs/hwui/ |
D | DisplayList.h | 40 : mImpl(std::move(impl)) {} in SkiaDisplayListWrapper() 43 SkiaDisplayListWrapper(SkiaDisplayListWrapper&& other) : mImpl(std::move(other.mImpl)) {} in SkiaDisplayListWrapper() 45 mImpl = std::move(other.mImpl); 54 mImpl->updateChildren(std::move(updateFn)); in updateChildren() 57 void visit(std::function<void(const RenderNode&)> func) const { mImpl->visit(std::move(func)); } in visit() 129 observer, info, functorsNeedLayer, std::move(childFn)); in prepareListAndChildren() 221 : mImpls(std::move(impl)) {} in MultiDisplayList() 223 explicit MultiDisplayList(CanvasOpBuffer&& opBuffer) : mImpls(std::move(opBuffer)) {} in MultiDisplayList() 226 MultiDisplayList(MultiDisplayList&& other) : mImpls(std::move(other.mImpls)) {} in MultiDisplayList() 228 mImpls = std::move(other.mImpls); [all …]
|
/frameworks/base/cmds/incidentd/tests/ |
D | FdBuffer_test.cpp | 118 reader->move(buffer.size()); in TEST_F() 168 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F() 169 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F() 201 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F() 202 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F() 227 buffer.readProcessedDataInStream(tf.fd, std::move(p2cPipe.writeFd()), in TEST_F() 228 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F() 255 buffer.readProcessedDataInStream(fd, std::move(p2cPipe.writeFd()), in TEST_F() 256 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F() 262 reader->move(ninetySixMB); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TestableScheduler.h | 55 registerDisplay(displayId, std::move(selectorPtr), std::move(controller), in TestableScheduler() 56 std::move(tracker), displayId); in TestableScheduler() 76 mRenderEventThread = std::move(eventThreadPtr); in setEventThread() 79 mLastCompositeEventThread = std::move(eventThreadPtr); in setEventThread() 90 registerDisplay(displayId, std::move(selectorPtr), 99 Scheduler::registerDisplayInternal(displayId, std::move(selectorPtr), in registerDisplay() 101 new VsyncSchedule(displayId, std::move(tracker), in registerDisplay() 104 std::move(controller), in registerDisplay() 181 mPolicy.contentRequirements = std::move(layers); in setContentRequirements()
|
/frameworks/av/services/audiopolicy/permission/ |
D | ValidatedAttributionSourceState.cpp | 34 return createFromTrustedUidNoPackage(std::move(attr), provider); in createFromBinderContext() 42 return ValidatedAttributionSourceState{std::move(attr)}; in createFromTrustedUidNoPackage() 56 attr.packageName = std::move(packageNames[0]); in createFromTrustedUidNoPackage() 57 return ValidatedAttributionSourceState{std::move(attr)}; in createFromTrustedUidNoPackage()
|
/frameworks/base/libs/hwui/jni/ |
D | BitmapRegionDecoder.cpp | 45 skia::BitmapRegionDecoder::Make(std::move(data)); in Make() 64 gainmapBRD = skia::BitmapRegionDecoder::Make(std::move(data)); in Make() 68 new BitmapRegionDecoderWrapper(std::move(mainImageBRD), std::move(gainmapBRD), in Make() 69 gainmapInfo, std::move(gainmapStream))); in Make() 128 gainmap->bitmap = std::move(nativeBitmap); in decodeGainmapRegion() 129 *outGainmap = std::move(gainmap); in decodeGainmapRegion() 154 : mMainImageBRD(std::move(mainImageBRD)) in BitmapRegionDecoderWrapper() 155 , mGainmapBRD(std::move(gainmapBRD)) in BitmapRegionDecoderWrapper() 157 , mGainmapStream(std::move(stream)) {} in BitmapRegionDecoderWrapper() 167 auto brd = android::BitmapRegionDecoderWrapper::Make(std::move(data)); in createBitmapRegionDecoder() [all …]
|