Home
last modified time | relevance | path

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

12345678910>>...46

/system/update_engine/update_manager/
Dreal_updater_provider.h103 std::unique_ptr<Variable<base::Time>> var_last_checked_time_;
104 std::unique_ptr<Variable<base::Time>> var_update_completed_time_;
105 std::unique_ptr<Variable<double>> var_progress_;
106 std::unique_ptr<Variable<Stage>> var_stage_;
107 std::unique_ptr<Variable<std::string>> var_new_version_;
108 std::unique_ptr<Variable<uint64_t>> var_payload_size_;
109 std::unique_ptr<Variable<std::string>> var_curr_channel_;
110 std::unique_ptr<Variable<std::string>> var_new_channel_;
111 std::unique_ptr<Variable<bool>> var_p2p_enabled_;
112 std::unique_ptr<Variable<bool>> var_cellular_enabled_;
[all …]
Dstate_factory.cc43 using std::unique_ptr;
52 unique_ptr<RealConfigProvider> config_provider( in DefaultStateFactory()
57 unique_ptr<RealDevicePolicyProvider> device_policy_provider( in DefaultStateFactory()
62 unique_ptr<RealDevicePolicyProvider> device_policy_provider( in DefaultStateFactory()
66 unique_ptr<RealShillProvider> shill_provider( in DefaultStateFactory()
69 unique_ptr<FakeShillProvider> shill_provider(new FakeShillProvider()); in DefaultStateFactory()
71 unique_ptr<RealRandomProvider> random_provider(new RealRandomProvider()); in DefaultStateFactory()
72 unique_ptr<RealSystemProvider> system_provider(new RealSystemProvider( in DefaultStateFactory()
75 unique_ptr<RealTimeProvider> time_provider(new RealTimeProvider(clock)); in DefaultStateFactory()
76 unique_ptr<RealUpdaterProvider> updater_provider( 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_;
/system/tools/aidl/
Dast_cpp_unittest.cpp26 using std::unique_ptr;
98 unique_ptr<MethodDecl> norm{new MethodDecl( in TEST_F()
101 unique_ptr<MethodDecl> sub{ in TEST_F()
105 unique_ptr<MethodDecl> sub2{ in TEST_F()
109 vector<unique_ptr<Declaration>> test_methods; in TEST_F()
113 vector<unique_ptr<Declaration>> test_sub_methods; in TEST_F()
116 unique_ptr<Declaration> test{new ClassDecl { "TestClass", "", in TEST_F()
119 unique_ptr<Declaration> test_sub{new ClassDecl { "TestSubClass", in TEST_F()
122 vector<unique_ptr<Declaration>> classes; in TEST_F()
126 unique_ptr<CppNamespace> test_ns{new CppNamespace {"test", in TEST_F()
[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,
55 std::unique_ptr<Document> BuildParcelHeader(const AidlTypenames& typenames,
58 std::unique_ptr<Document> BuildParcelSource(const AidlTypenames& typenames,
62 std::unique_ptr<Document> BuildEnumHeader(const AidlTypenames& typenames,
Daidl_language_y.yy83 std::vector<std::unique_ptr<AidlEnumerator>>* enumerators;
85 std::vector<std::unique_ptr<AidlConstantValue>>* constant_value_list;
86 std::vector<std::unique_ptr<AidlArgument>>* arg_list;
88 std::vector<std::unique_ptr<AidlVariableDeclaration>>* variable_list;
91 std::vector<std::unique_ptr<AidlMember>>* interface_members;
95 std::vector<std::unique_ptr<AidlTypeSpecifier>>* type_args;
97 std::vector<std::unique_ptr<AidlImport>>* imports;
99 std::vector<std::unique_ptr<AidlDefinedType>>* declarations;
214 : { $$ = new std::vector<std::unique_ptr<AidlImport>>(); }
247 { $$ = new std::vector<std::unique_ptr<AidlDefinedType>>();
[all …]
Dgenerate_cpp.cpp40 using std::unique_ptr;
73 unique_ptr<AstNode> BreakOnStatusNotOk() { in BreakOnStatusNotOk()
78 return unique_ptr<AstNode>(ret); in BreakOnStatusNotOk()
81 unique_ptr<AstNode> GotoErrorOnBadStatus() { in GotoErrorOnBadStatus()
86 return unique_ptr<AstNode>(ret); in GotoErrorOnBadStatus()
89 unique_ptr<AstNode> ReturnOnStatusNotOk() { in ReturnOnStatusNotOk()
93 return unique_ptr<AstNode>(ret); in ReturnOnStatusNotOk()
100 for (const unique_ptr<AidlArgument>& a : method.GetArguments()) { in BuildArgList()
158 unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, const AidlTypenames& typenames, in BuildMethodDecl()
168 return unique_ptr<Declaration>{ in BuildMethodDecl()
[all …]
Dast_cpp.h70 std::vector<std::unique_ptr<Declaration>> public_members,
71 std::vector<std::unique_ptr<Declaration>> private_members);
76 void AddPublic(std::unique_ptr<Declaration> member);
77 void AddPrivate(std::unique_ptr<Declaration> member);
82 std::vector<std::unique_ptr<Declaration>> public_members_;
83 std::vector<std::unique_ptr<Declaration>> private_members_;
114 explicit ArgList(std::vector<std::unique_ptr<AstNode>> arg_list);
121 std::vector<std::unique_ptr<AstNode>> arguments_;
199 void AddStatement(std::unique_ptr<AstNode> statement);
207 std::vector<std::unique_ptr<AstNode>> statements_;
[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()
/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/update_engine/
Dreal_system_state.h137 std::unique_ptr<org::chromium::KioskAppServiceInterfaceProxy>
142 std::unique_ptr<PowerManagerInterface> power_manager_;
145 std::unique_ptr<DlcServiceInterface> dlcservice_;
148 std::unique_ptr<BootControlInterface> boot_control_;
158 std::unique_ptr<ConnectionManagerInterface> connection_manager_;
161 std::unique_ptr<HardwareInterface> hardware_;
167 std::unique_ptr<PrefsInterface> prefs_;
170 std::unique_ptr<PrefsInterface> powerwash_safe_prefs_;
178 std::unique_ptr<CertificateChecker> certificate_checker_;
181 std::unique_ptr<UpdateAttempter> update_attempter_;
[all …]
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/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/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/core/fs_mgr/libsnapshot/
Dsnapshot_fuzz_utils.h44 std::unique_ptr<ISnapshotManager> snapshot;
72 std::unique_ptr<AutoMemBasedDir> fake_root_;
73 std::unique_ptr<android::dm::LoopControl> loop_control_;
75 std::unique_ptr<AutoDevice> auto_delete_data_mount_point_;
76 std::unique_ptr<AutoDevice> mapped_super_;
78 std::unique_ptr<AutoDevice> mapped_data_;
80 std::unique_ptr<AutoDevice> mounted_data_;
82 static std::unique_ptr<android::fiemap::IImageManager> CheckCreateFakeImageManager(
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/core/libunwindstack/
DDexFile.cpp51 std::unique_ptr<DexFile> DexFile::Create(uint64_t dex_file_offset_in_memory, Memory* memory, in Create()
62 std::unique_ptr<art_api::dex::DexFile> art_dex_file = DexFile::OpenFromMemory( in Create()
65 return std::unique_ptr<DexFile>(new DexFile(art_dex_file)); in Create()
70 std::unique_ptr<DexFile> dex_file = in Create()
90 std::unique_ptr<DexFileFromFile> DexFileFromFile::Create(uint64_t dex_file_offset_in_file, in Create()
102 std::unique_ptr<art_api::dex::DexFile> art_dex_file = in Create()
108 return std::unique_ptr<DexFileFromFile>(new DexFileFromFile(art_dex_file)); in Create()
111 std::unique_ptr<DexFileFromMemory> DexFileFromMemory::Create(uint64_t dex_file_offset_in_memory, in Create()
123 std::unique_ptr<art_api::dex::DexFile> art_dex_file = in Create()
130 return std::unique_ptr<DexFileFromMemory>( in Create()
DDexFile.h38 static std::unique_ptr<DexFile> Create(uint64_t dex_file_offset_in_memory, Memory* memory,
42 DexFile(std::unique_ptr<art_api::dex::DexFile>& art_dex_file) in DexFile()
48 static std::unique_ptr<DexFileFromFile> Create(uint64_t dex_file_offset_in_file,
52 DexFileFromFile(std::unique_ptr<art_api::dex::DexFile>& art_dex_file) : DexFile(art_dex_file) {} in DexFileFromFile()
57 static std::unique_ptr<DexFileFromMemory> Create(uint64_t dex_file_offset_in_memory,
62 DexFileFromMemory(std::unique_ptr<art_api::dex::DexFile>& art_dex_file, in DexFileFromMemory()
/system/extras/simpleperf/
Dcallchain.h35 std::vector<std::unique_ptr<CallChainNode>> children;
45 std::vector<std::unique_ptr<NodeT>> children;
55 std::unique_ptr<NodeT> new_node = AllocateNode(callchain, 0, period, 0); in AddCallChain()
83 std::unique_ptr<NodeT> new_node = in AddCallChain()
91 std::queue<std::vector<std::unique_ptr<NodeT>>*> queue; in SortByPeriod()
94 std::vector<std::unique_ptr<NodeT>>* v = queue.front(); in SortByPeriod()
107 const std::vector<std::unique_ptr<NodeT>>& nodes, const EntryT* sample, in FindMatchingNode()
131 std::unique_ptr<NodeT> child = AllocateNode( in SplitNode()
141 std::unique_ptr<NodeT> AllocateNode(const std::vector<EntryT*>& chain, in AllocateNode()
144 std::unique_ptr<NodeT> node(new NodeT); in AllocateNode()
[all …]
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp34 using std::unique_ptr;
185 std::unique_ptr<opfactory_t> rsa_encrypt_op_factory_;
186 std::unique_ptr<opfactory_t> rsa_decrypt_op_factory_;
187 std::unique_ptr<opfactory_t> rsa_sign_op_factory_;
188 std::unique_ptr<opfactory_t> rsa_verify_op_factory_;
189 std::unique_ptr<opfactory_t> ec_encrypt_op_factory_;
190 std::unique_ptr<opfactory_t> ec_decrypt_op_factory_;
191 std::unique_ptr<opfactory_t> ec_sign_op_factory_;
192 std::unique_ptr<opfactory_t> ec_verify_op_factory_;
193 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/bt/gd/security/test/
Dfake_hci_layer.h36 PacketView<kLittleEndian> GetPacketView(std::unique_ptr<packet::BasePacketBuilder> packet) { in GetPacketView()
46 CommandQueueEntry(std::unique_ptr<CommandPacketBuilder> command_packet, in CommandQueueEntry()
50 CommandQueueEntry(std::unique_ptr<CommandPacketBuilder> command_packet, in CommandQueueEntry()
54 std::unique_ptr<CommandPacketBuilder> command;
64 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand()
70 void EnqueueCommand(std::unique_ptr<CommandPacketBuilder> command, in EnqueueCommand()
76 std::unique_ptr<CommandQueueEntry> GetLastCommand() { in GetLastCommand()
92 void IncomingEvent(std::unique_ptr<EventPacketBuilder> event_builder) { in IncomingEvent()
107 std::queue<std::unique_ptr<CommandQueueEntry>> command_queue_;
/system/connectivity/wifilogd/
Dmain_loop.h35 MainLoop(const std::string& socket_name, std::unique_ptr<Os> os,
36 std::unique_ptr<CommandProcessor> command_processor);
44 std::unique_ptr<Os> os_;
45 std::unique_ptr<CommandProcessor> command_processor_;

12345678910>>...46