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

1234

/system/chre/platform/linux/
H A Dplatform_audio.cc70 LOGI("TODO: File done, suspend the source");
90 auto& source = gAudioSources[handle]; local
91 source->numSamples = numSamples;
92 source->eventDelay = eventDelay;
93 return source->timer.set(audioSourceCallback, source.get(), eventDelay);
98 auto& source = gAudioSources[handle]; local
99 source->timer.cancel();
114 const auto& source = gAudioSources[handle]; local
116 audioSource->name = source
129 addAudioSource(UniquePtr<AudioSource>& source) argument
[all...]
/system/core/include/cutils/
H A Dpartition_utils.h24 int partition_wiped(char *source);
/system/core/libcutils/include/cutils/
H A Dpartition_utils.h24 int partition_wiped(char *source);
/system/core/libcutils/include_vndk/cutils/
H A Dpartition_utils.h24 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 DExfat.h30 status_t Check(const std::string& source);
31 status_t Mount(const std::string& source, const std::string& target, int ownerUid, int ownerGid,
33 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.cpp45 status_t Check(const std::string& source) { argument
49 cmd.push_back(source);
55 status_t Mount(const std::string& source, const std::string& target) { argument
56 const char* c_source = source.c_str();
62 PLOG(ERROR) << "Failed to mount " << source;
66 PLOG(ERROR) << "Failed to mount read-only " << source;
74 status_t Format(const std::string& source) { argument
93 cmd.push_back(source);
H A DExfat.cpp41 status_t Check(const std::string& source) { argument
44 cmd.push_back(source);
57 status_t Mount(const std::string& source, const std::string& target, int ownerUid, int ownerGid, argument
63 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) {
69 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) {
76 status_t Format(const std::string& source) { argument
81 cmd.push_back(source);
H A DExt4.cpp70 status_t Check(const std::string& source, const std::string& target) { argument
74 const char* c_source = source.c_str();
132 status_t Mount(const std::string& source, const std::string& target, bool ro, argument
137 const char* c_source = source.c_str();
149 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO";
157 status_t Resize(const std::string& source, unsigned long numSectors) { argument
161 cmd.push_back(source);
167 status_t Format(const std::string& source, unsigned long numSectors, argument
192 cmd.push_back(source);
H A DVfat.cpp63 status_t Check(const std::string& source) { argument
71 cmd.push_back(source);
116 status_t Mount(const std::string& source, const std::string& target, bool ro, argument
122 const char* c_source = source.c_str();
138 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO";
159 status_t Format(const std::string& source, unsigned long numSectors) { argument
175 cmd.push_back(source);
/system/chre/platform/linux/include/chre/target_platform/
H A Dplatform_audio_base.h32 * Adds an audio source to the simulator.
34 * @param source the audio source to provide. Ownership is transferred to the
37 static void addAudioSource(UniquePtr<AudioSource>& source);
/system/chre/util/include/chre/util/
H A Dmemory_impl.h38 inline void moveOrCopyAssign(ElementType& dest, ElementType& source, argument
40 dest = std::move(source);
45 inline void moveOrCopyAssign(ElementType& dest, ElementType& source, argument
47 dest = source;
51 inline void moveOrCopyAssign(ElementType& dest, ElementType& source) { argument
52 moveOrCopyAssign(dest, source,
58 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, argument
60 std::memcpy(dest, source, count * sizeof(ElementType));
66 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, argument
70 new (&dest[i]) ElementType(std::move(source[
77 uninitializedMoveOrCopy(ElementType *source, size_t count, ElementType *dest, std::false_type, std::false_type) argument
87 uninitializedMoveOrCopy( ElementType *source, size_t count, ElementType *dest, std::false_type) argument
101 uninitializedMoveOrCopy(ElementType *source, size_t count, ElementType *dest) argument
[all...]
H A Dmemory.h35 * Performs move assignment (dest = std::move(source)) if supported by
36 * ElementType, otherwise copy assignment (dest = source).
39 void moveOrCopyAssign(ElementType& dest, ElementType& source);
47 * @param source The beginning of the data to transfer
52 void uninitializedMoveOrCopy(ElementType *source, size_t count,
/system/chre/apps/chqts/src/general_test/
H A Dbasic_audio_test.cc31 //! would expose. Use this to verify that there are no gaps in the source
35 //! This is a reasonably high limit on the sample rate for a source that the
43 //! Provide a floor for the sampling rate of an audio source that the system
93 * a failure if the source descriptor is malformed.
95 * @return true if the source was valid.
98 const struct chreAudioSource& source) {
100 if (!verifyStringWithLength(source.name, CHRE_AUDIO_SOURCE_NAME_MAX_SIZE)) {
102 "Invalid audio source name for handle ", &handle);
103 } else if (source.sampleRate > kMaxAudioSampleRate
104 || source
97 validateAudioSource(uint32_t handle, const struct chreAudioSource& source) argument
126 validateMinimumAudioSource(const struct chreAudioSource& source) argument
[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/chre/host/common/
H A Dfragmented_load_transaction.cc29 * If the ending index of the subarray exceeds that of the source vector,
30 * the size will be truncated to the last element of the source vector.
32 * @param source the source vector
39 const std::vector<uint8_t>& source, size_t start, size_t size) {
40 size_t end = std::min(source.size(), start + size);
41 return (source.size() == 0) ?
44 source.begin() + start, source.begin() + end); // [start, end)
38 getSubVector( const std::vector<uint8_t>& source, size_t start, size_t size) argument
/system/update_engine/payload_consumer/
H A Dfile_descriptor_utils.cc38 bool CommonHashExtents(FileDescriptorPtr source, argument
51 TEST_AND_RETURN_FALSE(reader.Init(source, src_extents, block_size));
79 bool CopyAndHashExtents(FileDescriptorPtr source, argument
90 CommonHashExtents(source, src_extents, &writer, block_size, hash_out));
95 bool ReadAndHashExtents(FileDescriptorPtr source, argument
101 CommonHashExtents(source, extents, nullptr, block_size, hash_out));
H A Dfile_descriptor_utils.h28 // Copy blocks from the |source| file to the |target| file and hashes the
29 // contents. The blocks to copy from the |source| to the |target| files are
35 // The |source| and |target| files must be different, or otherwise |src_extents|
38 FileDescriptorPtr source,
45 // Reads blocks from |source| and caculates the hash. The blocks to read are
50 FileDescriptorPtr source,
/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.cpp42 int partition_wiped(char *source) argument
47 if ((fd = open(source, O_RDONLY)) < 0) {
/system/extras/tests/bootloader/
H A DAndroid.mk4 # Since no action needs to be taken to compile the python source, just
20 $(transform-generated-source)
/system/update_engine/
H A Dpayload_state.h108 inline uint64_t GetCurrentBytesDownloaded(DownloadSource source) override {
109 return source < kNumDownloadSources ? current_bytes_downloaded_[source] : 0;
112 inline uint64_t GetTotalBytesDownloaded(DownloadSource source) override {
113 return source < kNumDownloadSources ? total_bytes_downloaded_[source] : 0;
199 // Updates the value of current download source based on the current URL
200 // index. If the download source is not one of the known sources, it's set
339 // Returns the full key for a download source given the prefix.
340 std::string GetPrefsKey(const std::string& prefix, DownloadSource source);
[all...]
/system/sepolicy/tests/
H A Dsearchpolicy.py16 expr.add_argument("-s", "--source",
35 if not (args.source or args.target or args.tclass or args.perms):
36 parser.error("Must something to filter on, e.g. --source, --target, etc.")
40 if args.source:
41 scontext = {args.source}

Completed in 341 milliseconds

1234