/packages/modules/Bluetooth/system/btif/avrcp/ |
D | avrcp_service.cc | 179 do_in_jni_thread(base::Bind(&MediaInterface::SendKeyEvent, in SendKeyEvent() 180 base::Unretained(wrapped_), key, state)); in SendKeyEvent() 185 do_in_main_thread(FROM_HERE, base::BindOnce(cb, data)); in GetSongInfo() 188 auto bound_cb = base::Bind(cb_lambda, info_cb); in GetSongInfo() 190 do_in_jni_thread(base::Bind(&MediaInterface::GetSongInfo, in GetSongInfo() 191 base::Unretained(wrapped_), bound_cb)); in GetSongInfo() 196 do_in_main_thread(FROM_HERE, base::BindOnce(cb, status)); in GetPlayStatus() 199 auto bound_cb = base::Bind(cb_lambda, status_cb); in GetPlayStatus() 201 do_in_jni_thread(base::Bind(&MediaInterface::GetPlayStatus, in GetPlayStatus() 202 base::Unretained(wrapped_), bound_cb)); in GetPlayStatus() [all …]
|
/packages/modules/NeuralNetworks/common/ |
D | LogTagTest.cpp | 36 ~LogTagTest() override { ::android::base::SetLogger(::android::base::LogdLogger()); } in ~LogTagTest() 44 android::base::SetLogger([](android::base::LogId /* logId */, in TEST_F() 45 android::base::LogSeverity /* logSeverity */, const char* tag, in TEST_F() 52 android::base::SetLogger([](android::base::LogId /* logId */, in TEST_F() 53 android::base::LogSeverity /* logSeverity */, const char* tag, in TEST_F() 62 android::base::SetLogger( in TEST_F() 63 [](android::base::LogId /* logId */, android::base::LogSeverity logSeverity, in TEST_F() 65 const char* /* message */) { EXPECT_EQ(logSeverity, ::android::base::ERROR); }); in TEST_F() 71 android::base::SetLogger([](android::base::LogId /* logId */, in TEST_F() 72 android::base::LogSeverity /* logSeverity */, const char* /* tag */, in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/include/ |
D | abstract_message_loop.h | 43 class AbstractMessageLoop : public base::SingleThreadTaskExecutor { 45 static scoped_refptr<base::SingleThreadTaskRunner> current_task_runner() { in current_task_runner() 46 return base::SingleThreadTaskRunner::GetCurrentDefault(); in current_task_runner() 50 class AbstractTestMessageLoop : public base::test::TaskEnvironment { 52 static scoped_refptr<base::SingleThreadTaskRunner> current_task_runner() { in current_task_runner() 53 return base::SingleThreadTaskRunner::GetCurrentDefault(); in current_task_runner() 59 base::AbstractTestMessageLoop var { \ 60 base::test::TaskEnvironment::ThreadingMode::MAIN_THREAD_ONLY \ 63 inline void set_message_loop_type_IO(base::Thread::Options& options) { in set_message_loop_type_IO() 64 options.message_pump_type = base::MessagePumpType::IO; in set_message_loop_type_IO() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.h | 96 virtual android::base::Result<void> init() = 0; 101 virtual android::base::Result<void> onSystemStartup() = 0; 105 virtual android::base::Result<void> onBoottimeCollection( 111 virtual android::base::Result<void> onWakeUpCollection( 116 virtual android::base::Result<void> onPeriodicCollection( 122 virtual android::base::Result<void> onUserSwitchCollection( 131 virtual android::base::Result<void> onCustomCollection( 141 virtual android::base::Result<void> onPeriodicMonitor( 145 virtual android::base::Result<void> onDump(int fd) const = 0; 147 virtual android::base::Result<void> onDumpProto( [all …]
|
D | IoOveruseMonitor.h | 80 virtual android::base::Result<void> updateResourceOveruseConfigurations( 84 virtual android::base::Result<void> getResourceOveruseConfigurations( 88 virtual android::base::Result<void> onTodayIoUsageStatsFetched( 94 virtual android::base::Result<void> addIoOveruseListener( 98 virtual android::base::Result<void> removeIoOveruseListener( 104 virtual android::base::Result<void> getIoOveruseStats( 107 virtual android::base::Result<void> resetIoOveruseStats( 132 android::base::Result<void> onSystemStartup() { in onSystemStartup() 137 android::base::Result<void> onBoottimeCollection( in onBoottimeCollection() 147 android::base::Result<void> onWakeUpCollection( in onWakeUpCollection() [all …]
|
/packages/modules/Bluetooth/system/common/ |
D | base_bind_unittest.cc | 61 base::Callback<void()> cb0 = base::Bind(&func); in TEST_F() 68 base::Callback<void()> cb1 = base::Bind(&func_a, 1); in TEST_F() 76 base::Callback<void()> cb2 = base::Bind(&func_ab, 1, 2); in TEST_F() 85 base::Callback<void()> cb3 = base::Bind(&func_abc, 1, 2, 3); in TEST_F() 93 base::Callback<void()> cb0 = base::Bind(&func); in TEST_F() 100 base::Callback<void()> cb1 = base::Bind(&func_a, 1); in TEST_F() 108 base::Callback<void(int)> cb2 = base::Bind(&func_ab, 1); in TEST_F() 117 base::Callback<void(int, int)> cb3 = base::Bind(&func_abc, 1); in TEST_F()
|
D | message_loop_thread_unittest.cc | 39 void GetThreadId(std::promise<base::PlatformThreadId> thread_id_promise) { in GetThreadId() 40 thread_id_promise.set_value(base::PlatformThread::CurrentId()); in GetThreadId() 86 base::WeakPtr<MessageLoopThread> message_loop_thread_ptr; in TEST_F() 110 base::PlatformThread::CurrentId()); in TEST_F() 123 FROM_HERE, base::BindOnce(&MessageLoopThreadTest::ShouldNotHappen, in TEST_F() 124 base::Unretained(this)))); in TEST_F() 133 FROM_HERE, base::BindOnce(&MessageLoopThreadTest::ShouldNotHappen, in TEST_F() 134 base::Unretained(this)))); in TEST_F() 146 base::BindOnce(&MessageLoopThreadTest::GetName, base::Unretained(this), in TEST_F() 157 base::PlatformThreadId thread_id = message_loop_thread.GetThreadId(); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/topshim/gatt/ |
D | gatt_ble_advertiser_shim.cc | 73 …adv_intf_->RegisterAdvertiser(base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(… in RegisterAdvertiser() 82 adv_id, base::Bind(&BleAdvertiserIntf::OnGetAddressCallback, base::Unretained(this), adv_id)); in GetOwnAddress() 89 base::Bind(&BleAdvertiserIntf::OnParametersCallback, base::Unretained(this), adv_id)); in SetParameters() 100 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id)); in SetData() 107 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id), in Enable() 110 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id)); in Enable() 125 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id), in StartAdvertising() 130 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this), adv_id)); in StartAdvertising() 150 base::Bind(&BleAdvertiserIntf::OnIdTxPowerStatusCallback, base::Unretained(this)), in StartAdvertisingSet() 158 base::Bind(&BleAdvertiserIntf::OnIdStatusCallback, base::Unretained(this))); in StartAdvertisingSet() [all …]
|
/packages/modules/Bluetooth/system/build/dpkg/libchrome/debian/patches/ |
D | 0001-Add-missing-includes.patch | 1 diff --git a/libchrome/base/hash/md5_nacl.cc b/libchrome/base/hash/md5_nacl.cc 3 --- a/libchrome/base/hash/md5_nacl.cc 4 +++ b/libchrome/base/hash/md5_nacl.cc 11 #include "base/hash/md5.h" 23 #include <base/logging.h> 26 diff --git a/libchrome/base/functional/function_ref.h b/libchrome/base/functional/function_ref.h 28 --- a/libchrome/base/functional/function_ref.h 29 +++ b/libchrome/base/functional/function_ref.h 39 diff --git a/libchrome/base/memory/ref_counted.h b/libchrome/base/memory/ref_counted.h 41 --- a/libchrome/base/memory/ref_counted.h [all …]
|
/packages/modules/Bluetooth/system/bta/dm/ |
D | bta_dm_api.cc | 63 base::BindOnce(base::IgnoreResult(BTM_EnableTestMode))); in BTA_EnableTestMode() 71 do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_set_dev_name, name)); in BTA_DmSetDeviceName() 188 base::BindOnce(bta_dm_ble_set_conn_params, bd_addr, min_conn_int, in BTA_DmSetBlePrefConnParams() 216 base::BindOnce(bta_dm_ble_update_conn_params, bd_addr, min_int, max_int, in BTA_DmBleUpdateConnectionParams() 235 do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_ble_config_local_privacy, in BTA_DmBleConfigLocalPrivacy() 253 base::BindOnce(bta_dm_ble_get_energy_info, p_cmpl_cback)); in BTA_DmBleGetEnergyInfo() 259 base::BindOnce(bta_dm_ble_set_data_length, remote_device)); in BTA_DmBleRequestMaxTxDataLength() 279 do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_ble_scan, start, in BTA_DmBleScan() 298 do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_ble_csis_observe, observe, in BTA_DmBleCsisObserve() 313 do_in_main_thread(FROM_HERE, base::BindOnce(bta_dm_clear_event_filter)); in BTA_DmClearEventFilter() [all …]
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EditTextVariations.java | 432 String base = "unknown(class=" + clazz + " variation=" + variation + " flag=0x" in inputTypeToString() local 439 base = "text"; in inputTypeToString() 442 base = "textUri"; in inputTypeToString() 445 base = "textEmailAddress"; in inputTypeToString() 448 base = "textEmailSubject"; in inputTypeToString() 451 base = "textShortMessage"; in inputTypeToString() 454 base = "textLongMessage"; in inputTypeToString() 457 base = "textPersonName"; in inputTypeToString() 460 base = "textPostalAddress"; in inputTypeToString() 463 base = "textPassword"; in inputTypeToString() [all …]
|
/packages/services/Car/car_product/app_overlays/car-ui-customizations/ |
D | Android.bp | 31 base: "GoogleCarUiBase", 38 base: "GoogleCarUiBase", 45 base: "GoogleCarUiBase", 52 base: "GoogleCarUiBase", 59 base: "GoogleCarUiBase", 66 base: "GoogleCarUiBase", 73 base: "GoogleCarUiBase", 80 base: "GoogleCarUiBase", 87 base: "GoogleCarUiBase", 94 base: "GoogleCarUiBase", [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_stack_hcic_hciblecmds.h | 47 base::OnceCallback<void(uint8_t*, uint16_t)>)> 50 base::OnceCallback<void(uint8_t*, uint16_t)> /* cb */) {}}; 53 base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator() 64 std::function<void(base::OnceCallback<void(uint8_t*, uint16_t)>)> body{ 65 [](base::OnceCallback<void(uint8_t*, uint16_t)>) {}}; 66 void operator()(base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator() 78 base::OnceCallback<void(uint8_t*, uint16_t)>)> 81 base::OnceCallback<void(uint8_t*, uint16_t)> /* cb */) {}}; 84 base::OnceCallback<void(uint8_t*, uint16_t)> cb) { in operator() 163 std::function<void(base::OnceCallback<void(uint8_t*, uint16_t)>)> body{ [all …]
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/ |
D | MemBlockTest.cpp | 38 slice.base()[0] = ARBITRARY_VALUE; in makeArbitraryMemBlock() 45 EXPECT_EQ(0U, slice.base()[0]); in checkAllZeros() 52 EXPECT_NE(nullptr, slice.base()); in checkArbitraryMemBlock() 54 EXPECT_EQ(ARBITRARY_VALUE, slice.base()[0]); in checkArbitraryMemBlock() 59 EXPECT_EQ('h', dest.base()[0]); in checkHelloMello() 60 EXPECT_EQ('e', dest.base()[1]); in checkHelloMello() 61 EXPECT_EQ('l', dest.base()[2]); in checkHelloMello() 62 EXPECT_EQ('l', dest.base()[3]); in checkHelloMello() 63 EXPECT_EQ('o', dest.base()[4]); in checkHelloMello() 65 src.base()[0] = 'm'; in checkHelloMello() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/ |
D | RelevanceUtilsTests.java | 38 final long base = 1_000_000L; // any given point in time in testComputeRelevanceForTargetDate() local 41 base + 1000L * dayInMillis, base)); in testComputeRelevanceForTargetDate() 43 assertEquals(0, RelevanceUtils.computeRelevanceForTargetDate(base - 1, base)); in testComputeRelevanceForTargetDate() 46 assertTrue(RelevanceUtils.computeRelevanceForTargetDate(base + 100 * dayInMillis, base) in testComputeRelevanceForTargetDate() 47 < RelevanceUtils.computeRelevanceForTargetDate(base + 150 * dayInMillis, base)); in testComputeRelevanceForTargetDate() 51 final int relevanceAtExpiry = RelevanceUtils.computeRelevanceForTargetDate(base, base); in testComputeRelevanceForTargetDate() 53 RelevanceUtils.computeRelevanceForTargetDate(base + 50 * dayInMillis, base); in testComputeRelevanceForTargetDate() 55 RelevanceUtils.computeRelevanceForTargetDate(base + 100 * dayInMillis, base); in testComputeRelevanceForTargetDate() 57 RelevanceUtils.computeRelevanceForTargetDate(base + 150 * dayInMillis, base); in testComputeRelevanceForTargetDate()
|
/packages/modules/Connectivity/staticlibs/netd/libnetdutils/include/netdutils/ |
D | Slice.h | 46 Slice(void* base, void* limit) : mBase(toUint8(base)), mLimit(toUint8(limit)) {} in Slice() argument 49 Slice(void* base, size_t size) : Slice(base, toUint8(base) + size) {} in Slice() argument 52 uint8_t* base() const { return mBase; } in base() function 58 size_t size() const { return limit() - base(); } in size() 61 bool empty() const { return base() == limit(); } in empty() 99 return {{s.base(), s.base() + tmp}, {s.base() + tmp, s.limit()}}; in split() 115 memcpy(dst.base(), src.base(), min); in copy() 142 return (lhs.base() == rhs.base()) && (lhs.limit() == rhs.limit()); 154 uint8_t* match = (uint8_t*)memchr(s.base(), c, s.size()); in findFirstMatching() 156 return drop(s, match - s.base()); in findFirstMatching()
|
/packages/modules/Bluetooth/system/bta/ag/ |
D | bta_ag_api.cc | 72 do_in_main_thread(FROM_HERE, base::BindOnce(&bta_ag_api_enable, p_cback)); in BTA_AgEnable() 87 do_in_main_thread(FROM_HERE, base::BindOnce(&bta_ag_api_disable)); in BTA_AgDisable() 103 do_in_main_thread(FROM_HERE, base::BindOnce(&bta_ag_api_register, services, in BTA_AgRegister() 118 do_in_main_thread(FROM_HERE, base::BindOnce(&bta_ag_sm_execute_by_handle, in BTA_AgDeregister() 140 base::BindOnce(&bta_ag_sm_execute_by_handle, handle, in BTA_AgOpen() 157 base::BindOnce(&bta_ag_sm_execute_by_handle, handle, in BTA_AgClose() 179 base::BindOnce(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioOpen() 197 base::BindOnce(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioClose() 216 base::BindOnce(&bta_ag_api_result, handle, result, data)); in BTA_AgResult() 235 base::BindOnce(&bta_ag_sm_execute_by_handle, handle, in BTA_AgSetCodec() [all …]
|
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.h | 37 TunForwarder(base::unique_fd tunFd); 45 static base::unique_fd createTun(const std::string& ifname); 51 static base::Result<v4pair> makePair(const std::array<std::string, 2>& addrs); 64 static base::Result<v6pair> makePair(const std::array<std::string, 2>& addrs); 80 base::Result<void> validatePacket(netdutils::Slice tunPacket) const; 81 base::Result<void> validateIpv4Packet(netdutils::Slice ipv4Packet) const; 82 base::Result<void> validateIpv6Packet(netdutils::Slice ipv6Packet) const; 83 base::Result<void> validateUdpPacket(netdutils::Slice udpPacket) const; 84 base::Result<void> validateTcpPacket(netdutils::Slice tcpPacket) const; 88 base::Result<void> translatePacket(netdutils::Slice tunPacket) const; [all …]
|
/packages/modules/Connectivity/staticlibs/native/bpf_headers/include/bpf/ |
D | BpfRingbuf.h | 64 base::Result<void> Init(const char* path); 67 base::Result<int> ConsumeAll( 72 static Ptr pointerAddBytes(void* base, ssize_t offset_bytes) { in pointerAddBytes() argument 73 return reinterpret_cast<Ptr>(reinterpret_cast<char*>(base) + offset_bytes); in pointerAddBytes() 88 android::base::unique_fd mRingFd; 139 static base::Result<std::unique_ptr<BpfRingbuf<Value>>> Create( 145 base::Result<int> ConsumeAll(const MessageCallback& callback); 153 inline base::Result<void> BpfRingbufBase::Init(const char* path) { in Init() 156 return android::base::ErrnoError() in Init() 163 return android::base::ErrnoError() in Init() [all …]
|
/packages/modules/adb/ |
D | adb_utils.cpp | 91 size_t base = 0; in escape_arg() local 93 size_t found = s.find('\'', base); in escape_arg() 94 result.append(s, base, found - base); in escape_arg() 97 base = found + 1; in escape_arg() 129 const std::string parent(android::base::Dirname(path)); in mkdirs() 173 android::base::StringAppendF(&line, "%02x", p[i]); in dump_hex() 218 return android::base::StringPrintf("[%s] arg0=%s arg1=%s (len=%d) ", cmd, arg0, arg1, len); in dump_header() 232 return android::base::StringPrintf("%s: %s", msg, strerror(errno)); in perror_str() 254 if (android::base::StartsWith(source, "tcp:")) { in forward_targets_are_valid() 257 if (!android::base::ParseInt(&source[4], &port) || port < 0) { in forward_targets_are_valid() [all …]
|
D | socket_spec.cpp | 39 using android::base::ConsumePrefix; 40 using android::base::StringPrintf; 91 if (android::base::ParseInt(&spec[4], &port_value)) { in parse_tcp_socket_spec() 104 if (!android::base::ParseNetAddress(addr, &hostname_value, &port_value, serial, error)) { in parse_tcp_socket_spec() 129 std::vector<std::string> fragments = android::base::Split(spec_str, ":"); in get_host_socket_spec_port() 134 if (!android::base::ParseInt(fragments[1], &port)) { in get_host_socket_spec_port() 218 *serial = android::base::StringPrintf("%s.%s", in socket_spec_connect() 236 android::base::ParseInt(keepalive_env, &keepalive_interval, 0); in socket_spec_connect() 250 std::vector<std::string> fragments = android::base::Split(spec_str, ":"); in socket_spec_connect() 253 *error = android::base::StringPrintf("expected vsock:cid or vsock:cid:port in '%s'", in socket_spec_connect() [all …]
|
/packages/modules/Bluetooth/system/gd/discovery/device/ |
D | bt_property.cc | 58 return base::StringPrintf("Unknown [%d]", (int)type); in bt_property_type_text() 64 return base::StringPrintf( in bt_property_text() 69 return base::StringPrintf( in bt_property_text() 79 return base::StringPrintf( in bt_property_text() 83 return base::StringPrintf( in bt_property_text() 89 return base::StringPrintf( in bt_property_text() 95 return base::StringPrintf( in bt_property_text() 103 return base::StringPrintf( in bt_property_text() 114 return base::StringPrintf( in bt_property_text() 118 return base::StringPrintf( in bt_property_text() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | IsolatedContext.java | 55 public IsolatedContext(Context base, String tag, boolean asFuseThread) { in IsolatedContext() argument 56 this(base, tag, asFuseThread, base.getUser()); in IsolatedContext() 59 public IsolatedContext(Context base, String tag, boolean asFuseThread, in IsolatedContext() argument 61 this(base, tag, asFuseThread, userHandle, new TestConfigStore()); in IsolatedContext() 64 public IsolatedContext(Context base, String tag, boolean asFuseThread, in IsolatedContext() argument 66 super(base); in IsolatedContext() 67 mDir = new File(base.getFilesDir(), tag); in IsolatedContext() 75 attachInfoAndAddProvider(base, mMediaProvider, MediaStore.AUTHORITY); in IsolatedContext() 78 attachInfoAndAddProvider(base, documentsProvider, MediaDocumentsProvider.AUTHORITY); in IsolatedContext() 88 attachInfoAndAddProvider(base, photoPickerProvider, in IsolatedContext() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | NetworkDetail.java | 531 …private NetworkDetail(NetworkDetail base, Map<Constants.ANQPElementType, ANQPElement> anqpElements… in NetworkDetail() argument 532 mSSID = base.mSSID; in NetworkDetail() 533 mIsHiddenSsid = base.mIsHiddenSsid; in NetworkDetail() 534 mBSSID = base.mBSSID; in NetworkDetail() 535 mHESSID = base.mHESSID; in NetworkDetail() 536 mStationCount = base.mStationCount; in NetworkDetail() 537 mChannelUtilization = base.mChannelUtilization; in NetworkDetail() 538 mCapacity = base.mCapacity; in NetworkDetail() 539 mAnt = base.mAnt; in NetworkDetail() 540 mInternet = base.mInternet; in NetworkDetail() [all …]
|
/packages/modules/Bluetooth/system/btif/src/ |
D | bluetooth.cc | 519 do_in_main_thread(FROM_HERE, base::BindOnce(btif_get_adapter_properties)); in get_adapter_properties() 529 do_in_main_thread(FROM_HERE, base::BindOnce(btif_get_adapter_property, type)); in get_adapter_property() 546 do_in_main_thread(FROM_HERE, base::BindOnce( in set_adapter_property() 558 do_in_main_thread(FROM_HERE, base::BindOnce(btif_get_remote_device_properties, in get_remote_device_properties() 567 do_in_main_thread(FROM_HERE, base::BindOnce(btif_get_remote_device_property, in get_remote_device_property() 577 FROM_HERE, base::BindOnce( in set_remote_device_property() 589 do_in_main_thread(FROM_HERE, base::BindOnce(btif_dm_get_remote_services, in get_remote_services() 597 do_in_main_thread(FROM_HERE, base::BindOnce(btif_dm_start_discovery)); in start_discovery() 604 do_in_main_thread(FROM_HERE, base::BindOnce(btif_dm_cancel_discovery)); in cancel_discovery() 613 base::BindOnce(btif_dm_create_bond, *bd_addr, transport)); in create_bond() [all …]
|