/system/chre/platform/linux/ |
D | platform_audio.cc | 90 auto& source = gAudioSources[handle]; in requestAudioDataEvent() local 91 source->numSamples = numSamples; in requestAudioDataEvent() 92 source->eventDelay = eventDelay; in requestAudioDataEvent() 93 return source->timer.set(audioSourceCallback, source.get(), eventDelay); in requestAudioDataEvent() 98 auto& source = gAudioSources[handle]; in cancelAudioDataEventRequest() local 99 source->timer.cancel(); in cancelAudioDataEventRequest() 114 const auto& source = gAudioSources[handle]; in getAudioSource() local 116 audioSource->name = source->audioFilename.c_str(); in getAudioSource() 118 static_cast<uint32_t>(source->audioInfo.samplerate); in getAudioSource() 120 source->minBufferDuration.toRawNanoseconds(); in getAudioSource() [all …]
|
/system/chre/util/include/chre/util/ |
D | memory_impl.h | 38 inline void moveOrCopyAssign(ElementType& dest, ElementType& source, in moveOrCopyAssign() argument 40 dest = std::move(source); in moveOrCopyAssign() 45 inline void moveOrCopyAssign(ElementType& dest, ElementType& source, in moveOrCopyAssign() argument 47 dest = source; in moveOrCopyAssign() 51 inline void moveOrCopyAssign(ElementType& dest, ElementType& source) { in moveOrCopyAssign() argument 52 moveOrCopyAssign(dest, source, in moveOrCopyAssign() 58 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, in uninitializedMoveOrCopy() argument 60 std::memcpy(dest, source, count * sizeof(ElementType)); in uninitializedMoveOrCopy() 66 inline void uninitializedMoveOrCopy(ElementType *source, size_t count, in uninitializedMoveOrCopy() argument 70 new (&dest[i]) ElementType(std::move(source[i])); in uninitializedMoveOrCopy() [all …]
|
/system/chre/apps/chqts/src/general_test/ |
D | basic_audio_test.cc | 97 const struct chreAudioSource& source) { in validateAudioSource() argument 99 if (!verifyStringWithLength(source.name, CHRE_AUDIO_SOURCE_NAME_MAX_SIZE)) { in validateAudioSource() 102 } else if (source.sampleRate > kMaxAudioSampleRate in validateAudioSource() 103 || source.sampleRate < kMinAudioSampleRate) { in validateAudioSource() 106 } else if (source.minBufferDuration < kMinBufferDuration in validateAudioSource() 107 || source.minBufferDuration > kMaxBufferDuration) { in validateAudioSource() 110 } else if (source.maxBufferDuration < kMinBufferDuration in validateAudioSource() 111 || source.maxBufferDuration > kMaxBufferDuration) { in validateAudioSource() 114 } else if (source.format != CHRE_AUDIO_DATA_FORMAT_8_BIT_U_LAW in validateAudioSource() 115 && source.format != CHRE_AUDIO_DATA_FORMAT_16_BIT_SIGNED_PCM) { in validateAudioSource() [all …]
|
/system/tools/aidl/tests/java_app/src/android/aidl/tests/generic/ |
D | Pair.java | 27 public Pair(Parcel source) { readFromParcel(source); } in Pair() argument 36 public void readFromParcel(Parcel source) { in readFromParcel() argument 37 mFirst = (A) source.readValue(null); in readFromParcel() 38 mSecond = (B) source.readValue(null); in readFromParcel() 42 public Pair createFromParcel(Parcel source) { return new Pair(source); }
|
/system/core/libsparse/ |
D | sparse_read.cpp | 175 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_raw_chunk() argument 188 ret = source->AddToSparseFile(s, len, block); in process_raw_chunk() 194 ret = source->GetCrc32(crc32, len); in process_raw_chunk() 199 source->Seek(len); in process_raw_chunk() 206 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_fill_chunk() argument 219 ret = source->ReadValue(&fill_val, sizeof(fill_val)); in process_fill_chunk() 247 SparseFileSource* source __unused, unsigned int blocks, in process_skip_chunk() 267 static int process_crc32_chunk(SparseFileSource* source, unsigned int chunk_size, uint32_t* crc32) { in process_crc32_chunk() argument 274 int ret = source->ReadValue(&file_crc32, sizeof(file_crc32)); in process_crc32_chunk() 286 static int process_chunk(struct sparse_file* s, SparseFileSource* source, unsigned int chunk_hdr_sz, in process_chunk() argument [all …]
|
/system/chre/apps/audio_stress_test/ |
D | audio_stress_test.cc | 105 struct chreAudioSource source; in discoverAudioHandle() local 106 for (uint32_t i = 0; !success && chreAudioGetSource(i, &source); i++) { in discoverAudioHandle() 108 source.name, source.sampleRate, in discoverAudioHandle() 109 chre::getChreAudioFormatString(source.format)); in discoverAudioHandle() 111 source.minBufferDuration, source.maxBufferDuration); in discoverAudioHandle() 113 if (source.sampleRate == kBufferSampleRate in discoverAudioHandle() 114 && source.minBufferDuration <= kBufferDuration.toRawNanoseconds() in discoverAudioHandle() 115 && source.maxBufferDuration >= kBufferDuration.toRawNanoseconds() in discoverAudioHandle() 116 && source.format == kBufferFormat) { in discoverAudioHandle()
|
/system/vold/fs/ |
D | F2fs.cpp | 44 status_t Check(const std::string& source) { in Check() argument 48 cmd.push_back(source); in Check() 54 status_t Mount(const std::string& source, const std::string& target) { in Mount() argument 55 const char* c_source = source.c_str(); in Mount() 61 PLOG(ERROR) << "Failed to mount " << source; in Mount() 65 PLOG(ERROR) << "Failed to mount read-only " << source; in Mount() 73 status_t Format(const std::string& source) { in Format() argument 97 cmd.push_back(source); in Format()
|
D | Exfat.cpp | 41 status_t Check(const std::string& source) { in Check() argument 45 cmd.push_back(source); in Check() 58 status_t Mount(const std::string& source, const std::string& target, int ownerUid, int ownerGid, in Mount() argument 64 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) { in Mount() 70 if (mount(source.c_str(), target.c_str(), "exfat", mountFlags, mountData.c_str()) == 0) { in Mount() 77 status_t Format(const std::string& source) { in Format() argument 82 cmd.push_back(source); in Format()
|
D | Ext4.h | 30 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, bool remount, 33 status_t Format(const std::string& source, unsigned long numSectors, const std::string& target); 34 status_t Resize(const std::string& source, unsigned long numSectors);
|
D | Ext4.cpp | 63 status_t Check(const std::string& source, const std::string& target) { in Check() argument 67 const char* c_source = source.c_str(); in Check() 126 status_t Mount(const std::string& source, const std::string& target, bool ro, bool remount, in Mount() argument 131 const char* c_source = source.c_str(); in Mount() 143 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO"; in Mount() 151 status_t Resize(const std::string& source, unsigned long numSectors) { in Resize() argument 155 cmd.push_back(source); in Resize() 161 status_t Format(const std::string& source, unsigned long numSectors, const std::string& target) { in Format() argument 205 cmd.push_back(source); in Format()
|
D | Vfat.cpp | 59 status_t Check(const std::string& source) { in Check() argument 68 cmd.push_back(source); in Check() 113 status_t Mount(const std::string& source, const std::string& target, bool ro, bool remount, in Mount() argument 118 const char* c_source = source.c_str(); in Mount() 134 LOG(ERROR) << source << " appears to be a read only filesystem - retrying mount RO"; in Mount() 155 status_t Format(const std::string& source, unsigned long numSectors) { in Format() argument 167 cmd.push_back(source); in Format()
|
D | F2fs.h | 30 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);
|
D | Exfat.h | 30 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);
|
D | Vfat.h | 30 status_t Check(const std::string& source); 31 status_t Mount(const std::string& source, const std::string& target, bool ro, bool remount, 33 status_t Format(const std::string& source, unsigned long numSectors);
|
/system/tools/aidl/tests/java_app/src/android/aidl/tests/ |
D | SimpleParcelable.java | 39 public void readFromParcel(Parcel source) { in readFromParcel() argument 40 mName = source.readString(); in readFromParcel() 41 mNumber = source.readInt(); in readFromParcel() 65 public SimpleParcelable createFromParcel(Parcel source) { 66 String name = source.readString(); 67 int number = source.readInt();
|
/system/update_engine/update_manager/ |
D | generic_variables_unittest.cc | 39 int source = 5; in TEST_F() local 40 PollCopyVariable<int> var("var", source); in TEST_F() 49 source = 42; in TEST_F() 60 int source = 5; in TEST_F() local 62 PollCopyVariable<int> var("var", source, &is_set); in TEST_F() 87 const CopyConstructorTestClass source; in TEST_F() local 88 ASSERT_FALSE(source.copied_); in TEST_F() 90 PollCopyVariable<CopyConstructorTestClass> var("var", source); in TEST_F() 100 int source = 5; in TEST_F() local 101 ConstCopyVariable<int> var("var", source); in TEST_F() [all …]
|
/system/extras/simpleperf/scripts/ |
D | annotate.py | 67 source = self.addr2line.get_addr_source(dso, addr) 68 if not source: 71 for (source_file, source_line, function_name) in source: 296 for source in sources: 297 if source.file: 298 self._add_file_period(source, period, used_file_dict) 300 if source.line: 301 self._add_line_period(source, period, used_line_dict) 304 for source in sources: 305 if source.file: [all …]
|
/system/apex/apexd/ |
D | apexd_private.cpp | 36 Result<void> BindMount(const std::string& target, const std::string& source) { in BindMount() argument 37 LOG(VERBOSE) << "Creating bind-mount for " << target << " for " << source; in BindMount() 86 LOG(VERBOSE) << "Bind-mounting " << source << " to " << target; in BindMount() 87 if (mount(source.c_str(), target.c_str(), nullptr, MS_BIND, nullptr) == 0) { in BindMount() 90 return ErrnoError() << "Could not bind-mount " << source << " to " << target; in BindMount()
|
/system/update_engine/payload_consumer/ |
D | file_descriptor_utils.cc | 38 bool CommonHashExtents(FileDescriptorPtr source, in CommonHashExtents() argument 51 TEST_AND_RETURN_FALSE(reader.Init(source, src_extents, block_size)); in CommonHashExtents() 79 bool CopyAndHashExtents(FileDescriptorPtr source, in CopyAndHashExtents() argument 90 CommonHashExtents(source, src_extents, &writer, block_size, hash_out)); in CopyAndHashExtents() 94 bool ReadAndHashExtents(FileDescriptorPtr source, in ReadAndHashExtents() argument 98 return CommonHashExtents(source, extents, nullptr, block_size, hash_out); in ReadAndHashExtents()
|
/system/chre/host/common/ |
D | fragmented_load_transaction.cc | 39 const std::vector<uint8_t>& source, size_t start, size_t size) { in getSubVector() argument 40 size_t end = std::min(source.size(), start + size); in getSubVector() 41 return (source.size() == 0) ? in getSubVector() 44 source.begin() + start, source.begin() + end); // [start, end) in getSubVector()
|
/system/hwservicemanager/ |
D | AccessControl.cpp | 95 bool AccessControl::checkPermission(const CallingContext& source, const char *targetContext, const … in checkPermission() argument 96 if (!source.sidPresent) { in checkPermission() 103 ad.pid = source.pid; in checkPermission() 104 ad.sid = source.sid.c_str(); in checkPermission() 107 allowed = (selinux_check_access(source.sid.c_str(), targetContext, "hwservice_manager", in checkPermission() 113 bool AccessControl::checkPermission(const CallingContext& source, const char *perm, const char *int… in checkPermission() argument 123 allowed = checkPermission(source, targetContext, perm, interface); in checkPermission()
|
/system/libufdt/tests/ |
D | README | 13 - Base device tree source. 23 - Additional device tree source. 30 - Additional device tree fragment source. 46 Suppose you are at the root directory of your Android source. 48 1. `source build/envsetup.sh`
|
/system/update_engine/ |
D | payload_state.h | 104 inline uint64_t GetCurrentBytesDownloaded(DownloadSource source) override { in GetCurrentBytesDownloaded() argument 105 return source < kNumDownloadSources ? current_bytes_downloaded_[source] : 0; in GetCurrentBytesDownloaded() 108 inline uint64_t GetTotalBytesDownloaded(DownloadSource source) override { in GetTotalBytesDownloaded() argument 109 return source < kNumDownloadSources ? total_bytes_downloaded_[source] : 0; in GetTotalBytesDownloaded() 339 std::string GetPrefsKey(const std::string& prefix, DownloadSource source); 345 void LoadCurrentBytesDownloaded(DownloadSource source); 349 void SetCurrentBytesDownloaded(DownloadSource source, 357 void LoadTotalBytesDownloaded(DownloadSource source); 361 void SetTotalBytesDownloaded(DownloadSource source,
|
D | dynamic_partition_control_android_unittest.cc | 99 uint32_t source() { return slots_.source; } in source() function in chromeos_update_engine::DynamicPartitionControlAndroidTest 104 return name + kSlotSuffixes[source()]; in S() 156 source(), in PreparePartitionsForUpdate() 304 LoadMetadataBuilder(GetSuperDevice(source()), source(), _)) in TEST_P() 347 SetMetadata(source(), in TEST_P() 357 source(), target(), {}, true, nullptr)); in TEST_P() 365 "system", source(), source(), &system_device)); in TEST_P() 371 "system", target(), source(), &system_device)); in TEST_P() 378 "bar", source(), source(), &bar_device)); in TEST_P() 383 "bar", target(), source(), &bar_device)); in TEST_P() [all …]
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | sniffer.cc | 43 Address source = packet.GetSourceAddress(); in IncomingPacket() local 45 bool match_source = device_to_sniff_ == source; in IncomingPacket() 52 source.ToString().c_str(), dest.ToString().c_str(), in IncomingPacket()
|