Searched refs:source (Results 1 - 25 of 54) sorted by relevance

123

/system/core/include/cutils/
H A Dpartition_utils.h22 int partition_wiped(char *source);
/system/vold/fs/
H A DF2fs.h30 status_t Check(const std::string& source);
31 status_t Mount(const std::string& source, const std::string& target);
32 status_t Format(const std::string& source);
H A DVfat.h30 status_t Check(const std::string& source);
31 status_t Mount(const std::string& source, const std::string& target, bool ro,
34 status_t Format(const std::string& source, unsigned long numSectors);
H A DExt4.h30 status_t Check(const std::string& source, const std::string& target);
31 status_t Mount(const std::string& source, const std::string& target, bool ro,
33 status_t Format(const std::string& source, unsigned long numSectors,
35 status_t Resize(const std::string& source, unsigned long numSectors);
H A DF2fs.cpp43 status_t Check(const std::string& source) { argument
47 cmd.push_back(source);
53 status_t Mount(const std::string& source, const std::string& target) { argument
54 const char* c_source = source.c_str();
60 PLOG(ERROR) << "Failed to mount " << source;
64 PLOG(ERROR) << "Failed to mount read-only " << source;
72 status_t Format(const std::string& source) { argument
75 cmd.push_back(source);
H A DExt4.cpp67 status_t Check(const std::string& source, const std::string& target) { argument
71 const char* c_source = source.c_str();
129 status_t Mount(const std::string& source, const std::string& target, bool ro, argument
134 const char* c_source = source.c_str();
154 status_t Resize(const std::string& source, unsigned long numSectors) { argument
158 cmd.push_back(source);
164 status_t Format(const std::string& source, unsigned long numSectors, argument
180 cmd.push_back(source);
H A DVfat.cpp67 status_t Check(const std::string& source) { argument
80 cmd.push_back(source);
126 status_t Mount(const std::string& source, const std::string& target, bool ro, argument
133 const char* c_source = source.c_str();
172 status_t Format(const std::string& source, unsigned long numSectors) { argument
188 cmd.push_back(source);
/system/weaved/buffet/
H A Dweave_error_conversion.h26 inline void ConvertError(const weave::Error& source, argument
28 const weave::Error* inner_error = source.GetInnerError();
32 const auto& location = source.GetLocation();
38 "weave", source.GetCode(), source.GetMessage());
41 inline void ConvertError(const brillo::Error& source, argument
43 const brillo::Error* inner_error = source.GetInnerError();
47 const auto& location = source.GetLocation();
53 source.GetCode(), source
[all...]
/system/tools/aidl/tests/java_app/src/android/aidl/tests/
H A DSimpleParcelable.java39 public void readFromParcel(Parcel source) { argument
40 mName = source.readString();
41 mNumber = source.readInt();
65 public SimpleParcelable createFromParcel(Parcel source) {
66 String name = source.readString();
67 int number = source.readInt();
/system/update_engine/update_manager/
H A Dgeneric_variables_unittest.cc40 int source = 5; local
41 PollCopyVariable<int> var("var", source);
49 // Assign a different value to the source variable.
50 source = 42;
61 int source = 5; local
63 PollCopyVariable<int> var("var", source, &is_set);
90 const CopyConstructorTestClass source; local
91 ASSERT_FALSE(source.copied_);
93 PollCopyVariable<CopyConstructorTestClass> var("var", source);
104 int source local
[all...]
/system/core/libcutils/
H A Dpartition_utils.c40 int partition_wiped(char *source) argument
45 if ((fd = open(source, O_RDONLY)) < 0) {
/system/update_engine/
H A Dpayload_state.h105 inline uint64_t GetCurrentBytesDownloaded(DownloadSource source) override {
106 return source < kNumDownloadSources ? current_bytes_downloaded_[source] : 0;
109 inline uint64_t GetTotalBytesDownloaded(DownloadSource source) override {
110 return source < kNumDownloadSources ? total_bytes_downloaded_[source] : 0;
194 // Updates the value of current download source based on the current URL
195 // index. If the download source is not one of the known sources, it's set
333 // Returns the full key for a download source given the prefix.
334 std::string GetPrefsKey(const std::string& prefix, DownloadSource source);
[all...]
H A Dpayload_state.cc87 DownloadSource source = static_cast<DownloadSource>(i); local
88 LoadCurrentBytesDownloaded(source);
89 LoadTotalBytesDownloaded(source);
135 // Update the current download source which depends on the latest value of
142 // Update the current download source which depends on whether we are
531 LOG(INFO) << "Current download source: "
676 DownloadSource source = static_cast<DownloadSource>(i); local
679 // Only consider this download source (and send byte counts) as
685 bytes = GetCurrentBytesDownloaded(source);
688 SetCurrentBytesDownloaded(source,
777 DownloadSource source = static_cast<DownloadSource>(i); local
1096 GetPrefsKey(const string& prefix, DownloadSource source) argument
1100 LoadCurrentBytesDownloaded(DownloadSource source) argument
1105 SetCurrentBytesDownloaded( DownloadSource source, uint64_t current_bytes_downloaded, bool log) argument
1124 LoadTotalBytesDownloaded(DownloadSource source) argument
1129 SetTotalBytesDownloaded( DownloadSource source, uint64_t total_bytes_downloaded, bool log) argument
[all...]
H A Dmock_payload_state.h67 MOCK_METHOD1(GetCurrentBytesDownloaded, uint64_t(DownloadSource source));
68 MOCK_METHOD1(GetTotalBytesDownloaded, uint64_t(DownloadSource source));
H A Dpayload_state_interface.h141 // Returns the number of bytes that have been downloaded for each source for
145 virtual uint64_t GetCurrentBytesDownloaded(DownloadSource source) = 0;
148 // source since the the last successful update. This is used to compute the
150 virtual uint64_t GetTotalBytesDownloaded(DownloadSource source) = 0;
H A Dimage_properties_chromeos.cc67 // |source|. The loaded values are added to the store, possibly overriding
69 void LoadLsbRelease(LsbReleaseSource source, brillo::KeyValueStore* store) { argument
73 if (source == LsbReleaseSource::kStateful)
/system/bt/vendor_libs/test_vendor_lib/include/
H A Dpacket_stream.h60 // Attempts to send |num_octets_to_send| from |source| to |fd|, returning
62 bool SendAll(const std::vector<uint8_t>& source, size_t num_octets_to_send,
/system/extras/perfprofd/quipper/base/
H A Dmacros.h2 // Use of this source code is governed by a BSD-style license that can be
6 // are commonly used throughout Chromium source. (It may also contain things
159 // equivalent of "*reinterpret_cast<Dest*>(&source)". We need this in
213 inline Dest bit_cast(const Source& source) { argument
217 memcpy(&dest, &source, sizeof(dest));
/system/extras/systrace_analysis/
H A Danalyze_trace.py35 sys.exit('Can\'t find chromium-trace in your source tree')
39 sys.exit('Can\'t find vinn in your source tree')
44 # Find source paths and construct vinn launch arguments
/system/bt/vendor_libs/test_vendor_lib/src/
H A Dpacket_stream.cc120 bool PacketStream::SendAll(const std::vector<uint8_t>& source, argument
122 CHECK(source.size() >= num_octets_to_send);
126 fd, &source[num_octets_to_send - octets_remaining], octets_remaining);
H A Devent_packet.cc19 #define VECTOR_COPY_TO_END(source, destination) \
20 std::copy(source.begin(), source.end(), std::back_inserter(destination));
/system/tpm/trunks/
H A Dbackground_command_transceiver.cc32 const std::string& source) {
33 *destination = source;
30 AssignAndSignal(std::string* destination, base::WaitableEvent* event, const std::string& source) argument
/system/update_engine/payload_generator/
H A Dpayload_generation_config.cc182 for (const PartitionConfig& part : source.partitions) {
192 TEST_AND_RETURN_FALSE(source.ImageInfoIsEmpty() ==
195 // All the "source" image fields must be empty for full payloads.
196 TEST_AND_RETURN_FALSE(source.ValidateIsEmpty());
H A Ddelta_diff_generator.cc81 TEST_AND_RETURN_FALSE(config.source.partitions.size() ==
87 config.is_delta ? config.source.partitions[i] : empty_part;
/system/extras/perfprofd/quipper/
H A Daddress_mapper.h2 // Use of this source code is governed by a BSD-style license that can be
18 // Copy constructor: copies mappings from |source| to this AddressMapper. This
21 AddressMapper(const AddressMapper& source);

Completed in 829 milliseconds

123