Home
last modified time | relevance | path

Searched refs:reset (Results 1 – 25 of 450) sorted by relevance

12345678910>>...18

/system/update_engine/update_manager/
Dchromeos_policy_unittest.cc52 fake_state_.config_provider()->var_is_oobe_enabled()->reset(new bool(true)); in SetUpDefaultState()
56 fake_state_.system_provider()->var_is_official_build()->reset( in SetUpDefaultState()
58 fake_state_.system_provider()->var_is_oobe_complete()->reset( in SetUpDefaultState()
61 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(2)); in SetUpDefaultState()
64 fake_state_.shill_provider()->var_conn_type()->reset( in SetUpDefaultState()
66 fake_state_.shill_provider()->var_conn_tethering()->reset( in SetUpDefaultState()
73 fake_state_.device_policy_provider()->var_device_policy_is_loaded()->reset( in SetUpDefaultDevicePolicy()
75 fake_state_.device_policy_provider()->var_update_disabled()->reset( in SetUpDefaultDevicePolicy()
79 ->reset(nullptr); in SetUpDefaultDevicePolicy()
80 fake_state_.device_policy_provider()->var_scatter_factor()->reset( in SetUpDefaultDevicePolicy()
[all …]
Dpolicy_test_utils.cc55 fake_state_.time_provider()->var_curr_hour()->reset(new int(exploded.hour)); in SetUpDefaultTimeProvider()
56 fake_state_.time_provider()->var_curr_minute()->reset( in SetUpDefaultTimeProvider()
58 fake_state_.time_provider()->var_curr_date()->reset( in SetUpDefaultTimeProvider()
63 fake_state_.updater_provider()->var_updater_started_time()->reset( in SetUpDefaultState()
65 fake_state_.updater_provider()->var_last_checked_time()->reset( in SetUpDefaultState()
67 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in SetUpDefaultState()
69 fake_state_.updater_provider()->var_server_dictated_poll_interval()->reset( in SetUpDefaultState()
71 fake_state_.updater_provider()->var_forced_update_requested()->reset( in SetUpDefaultState()
75 fake_state_.random_provider()->var_seed()->reset(new uint64_t(4)); in SetUpDefaultState()
Dandroid_things_policy_unittest.cc41 fake_state_.system_provider()->var_is_official_build()->reset( in SetUpDefaultState()
44 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(2)); in SetUpDefaultState()
74 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
84 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
94 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
108 fake_state_.system_provider()->var_is_official_build()->reset( in TEST_F()
122 fake_state_.system_provider()->var_num_slots()->reset(new unsigned int(1)); in TEST_F()
136 fake_state_.updater_provider()->var_forced_update_requested()->reset( in TEST_F()
152 fake_state_.updater_provider()->var_forced_update_requested()->reset( in TEST_F()
177 fake_state_.updater_provider()->var_update_restrictions()->reset( in TEST_F()
Dreal_system_provider.cc98 var_is_normal_boot_mode_.reset(new ConstCopyVariable<bool>( in Init()
101 var_is_official_build_.reset(new ConstCopyVariable<bool>( in Init()
104 var_is_oobe_complete_.reset(new CallCopyVariable<bool>( in Init()
110 var_num_slots_.reset(new ConstCopyVariable<unsigned int>( in Init()
113 var_kiosk_required_platform_version_.reset(new RetryPollVariable<string>( in Init()
Devaluation_context_unittest.cc158 fake_int_var_.reset(new int(42)); in TEST_F()
167 fake_int_var_.reset(new int(42)); in TEST_F()
172 fake_int_var_.reset(new int(5)); in TEST_F()
183 fake_int_var_.reset(new int(42)); in TEST_F()
194 fake_int_var_.reset(new int(42)); in TEST_F()
195 fake_poll_var_.reset(new string("Hello world!")); in TEST_F()
210 fake_const_var_.reset(new string("Hello world!")); in TEST_F()
224 fake_async_var_.reset(new string("Async value")); in TEST_F()
243 fake_async_var_.reset(new string("Async value")); in TEST_F()
258 fake_poll_var_.reset(new string("Polled value")); in TEST_F()
[all …]
Dnext_update_check_policy_impl_unittest.cc54 fake_state_.updater_provider()->var_last_checked_time()->reset( in TEST_F()
96 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
121 fake_state_.updater_provider()->var_server_dictated_poll_interval()->reset( in TEST_F()
124 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
143 fake_state_.updater_provider()->var_consecutive_failed_update_checks()->reset( in TEST_F()
/system/bt/service/common/bluetooth/
Dscan_filter.cc27 if (other.service_uuid_) service_uuid_.reset(new Uuid(*other.service_uuid_)); in ScanFilter()
30 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in ScanFilter()
38 service_uuid_.reset(new Uuid(*other.service_uuid_)); in operator =()
43 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in operator =()
58 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuid()
59 service_uuid_mask_.reset(); in SetServiceUuid()
64 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuidWithMask()
65 service_uuid_mask_.reset(new Uuid(mask)); in SetServiceUuidWithMask()
/system/gatekeeper/
Dgatekeeper_messages.cpp56 target->buffer.reset(new uint8_t[target->length]); in read_from_buffer()
139 this->password_handle.buffer.reset(enrolled_password_handle->buffer.release()); in VerifyRequest()
141 this->provided_password.buffer.reset(provided_password_payload->buffer.release()); in VerifyRequest()
152 password_handle.buffer.reset(); in ~VerifyRequest()
157 provided_password.buffer.reset(); in ~VerifyRequest()
177 password_handle.buffer.reset(); in nonErrorDeserialize()
182 provided_password.buffer.reset(); in nonErrorDeserialize()
200 this->auth_token.buffer.reset(auth_token->buffer.release()); in VerifyResponse()
212 auth_token.buffer.reset(); in ~VerifyResponse()
217 this->auth_token.buffer.reset(auth_token->buffer.release()); in SetVerificationToken()
[all …]
/system/core/base/include/android-base/
Dunique_fd.h92 explicit unique_fd_impl(int fd) { reset(fd); } in unique_fd_impl()
93 ~unique_fd_impl() { reset(); } in ~unique_fd_impl()
95 unique_fd_impl(unique_fd_impl&& other) noexcept { reset(other.release()); } in unique_fd_impl()
99 reset(fd, &s);
103 void reset(int new_value = -1) { reset(new_value, nullptr); }
119 void reset(int new_value, void* previous_tag) { in reset() function
203 read->reset(pipefd[0]);
204 write->reset(pipefd[1]);
215 left->reset(sockfd[0]); in Socketpair()
216 right->reset(sockfd[1]); in Socketpair()
/system/bt/service/common/android/bluetooth/
Dscan_filter.cc49 uuid.reset(&tmp); in writeToParcel()
51 uuid.reset(nullptr); in writeToParcel()
59 uuid.reset(&tmp); in writeToParcel()
61 uuid.reset(nullptr); in writeToParcel()
83 service_uuid_.reset(new ::bluetooth::Uuid(uuid.uuid)); in readFromParcel()
87 service_uuid_mask_.reset(new ::bluetooth::Uuid(uuid.uuid)); in readFromParcel()
/system/chre/util/
Dbuffer_base.cc26 reset(); in ~BufferBase()
32 reset(); in wrap()
42 reset(); in copy_array()
58 void BufferBase::reset() { in reset() function in chre::BufferBase
/system/keymaster/legacy_support/
Dkeymaster_passthrough_engine.cpp48 rsa_encrypt_op_factory_.reset( in TKeymasterPassthroughEngine()
50 rsa_decrypt_op_factory_.reset( in TKeymasterPassthroughEngine()
52 rsa_sign_op_factory_.reset(new opfactory_t(KM_ALGORITHM_RSA, KM_PURPOSE_SIGN, km_device_)); in TKeymasterPassthroughEngine()
53 rsa_verify_op_factory_.reset( in TKeymasterPassthroughEngine()
55 ec_encrypt_op_factory_.reset( in TKeymasterPassthroughEngine()
57 ec_decrypt_op_factory_.reset( in TKeymasterPassthroughEngine()
59 ec_sign_op_factory_.reset(new opfactory_t(KM_ALGORITHM_EC, KM_PURPOSE_SIGN, km_device_)); in TKeymasterPassthroughEngine()
60 ec_verify_op_factory_.reset( in TKeymasterPassthroughEngine()
62 ec_derive_op_factory_.reset( in TKeymasterPassthroughEngine()
64 aes_encrypt_op_factory_.reset( in TKeymasterPassthroughEngine()
[all …]
/system/update_engine/
Ddaemon_state_android.cc34 boot_control_.reset(new BootControlStub()); in Initialize()
55 prefs_.reset(prefs); in Initialize()
62 certificate_checker_.reset( in Initialize()
67 update_attempter_.reset(new UpdateAttempterAndroid( in Initialize()
Dreal_system_state.cc73 kiosk_app_proxy_.reset(new org::chromium::KioskAppServiceInterfaceProxy( in Initialize()
107 prefs_.reset(prefs = new Prefs()); in Initialize()
120 powerwash_safe_prefs_.reset(prefs = new Prefs()); in Initialize()
148 certificate_checker_.reset( in Initialize()
152 update_attempter_.reset( in Initialize()
172 update_manager_.reset(new chromeos_update_manager::UpdateManager( in Initialize()
179 p2p_manager_.reset( in Initialize()
/system/keymaster/include/keymaster/contexts/
Dkeymaster0_passthrough_context.h33 km0_engine_.reset(new Keymaster0Engine(dev)); in Keymaster0PassthroughContext()
34 rsa_factory_.reset(new RsaKeymaster0KeyFactory(this, km0_engine_.get())); in Keymaster0PassthroughContext()
35 ec_factory_.reset(new EcdsaKeymaster0KeyFactory(this, km0_engine_.get())); in Keymaster0PassthroughContext()
/system/keymaster/android_keymaster/
Dserializable.cpp61 dest->reset(); in copy_size_and_data_from_buf()
64 dest->reset(new (std::nothrow) uint8_t[*size]); in copy_size_and_data_from_buf()
78 buffer_.reset(new_buffer); in reserve()
88 buffer_.reset(new (std::nothrow) uint8_t[size]); in Reinitialize()
101 buffer_.reset(new (std::nothrow) uint8_t[data_len]); in Reinitialize()
149 buffer_.reset(); in Deserialize()
159 buffer_.reset(); in Clear()
/system/core/gatekeeperd/tests/
Dgatekeeper_test.cpp37 password.buffer.reset(new uint8_t[16]); in do_enroll()
69 provided_password.buffer.reset(new uint8_t[16]); in TEST()
100 provided_password.buffer.reset(new uint8_t[16]); in TEST()
107 password_handle.buffer.reset(new uint8_t[enroll_response.enrolled_password_handle.length]); in TEST()
124 provided_password.buffer.reset(new uint8_t[16]); in TEST()
128 password.buffer.reset(new uint8_t[16]); in TEST()
136 password.buffer.reset(new uint8_t[16]); in TEST()
154 provided_password.buffer.reset(new uint8_t[16]); in TEST()
173 password.buffer.reset(new uint8_t[16]); in TEST()
181 password.buffer.reset(new uint8_t[16]); in TEST()
/system/keymaster/include/keymaster/
DUniquePtr.h75 reset();
82 reset();
104 void reset(T* ptr = nullptr) {
139 reset();
146 reset();
163 void reset(T* ptr = nullptr) {
232 c.reset(new C);
259 c.reset(new C[2]);
/system/core/libunwindstack/
DElf.cpp49 interface_.reset(CreateInterfaceFromMemory(memory_.get())); in Init()
59 interface_.reset(nullptr); in Init()
71 gnu_debugdata_memory_.reset(interface_->CreateGnuDebugdataMemory()); in InitGnuDebugdata()
72 gnu_debugdata_interface_.reset(CreateInterfaceFromMemory(gnu_debugdata_memory_.get())); in InitGnuDebugdata()
86 gnu_debugdata_memory_.reset(nullptr); in InitGnuDebugdata()
87 gnu_debugdata_interface_.reset(nullptr); in InitGnuDebugdata()
92 interface_.reset(nullptr); in Invalidate()
265 interface.reset(new ElfInterfaceArm(memory)); in CreateInterfaceFromMemory()
268 interface.reset(new ElfInterface32(memory)); in CreateInterfaceFromMemory()
271 interface.reset(new ElfInterface32(memory)); in CreateInterfaceFromMemory()
[all …]
/system/keymaster/km_openssl/
Dkdf.cpp44 secret_key_.reset(dup_buffer(secret, secret_len)); in Init()
50 salt_.reset(dup_buffer(salt, salt_len)); in Init()
54 salt_.reset(); in Init()
/system/core/libunwindstack/tests/
DMapInfoGetLoadBiasTest.cpp50 process_memory_.reset(memory_); in SetUp()
52 elf_container_.reset(elf_); in SetUp()
53 map_info_.reset(new MapInfo(nullptr, 0x1000, 0x20000, 0, PROT_READ | PROT_WRITE, "")); in SetUp()
72 map_info_->elf.reset(elf_container_.release()); in TEST_F()
82 map_info_->elf.reset(elf_container_.release()); in TEST_F()
125 map_info_->elf.reset(elf_container_.release()); in TEST_F()
/system/connectivity/wificond/tests/
Doffload_callback_test.cpp57 handlers_.reset(new NiceMock<MockOffloadCallbackHandlers>()); in TEST_F()
63 offload_callback_.reset(new OffloadCallback(handlers_.get())); in TEST_F()
74 handlers_.reset(new NiceMock<MockOffloadCallbackHandlers>()); in TEST_F()
78 offload_callback_.reset(new OffloadCallback(handlers_.get())); in TEST_F()
/system/bt/service/
Ddaemon.cc98 ipc_manager_.reset(); in CleanUpBluetoothStack()
99 adapter_.reset(); in CleanUpBluetoothStack()
131 message_loop_.reset(new base::MessageLoop()); in Init()
133 settings_.reset(new Settings()); in Init()
145 ipc_manager_.reset(new ipc::IPCManager(adapter_.get())); in Init()
/system/bt/service/test/
Dipc_linux_unittest.cc66 ipc_manager_.reset(new ipc::IPCManager(adapter_.get())); in SetUp()
70 client_fd_.reset(); in TearDown()
71 ipc_manager_.reset(); in TearDown()
72 adapter_.reset(); in TearDown()
89 client_fd_.reset(socket(PF_UNIX, SOCK_SEQPACKET, 0)); in ConnectToTestSocket()
180 ipc_manager_.reset(); in TEST_F()
/system/chre/util/include/chre/util/
Dunique_ptr_impl.h52 reset(); in ~UniquePtr()
73 void UniquePtr<ObjectType>::reset(ObjectType *object) { in reset() function
76 reset(); in reset()
81 void UniquePtr<ObjectType>::reset() { in reset() function
119 reset();

12345678910>>...18