Home
last modified time | relevance | path

Searched refs:Get (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/system/update_engine/cros/
Dcommon_service.cc81 SystemState::Get()->update_attempter()->SetUpdateAttemptFlags(flags); in SetUpdateAttemptFlags()
100 *out_result = SystemState::Get()->update_attempter()->CheckForUpdate( in AttemptUpdate()
108 if (!SystemState::Get()->update_attempter()->CheckForInstall(dlc_ids, in AttemptInstall()
120 if (!SystemState::Get()->update_attempter()->Rollback(in_powerwash)) { in AttemptRollback()
130 bool can_rollback = SystemState::Get()->update_attempter()->CanRollback(); in CanRollback()
137 if (!SystemState::Get()->update_attempter()->ResetStatus()) { in ResetStatus()
148 if (!SystemState::Get()->update_attempter()->SetDlcActiveValue(is_active, in SetDlcActiveValue()
158 if (!SystemState::Get()->update_attempter()->GetStatus(out_status)) { in GetStatus()
166 if (!SystemState::Get()->update_attempter()->RebootIfNeeded()) { in RebootIfNeeded()
178 SystemState::Get()->device_policy(); in SetChannel()
[all …]
Dupdate_attempter.cc151 prefs_ = SystemState::Get()->prefs(); in Init()
152 omaha_request_params_ = SystemState::Get()->request_params(); in Init()
172 SystemState::Get()->update_manager(); in ScheduleUpdates()
189 SystemState::Get()->boot_control()); in StartUpdater()
213 SystemState::Get()->metrics_reporter()->ReportCertificateCheckMetrics( in CertificateChecked()
219 Time now = SystemState::Get()->clock()->GetWallclockTime(); in CheckAndReportDailyMetrics()
220 if (SystemState::Get()->prefs()->Exists(kPrefsDailyMetricsLastReportedAt) && in CheckAndReportDailyMetrics()
221 SystemState::Get()->prefs()->GetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics()
245 SystemState::Get()->prefs()->SetInt64(kPrefsDailyMetricsLastReportedAt, in CheckAndReportDailyMetrics()
262 Time now = SystemState::Get()->clock()->GetWallclockTime(); in ReportOSAge()
[all …]
Domaha_response_handler_action.cc62 string current_url = SystemState::Get()->payload_state()->GetCurrentUrl(); in PerformAction()
78 OmahaRequestParams* const params = SystemState::Get()->request_params(); in PerformAction()
80 SystemState::Get()->payload_state(); in PerformAction()
117 SystemState::Get()->prefs(), update_check_response_hash); in PerformAction()
123 !DeltaPerformer::ResetUpdateProgress(SystemState::Get()->prefs(), in PerformAction()
127 !SystemState::Get()->prefs()->SetString( in PerformAction()
134 SystemState::Get()->boot_control()->GetCurrentSlot(); in PerformAction()
138 SystemState::Get()->boot_control()->GetCurrentSlot(); in PerformAction()
148 SystemState::Get()->prefs()->SetString(current_channel_key, in PerformAction()
161 SystemState::Get()->hardware()->GetMinKernelKeyVersion()); in PerformAction()
[all …]
Domaha_response_handler_action_unittest.cc85 FakeSystemState::Get()->set_prefs(nullptr); in SetUp()
87 FakeSystemState::Get()->fake_boot_control(); in SetUp()
142 EXPECT_CALL(*(FakeSystemState::Get()->mock_prefs()), in DoTest()
147 FakeSystemState::Get()->request_params()->is_install() in DoTest()
148 ? FakeSystemState::Get()->fake_boot_control()->GetCurrentSlot() in DoTest()
149 : 1 - FakeSystemState::Get()->fake_boot_control()->GetCurrentSlot(); in DoTest()
151 EXPECT_CALL(*(FakeSystemState::Get()->mock_prefs()), in DoTest()
157 EXPECT_CALL(*(FakeSystemState::Get()->mock_payload_state()), GetCurrentUrl()) in DoTest()
231 FakeSystemState::Get()->fake_boot_control()->SetCurrentSlot(1); in TEST_F()
256 FakeSystemState::Get()->fake_boot_control()->SetCurrentSlot(0); in TEST_F()
[all …]
Dupdate_attempter_unittest.cc226 FakeSystemState::Get()->set_connection_manager(&mock_connection_manager); in SetUp()
227 FakeSystemState::Get()->set_update_attempter(&attempter_); in SetUp()
228 FakeSystemState::Get()->set_dlcservice(&mock_dlcservice_); in SetUp()
229 FakeSystemState::Get()->set_update_manager(&mock_update_manager_); in SetUp()
232 prefs_ = FakeSystemState::Get()->fake_prefs(); in SetUp()
253 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
256 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
260 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
263 EXPECT_CALL(*FakeSystemState::Get()->mock_payload_state(), in SetUp()
343 FakeSystemState::Get()->fake_hardware()->SetIsOfficialBuild( in TestCheckForUpdate()
[all …]
Domaha_request_action.cc360 if (SystemState::Get()->prefs()->GetInt64(key, &last_ping) && in CalculatePingDays()
392 int powerwash_count = SystemState::Get()->hardware()->GetPowerwashCount(); in ShouldPing()
398 if (SystemState::Get()->hardware()->GetFirstActiveOmahaPingSent()) { in ShouldPing()
410 auto* prefs = SystemState::Get()->prefs(); in GetInstallDate()
443 if (!SystemState::Get()->hardware()->IsOOBEEnabled() || in GetInstallDate()
444 !SystemState::Get()->hardware()->IsOOBEComplete(&time_of_oobe)) { in GetInstallDate()
471 const auto* params = SystemState::Get()->request_params(); in StorePingReply()
483 auto* prefs = SystemState::Get()->prefs(); in StorePingReply()
527 const auto* params = SystemState::Get()->request_params(); in PerformAction()
587 auto* prefs = SystemState::Get()->prefs(); in UpdateLastPingDays()
[all …]
Dpayload_state_unittest.cc117 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
118 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F()
160 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
161 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F()
212 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
213 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F()
256 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
257 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F()
359 FakeSystemState::Get()->set_prefs(nullptr); in TEST_F()
360 auto* prefs = FakeSystemState::Get()->mock_prefs(); in TEST_F()
[all …]
Dcommon_service_unittest.cc45 FakeSystemState::Get()->set_device_policy(nullptr); in SetUp()
46 mock_update_attempter_ = FakeSystemState::Get()->mock_update_attempter(); in SetUp()
118 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
128 FakeSystemState::Get()->set_device_policy(&mock_device_policy); in TEST_F()
131 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
143 EXPECT_CALL(*FakeSystemState::Get()->mock_request_params(), in TEST_F()
154 FakeSystemState::Get()->mock_request_params()->set_current_channel("current"); in TEST_F()
155 FakeSystemState::Get()->mock_request_params()->set_target_channel("target"); in TEST_F()
/system/bt/common/
Dlru_unittest.cc41 EXPECT_TRUE(cache.Get(1, value)); in TEST()
43 EXPECT_TRUE(cache.Get(2, value)); in TEST()
45 EXPECT_TRUE(cache.Get(3, value)); in TEST()
51 EXPECT_FALSE(cache.Get(1, value)); in TEST()
52 EXPECT_TRUE(cache.Get(4, value)); in TEST()
54 EXPECT_TRUE(cache.Get(2, value)); in TEST()
56 EXPECT_TRUE(cache.Get(3, value)); in TEST()
67 EXPECT_FALSE(cache.Get(3, value)); in TEST()
68 EXPECT_FALSE(cache.Get(4, value)); in TEST()
69 EXPECT_TRUE(cache.Get(2, value)); in TEST()
[all …]
/system/update_engine/update_manager/
Dreal_updater_provider_unittest.cc115 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), in SetupUpdateCompletedTime()
118 FakeSystemState::Get()->fake_clock()->SetBootTime(kCurrBootTime); in SetupUpdateCompletedTime()
119 FakeSystemState::Get()->fake_clock()->SetWallclockTime(kCurrWallclockTime); in SetupUpdateCompletedTime()
127 FakeSystemState::Get()->fake_clock()->SetWallclockTime( in TEST_F()
129 FakeSystemState::Get()->fake_clock()->SetMonotonicTime( in TEST_F()
139 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), GetStatus(_)) in TEST_F()
148 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), GetStatus(_)) in TEST_F()
154 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), GetStatus(_)) in TEST_F()
160 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), GetStatus(_)) in TEST_F()
166 EXPECT_CALL(*FakeSystemState::Get()->mock_update_attempter(), GetStatus(_)) in TEST_F()
[all …]
Dreal_system_provider.cc104 SystemState::Get()->hardware()->IsNormalBootMode())); in Init()
107 "is_official_build", SystemState::Get()->hardware()->IsOfficialBuild())); in Init()
112 base::Unretained(SystemState::Get()->hardware()), in Init()
116 "num_slots", SystemState::Get()->boot_control()->GetNumSlots())); in Init()
126 base::Version(SystemState::Get()->request_params()->app_version()))); in Init()
Dreal_updater_provider.cc60 is_success_ = SystemState::Get()->update_attempter()->GetStatus( in GetStatusHelper()
233 if (!SystemState::Get()->update_attempter()->GetBootTimeAtUpdate( in GetValue()
240 const auto* clock = SystemState::Get()->clock(); in GetValue()
262 OmahaRequestParams* request_params = SystemState::Get()->request_params(); in GetValue()
283 OmahaRequestParams* request_params = SystemState::Get()->request_params(); in GetValue()
307 SystemState::Get()->prefs()->AddObserver(key, this); in BooleanPrefVariable()
311 SystemState::Get()->prefs()->RemoveObserver(key_, this); in ~BooleanPrefVariable()
319 auto* prefs = SystemState::Get()->prefs(); in OnPrefSet()
346 return new unsigned int(SystemState::Get() in GetValue()
365 return new unsigned int(SystemState::Get() in GetValue()
[all …]
/system/bt/gd/os/linux_generic/
Dwakelock_manager_unittest.cc99 WakelockManager::Get().SetOsCallouts(&os_callouts, handler_); in TEST_F()
105 WakelockManager::Get().Acquire(); in TEST_F()
110 WakelockManager::Get().Acquire(); in TEST_F()
115 WakelockManager::Get().Release(); in TEST_F()
119 WakelockManager::Get().CleanUp(); in TEST_F()
125 WakelockManager::Get().SetOsCallouts(&os_callouts, handler_); in TEST_F()
131 WakelockManager::Get().Acquire(); in TEST_F()
136 WakelockManager::Get().Release(); in TEST_F()
142 WakelockManager::Get().Release(); in TEST_F()
146 WakelockManager::Get().CleanUp(); in TEST_F()
[all …]
/system/unwinding/libunwindstack/tests/
DLocalUpdatableMapsTest.cpp59 MapInfo* map_info = maps_.Get(0); in SetUp()
67 map_info = maps_.Get(1); in SetUp()
88 MapInfo* map_info = maps_.Get(0); in TEST_F()
96 map_info = maps_.Get(1); in TEST_F()
116 MapInfo* map_info = maps_.Get(0); in TEST_F()
124 map_info = maps_.Get(1); in TEST_F()
154 MapInfo* map_info = maps_.Get(0); in TEST_F()
162 map_info = maps_.Get(1); in TEST_F()
195 MapInfo* map_info = maps_.Get(0); in TEST_F()
203 map_info = maps_.Get(1); in TEST_F()
[all …]
DRegsInfoTest.cpp35 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
42 ASSERT_EQ(0x100U, info.Get(1)); in TEST()
52 ASSERT_EQ(0x300U, info.Get(3)); in TEST()
59 ASSERT_EQ(0x300U, info.Get(3)); in TEST()
69 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
82 ASSERT_EQ(i * 0x100, info.Get(i)) << "Reg " + std::to_string(i) + " failed."; in TEST()
DMapsTest.cpp35 MapInfo* element = maps.Get(0); in VerifyLine()
54 MapInfo* info = maps.Get(0); in TEST()
74 MapInfo* info = maps2.Get(0); in TEST()
185 MapInfo* info = maps.Get(0); in TEST()
193 info = maps.Get(1); in TEST()
201 info = maps.Get(2); in TEST()
209 info = maps.Get(3); in TEST()
217 info = maps.Get(4); in TEST()
225 ASSERT_TRUE(maps.Get(5) == nullptr); in TEST()
237 MapInfo* info = maps.Get(0); in TEST()
[all …]
/system/bt/gd/os/android/
Dwakelock_native_test.cc126 WakelockNative::Get().Initialize(); in SetUp()
160 WakelockNative::Get().CleanUp(); in TearDown()
172 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F()
179 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F()
190 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F()
197 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F()
204 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F()
215 auto status = WakelockNative::Get().Acquire(kTestWakelockName); in TEST_F()
222 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F()
229 auto status = WakelockNative::Get().Release(kTestWakelockName); in TEST_F()
[all …]
/system/bt/service/
Da2dp_sink.cc32 hal::BluetoothAvInterface::Get()->AddA2dpSinkObserver(this); in A2dpSink()
36 hal::BluetoothAvInterface::Get()->RemoveA2dpSinkObserver(this); in ~A2dpSink()
50 return hal::BluetoothAvInterface::Get()->A2dpSinkEnable(); in Enable()
55 hal::BluetoothAvInterface::Get()->A2dpSinkDisable(); in Disable()
67 hal::BluetoothAvInterface::Get()->GetA2dpSinkHALInterface()->connect( in Connect()
86 hal::BluetoothAvInterface::Get()->GetA2dpSinkHALInterface()->disconnect( in Disconnect()
98 hal::BluetoothAvInterface::Get() in SetAudioFocusState()
105 hal::BluetoothAvInterface::Get() in SetAudioTrackGain()
Dlow_energy_scanner.cc82 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScanner()
84 hal::BluetoothGattInterface::Get()->GetScannerHALInterface()->Unregister( in ~LowEnergyScanner()
108 hal::BluetoothGattInterface::Get()->StartScan(scanner_id_); in StartScan()
125 hal::BluetoothGattInterface::Get()->StopScan(scanner_id_); in StopScan()
166 hal::BluetoothGattInterface::Get()->AddScannerObserver(this); in LowEnergyScannerFactory()
170 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScannerFactory()
185 hal::BluetoothGattInterface::Get()->GetScannerHALInterface(); in RegisterInstance()
218 hal::BluetoothGattInterface::Get()->AddScannerObserver(scanner.get()); in RegisterScannerCallback()
/system/bt/osi/test/
Dalarm_mock.h28 static inline AlarmMock* Get() { in Get() function
44 return AlarmMock::Get()->AlarmNewImpl(name); in alarm_new()
47 void alarm_free(alarm_t* alarm) { AlarmMock::Get()->AlarmFreeImpl(alarm); } in alarm_free()
51 AlarmMock::Get()->AlarmSetOnMloop(alarm, interval_ms, cb, data); in alarm_set_on_mloop()
/system/bt/gd/
Dstack_manager.cc44 WakelockManager::Get().Acquire(); in StartUp()
53 WakelockManager::Get().Release(); in StartUp()
73 WakelockManager::Get().Acquire(); in ShutDown()
81 WakelockManager::Get().Release(); in ShutDown()
82 WakelockManager::Get().CleanUp(); in ShutDown()
/system/bt/stack/test/
Dble_advertiser_test.cc198 BleAdvertisingManager::Get()->RegisterAdvertiser(Bind( in TEST_F()
205 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F()
214 BleAdvertisingManager::Get()->Unregister(5); in TEST_F()
218 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F()
227 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F()
239 BleAdvertisingManager::Get()->SetParameters( in TEST_F()
253 BleAdvertisingManager::Get()->SetData( in TEST_F()
269 BleAdvertisingManager::Get()->Enable( in TEST_F()
291 BleAdvertisingManager::Get()->Unregister(advertiser_id); in TEST_F()
301 BleAdvertisingManager::Get()->RegisterAdvertiser( in TEST_F()
[all …]
Dgatt_connection_manager_test.cc157 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F()
158 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F()
171 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F()
187 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F()
191 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)) in TEST_F()
204 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F()
217 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F()
218 EXPECT_CALL(*AlarmMock::Get(), AlarmSetOnMloop(_, _, _, _)).Times(1); in TEST_F()
227 EXPECT_CALL(*AlarmMock::Get(), AlarmFree(_)).Times(1); in TEST_F()
265 EXPECT_CALL(*AlarmMock::Get(), AlarmNew(_)).Times(1); in TEST_F()
[all …]
/system/nvram/messages/include/nvram/messages/
Dstruct.h131 const MemberType& Get(const Struct& object) const { in Get() function
135 MemberType& Get(Struct& object) const { in Get() function
209 static constexpr Type Get(FieldSpecList<FieldSpec, Tail...> self) {
210 return Prev::Get(self.kTail);
219 static constexpr Type Get(FieldSpecList<FieldSpec, Tail...> self) {
256 constexpr typename FieldSpecLookup<index, FieldSpec, Tail...>::Type Get()
258 return FieldSpecLookup<index, FieldSpec, Tail...>::Get(*this);
/system/bt/btif/src/
Dbtif_ble_advertiser.cc100 BleAdvertisingManager::Get(), in RegisterAdvertiser()
114 BleAdvertisingManager::Get()->Unregister(advertiser_id); in Unregister()
123 BleAdvertisingManager::Get(), advertiser_id, in GetOwnAddress()
136 BleAdvertisingManager::Get(), in SetParameters()
146 Bind(&BleAdvertisingManager::SetData, BleAdvertisingManager::Get(), in SetData()
160 Bind(&BleAdvertisingManager::Enable, BleAdvertisingManager::Get(), in Enable()
179 BleAdvertisingManager::Get(), advertiser_id, in StartAdvertising()
205 BleAdvertisingManager::Get(), jni_thread_wrapper(FROM_HERE, cb), in StartAdvertisingSet()
224 BleAdvertisingManager::Get(), advertiser_id, in SetPeriodicAdvertisingParameters()
236 BleAdvertisingManager::Get(), advertiser_id, in SetPeriodicAdvertisingData()
[all …]

12345678910>>...13