Home
last modified time | relevance | path

Searched refs:unique_ptr (Results 1 – 25 of 1203) sorted by relevance

12345678910>>...49

/system/chre/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h196 template <class T> using unique_ptr = std::unique_ptr<T>;
203 template <class T> class unique_ptr : public std::unique_ptr<T> {
205 unique_ptr() {}
206 explicit unique_ptr(T* p) : std::unique_ptr<T>(p) {}
207 unique_ptr(std::unique_ptr<T>&& u) { *this = std::move(u); }
208 unique_ptr(unique_ptr&& u) { *this = std::move(u); }
209 unique_ptr& operator=(std::unique_ptr<T>&& u) {
210 std::unique_ptr<T>::reset(u.release());
213 unique_ptr& operator=(unique_ptr&& u) {
214 std::unique_ptr<T>::reset(u.release());
[all …]
/system/update_engine/update_manager/
Dreal_updater_provider.h102 std::unique_ptr<Variable<base::Time>> var_last_checked_time_;
103 std::unique_ptr<Variable<base::Time>> var_update_completed_time_;
104 std::unique_ptr<Variable<double>> var_progress_;
105 std::unique_ptr<Variable<Stage>> var_stage_;
106 std::unique_ptr<Variable<std::string>> var_new_version_;
107 std::unique_ptr<Variable<uint64_t>> var_payload_size_;
108 std::unique_ptr<Variable<std::string>> var_curr_channel_;
109 std::unique_ptr<Variable<std::string>> var_new_channel_;
110 std::unique_ptr<Variable<bool>> var_p2p_enabled_;
111 std::unique_ptr<Variable<bool>> var_cellular_enabled_;
[all …]
Dstate_factory.cc42 using std::unique_ptr;
49 unique_ptr<RealConfigProvider> config_provider( in DefaultStateFactory()
54 unique_ptr<RealDevicePolicyProvider> device_policy_provider( in DefaultStateFactory()
59 unique_ptr<RealDevicePolicyProvider> device_policy_provider( in DefaultStateFactory()
62 unique_ptr<RealShillProvider> shill_provider( in DefaultStateFactory()
64 unique_ptr<RealRandomProvider> random_provider(new RealRandomProvider()); in DefaultStateFactory()
65 unique_ptr<RealSystemProvider> system_provider( in DefaultStateFactory()
68 unique_ptr<RealTimeProvider> time_provider(new RealTimeProvider()); in DefaultStateFactory()
69 unique_ptr<RealUpdaterProvider> updater_provider(new RealUpdaterProvider()); in DefaultStateFactory()
Dreal_state.h61 std::unique_ptr<ConfigProvider> config_provider_;
62 std::unique_ptr<DevicePolicyProvider> device_policy_provider_;
63 std::unique_ptr<RandomProvider> random_provider_;
64 std::unique_ptr<ShillProvider> shill_provider_;
65 std::unique_ptr<SystemProvider> system_provider_;
66 std::unique_ptr<TimeProvider> time_provider_;
67 std::unique_ptr<UpdaterProvider> updater_provider_;
Dreal_system_provider.h73 std::unique_ptr<Variable<bool>> var_is_normal_boot_mode_;
74 std::unique_ptr<Variable<bool>> var_is_official_build_;
75 std::unique_ptr<Variable<bool>> var_is_oobe_complete_;
76 std::unique_ptr<Variable<unsigned int>> var_num_slots_;
77 std::unique_ptr<Variable<std::string>> var_kiosk_required_platform_version_;
78 std::unique_ptr<Variable<base::Version>> var_chromeos_version_;
/system/tools/aidl/
Dast_cpp_unittest.cpp26 using std::unique_ptr;
125 unique_ptr<MethodDecl> norm{new MethodDecl( in TEST_F()
128 unique_ptr<MethodDecl> sub{ in TEST_F()
132 unique_ptr<MethodDecl> sub2{ in TEST_F()
136 vector<unique_ptr<Declaration>> test_methods; in TEST_F()
140 vector<unique_ptr<Declaration>> test_sub_methods; in TEST_F()
143 unique_ptr<Declaration> test{new ClassDecl{"TestClass", "", {}, std::move(test_methods), {}}}; in TEST_F()
145 unique_ptr<Declaration> test_sub{ in TEST_F()
148 vector<unique_ptr<Declaration>> classes; in TEST_F()
152 unique_ptr<CppNamespace> test_ns{new CppNamespace {"test", in TEST_F()
[all …]
Daidl_language_y.yy83 std::vector<std::unique_ptr<AidlEnumerator>>* enumerators;
84 std::vector<std::unique_ptr<AidlConstantValue>>* constant_value_list;
85 std::vector<std::unique_ptr<AidlArgument>>* arg_list;
89 std::vector<std::unique_ptr<AidlMember>>* members;
91 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args;
93 std::vector<std::unique_ptr<AidlImport>>* imports;
96 std::vector<std::unique_ptr<AidlDefinedType>>* declarations;
225 : { $$ = new std::vector<std::unique_ptr<AidlImport>>(); }
259 { $$ = new std::vector<std::unique_ptr<AidlDefinedType>>();
337 $$ = new std::vector<std::unique_ptr<AidlMember>>();
[all …]
Dgenerate_cpp.h36 std::unique_ptr<Document> BuildClientSource(const AidlTypenames& typenames,
39 std::unique_ptr<Document> BuildServerSource(const AidlTypenames& typenames,
42 std::unique_ptr<Document> BuildInterfaceSource(const AidlTypenames& typenames,
45 std::unique_ptr<Document> BuildClientHeader(const AidlTypenames& typenames,
48 std::unique_ptr<Document> BuildServerHeader(const AidlTypenames& typenames,
51 std::unique_ptr<Document> BuildInterfaceHeader(const AidlTypenames& typenames,
54 std::unique_ptr<Document> BuildEnumHeader(const AidlTypenames& typenames,
Dgenerate_cpp.cpp43 using std::unique_ptr;
78 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
83 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
86 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
91 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
94 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
98 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
105 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in BuildArgList()
163 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl()
174 return unique_ptr<Declaration>{new MethodDecl{ in BuildMethodDecl()
[all …]
Dline_reader.cpp25 using std::unique_ptr;
85 unique_ptr<LineReader> LineReader::ReadFromFile(const string& file_path) { in ReadFromFile()
86 unique_ptr<FileLineReader> file_reader(new FileLineReader()); in ReadFromFile()
87 unique_ptr<LineReader> ret; in ReadFromFile()
94 unique_ptr<LineReader> LineReader::ReadFromMemory(const string& contents) { in ReadFromMemory()
95 return unique_ptr<LineReader>(new MemoryLineReader(contents)); in ReadFromMemory()
Dast_cpp.h70 std::vector<std::unique_ptr<Declaration>> public_members,
71 std::vector<std::unique_ptr<Declaration>> private_members,
77 void AddPublic(std::unique_ptr<Declaration> member);
78 void AddPrivate(std::unique_ptr<Declaration> member);
85 std::vector<std::unique_ptr<Declaration>> public_members_;
86 std::vector<std::unique_ptr<Declaration>> private_members_;
121 explicit ArgList(std::vector<std::unique_ptr<AstNode>> arg_list);
128 std::vector<std::unique_ptr<AstNode>> arguments_;
204 void AddStatement(std::unique_ptr<AstNode> statement);
212 std::vector<std::unique_ptr<AstNode>> statements_;
[all …]
/system/update_engine/cros/
Dreal_system_state.h119 std::unique_ptr<org::chromium::KioskAppServiceInterfaceProxy>
123 std::unique_ptr<PowerManagerInterface> power_manager_;
126 std::unique_ptr<DlcServiceInterface> dlcservice_;
129 std::unique_ptr<BootControlInterface> boot_control_;
139 std::unique_ptr<ConnectionManagerInterface> connection_manager_;
142 std::unique_ptr<HardwareInterface> hardware_;
148 std::unique_ptr<PrefsInterface> prefs_;
151 std::unique_ptr<PrefsInterface> powerwash_safe_prefs_;
159 std::unique_ptr<CertificateChecker> certificate_checker_;
162 std::unique_ptr<UpdateAttempter> update_attempter_;
[all …]
/system/connectivity/wificond/net/
Dmlme_event.cpp27 using std::unique_ptr;
51 unique_ptr<MlmeAssociateEvent> MlmeAssociateEvent::InitFromPacket( in InitFromPacket()
56 unique_ptr<MlmeAssociateEvent> associate_event(new MlmeAssociateEvent()); in InitFromPacket()
73 unique_ptr<MlmeConnectEvent> MlmeConnectEvent::InitFromPacket( in InitFromPacket()
78 unique_ptr<MlmeConnectEvent> connect_event(new MlmeConnectEvent()); in InitFromPacket()
95 unique_ptr<MlmeRoamEvent> MlmeRoamEvent::InitFromPacket( in InitFromPacket()
100 unique_ptr<MlmeRoamEvent> roam_event(new MlmeRoamEvent()); in InitFromPacket()
110 unique_ptr<MlmeDisconnectEvent> MlmeDisconnectEvent::InitFromPacket( in InitFromPacket()
115 unique_ptr<MlmeDisconnectEvent> disconnect_event(new MlmeDisconnectEvent()); in InitFromPacket()
124 unique_ptr<MlmeDisassociateEvent> MlmeDisassociateEvent::InitFromPacket( in InitFromPacket()
[all …]
Dmlme_event_handler.h33 virtual void OnConnect(std::unique_ptr<MlmeConnectEvent> event) = 0;
34 virtual void OnRoam(const std::unique_ptr<MlmeRoamEvent> event) = 0;
35 virtual void OnAssociate(std::unique_ptr<MlmeAssociateEvent> event) = 0;
36 virtual void OnDisconnect(std::unique_ptr<MlmeDisconnectEvent> event) = 0;
37 virtual void OnDisassociate(std::unique_ptr<MlmeDisassociateEvent> event) = 0;
Dnetlink_manager.h149 std::function<void(std::unique_ptr<const NL80211Packet>)> handler);
155 std::vector<std::unique_ptr<const NL80211Packet>>* response);
163 std::unique_ptr<const NL80211Packet>* response);
173 std::unique_ptr<const NL80211Packet>* response);
281 void BroadcastHandler(std::unique_ptr<const NL80211Packet> packet);
282 void OnRegChangeEvent(std::unique_ptr<const NL80211Packet> packet);
283 void OnMlmeEvent(std::unique_ptr<const NL80211Packet> packet);
284 void OnScanResultsReady(std::unique_ptr<const NL80211Packet> packet);
285 void OnSchedScanResultsReady(std::unique_ptr<const NL80211Packet> packet);
286 void OnChannelSwitchEvent(std::unique_ptr<const NL80211Packet> packet);
[all …]
/system/bt/gd/packet/
Dpacket_builder_unittest.cc63 virtual const std::unique_ptr<std::vector<uint8_t>> FinalPacket() { in FinalPacket()
64 std::unique_ptr<std::vector<uint8_t>> packet = std::make_unique<std::vector<uint8_t>>(); in FinalPacket()
113 virtual const std::unique_ptr<std::vector<uint8_t>> FinalPacket() { in FinalPacket()
114 std::unique_ptr<std::vector<uint8_t>> packet = std::make_unique<std::vector<uint8_t>>(); in FinalPacket()
143 virtual const std::unique_ptr<std::vector<uint8_t>> FinalPacket() { in FinalPacket()
144 std::unique_ptr<std::vector<uint8_t>> packet = std::make_unique<std::vector<uint8_t>>(); in FinalPacket()
202 static std::unique_ptr<NestedBuilder> Create(uint8_t level) { in Create()
203 return std::unique_ptr<NestedBuilder>(new NestedBuilder(level)); in Create()
206 …static std::unique_ptr<NestedBuilder> CreateNested(std::unique_ptr<BasePacketBuilder> payload, uin… in CreateNested()
207 return std::unique_ptr<NestedBuilder>(new NestedBuilder(std::move(payload), level)); in CreateNested()
[all …]
/system/bt/gd/l2cap/fuzz/
Dshim_l2cap.h55 void OnConnectionComplete(std::unique_ptr<l2cap::classic::DynamicChannel> channel) {} in OnConnectionComplete()
71 handler_ = std::unique_ptr<os::Handler>(new os::Handler(&thread_)); in ShimL2capFuzz()
72 …dynamic_channel_impl = std::unique_ptr<l2cap::classic::internal::DynamicChannelServiceManagerImpl>( in ShimL2capFuzz()
74 fixed_channel_impl = std::unique_ptr<l2cap::classic::internal::FixedChannelServiceManagerImpl>( in ShimL2capFuzz()
76 …parameter_provider = std::unique_ptr<l2cap::internal::ParameterProvider>(new l2cap::internal::Para… in ShimL2capFuzz()
77 …link_manager = std::unique_ptr<l2cap::classic::internal::LinkManager>(new l2cap::classic::internal… in ShimL2capFuzz()
94 std::unique_ptr<os::Handler> handler_;
95 std::unique_ptr<l2cap::classic::internal::FixedChannelServiceManagerImpl> fixed_channel_impl;
96 std::unique_ptr<l2cap::classic::internal::DynamicChannelServiceManagerImpl> dynamic_channel_impl;
97 std::unique_ptr<l2cap::classic::internal::LinkManager> link_manager;
[all …]
/system/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.h44 std::unique_ptr<ISnapshotManager> snapshot;
68 std::unique_ptr<android::fiemap::IImageManager> CheckCreateFakeImageManager();
74 std::unique_ptr<AutoMemBasedDir> fake_root_;
75 std::unique_ptr<android::dm::LoopControl> loop_control_;
77 std::unique_ptr<AutoDevice> auto_delete_data_mount_point_;
78 std::unique_ptr<AutoDevice> mapped_super_;
80 std::unique_ptr<AutoDevice> mapped_data_;
82 std::unique_ptr<AutoDevice> mounted_data_;
84 static std::unique_ptr<AutoDevice> CheckMapImage(const std::string& fake_persist_path,
88 static std::unique_ptr<AutoDevice> CheckMountFormatData(const std::string& blk_device,
[all …]
/system/bt/osi/test/
Dconfig_test.cc91 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
101 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
117 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
138 std::unique_ptr<config_t> config = config_new_empty(); in TEST_F()
143 std::unique_ptr<config_t> config = config_new("/meow"); in TEST_F()
148 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
153 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
154 std::unique_ptr<config_t> clone = config_new_clone(*config); in TEST_F()
168 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
173 std::unique_ptr<config_t> config = config_new(CONFIG_FILE); in TEST_F()
[all …]
/system/update_engine/aosp/
Ddaemon_state_android.h57 std::unique_ptr<BootControlInterface> boot_control_;
60 std::unique_ptr<HardwareInterface> hardware_;
63 std::unique_ptr<PrefsInterface> prefs_;
66 std::unique_ptr<UpdateAttempterAndroid> update_attempter_;
71 std::unique_ptr<CertificateChecker> certificate_checker_;
/system/bt/gd/hci/
Dhci_metrics_logging.h25 …std::unique_ptr<CommandView>& command_view, EventView packet, storage::StorageModule* storage_modu…
26 void log_link_layer_connection_command_status(std::unique_ptr<CommandView>& command_view, ErrorCode…
27 void log_link_layer_connection_command_complete(EventView event, std::unique_ptr<CommandView>& comm…
31 void log_classic_pairing_command_status(std::unique_ptr<CommandView>& command_view, ErrorCode statu…
32 void log_classic_pairing_command_complete(EventView event, std::unique_ptr<CommandView>& command_vi…
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp33 using std::unique_ptr;
181 std::unique_ptr<opfactory_t> rsa_encrypt_op_factory_;
182 std::unique_ptr<opfactory_t> rsa_decrypt_op_factory_;
183 std::unique_ptr<opfactory_t> rsa_sign_op_factory_;
184 std::unique_ptr<opfactory_t> rsa_verify_op_factory_;
185 std::unique_ptr<opfactory_t> ec_encrypt_op_factory_;
186 std::unique_ptr<opfactory_t> ec_decrypt_op_factory_;
187 std::unique_ptr<opfactory_t> ec_sign_op_factory_;
188 std::unique_ptr<opfactory_t> ec_verify_op_factory_;
189 std::unique_ptr<opfactory_t> ec_derive_op_factory_;
[all …]
/system/bt/packet/avrcp/
Dregister_notification_packet.cc73 std::unique_ptr<RegisterNotificationResponseBuilder>
76 std::unique_ptr<RegisterNotificationResponseBuilder> builder( in MakePlaybackStatusBuilder()
84 std::unique_ptr<RegisterNotificationResponseBuilder>
87 std::unique_ptr<RegisterNotificationResponseBuilder> builder( in MakeTrackChangedBuilder()
94 std::unique_ptr<RegisterNotificationResponseBuilder>
97 std::unique_ptr<RegisterNotificationResponseBuilder> builder( in MakePlaybackPositionBuilder()
105 std::unique_ptr<RegisterNotificationResponseBuilder>
107 std::unique_ptr<RegisterNotificationResponseBuilder> builder( in MakeNowPlayingBuilder()
113 std::unique_ptr<RegisterNotificationResponseBuilder>
115 std::unique_ptr<RegisterNotificationResponseBuilder> builder( in MakeAvailablePlayersBuilder()
[all …]
Dregister_notification_packet.h62 static std::unique_ptr<RegisterNotificationResponseBuilder>
65 static std::unique_ptr<RegisterNotificationResponseBuilder>
68 static std::unique_ptr<RegisterNotificationResponseBuilder>
71 static std::unique_ptr<RegisterNotificationResponseBuilder>
74 static std::unique_ptr<RegisterNotificationResponseBuilder>
77 static std::unique_ptr<RegisterNotificationResponseBuilder>
81 static std::unique_ptr<RegisterNotificationResponseBuilder>
137 static std::unique_ptr<RegisterNotificationRequestBuilder> MakeBuilder(
/system/extras/simpleperf/
Dcallchain.h37 std::vector<std::unique_ptr<CallChainNode>> children;
47 std::vector<std::unique_ptr<NodeT>> children;
56 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, 0, period, 0); in AddCallChain()
82 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, callchain_pos, period, 0); in AddCallChain()
89 std::queue<std::vector<std::unique_ptr<NodeT>>*> queue; in SortByPeriod()
92 std::vector<std::unique_ptr<NodeT>>* v = queue.front(); in SortByPeriod()
104 NodeT* FindMatchingNode(const std::vector<std::unique_ptr<NodeT>>& nodes, const EntryT* sample, in FindMatchingNode()
126 std::unique_ptr<NodeT> child = in SplitNode()
136 std::unique_ptr<NodeT> AllocateNode(const std::vector<EntryT*>& chain, size_t chain_start, in AllocateNode()
138 std::unique_ptr<NodeT> node(new NodeT); in AllocateNode()
[all …]

12345678910>>...49