/system/bt/vendor_libs/test_vendor_lib/test/ |
D | security_manager_unittest.cc | 48 SecurityManager sm(3); in TEST_F() local 55 EXPECT_EQ(1, sm.WriteKey(btaddr1, kTestKey)); in TEST_F() 56 EXPECT_EQ(1, sm.WriteKey(btaddr2, kTestKey)); in TEST_F() 57 EXPECT_EQ(1, sm.WriteKey(btaddr3, kTestKey)); in TEST_F() 59 EXPECT_EQ(0, sm.WriteKey(btaddr4, kTestKey)); in TEST_F() 66 SecurityManager sm(3); in TEST_F() local 72 sm.WriteKey(btaddr1, kTestKey); in TEST_F() 73 sm.WriteKey(btaddr2, kTestKey); in TEST_F() 75 EXPECT_EQ(1, sm.ReadKey(btaddr1)); in TEST_F() 76 EXPECT_EQ(1, sm.ReadKey(btaddr2)); in TEST_F() [all …]
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_test.cpp | 82 std::unique_ptr<SnapshotManager> sm; variable 107 ASSERT_TRUE(sm->BeginUpdate()); in SetUp() 120 ASSERT_TRUE(sm->EnsureImageManager()); in InitializeState() 121 image_manager_ = sm->image_manager(); in InitializeState() 125 sm->set_use_first_stage_snapuserd(false); in InitializeState() 142 auto status_file = sm->GetSnapshotStatusFilePath(snapshot); in CleanupTestArtifacts() 157 if (sm->GetUpdateState() != UpdateState::None) { in CleanupTestArtifacts() 158 auto state_file = sm->GetStateFilePath(); in CleanupTestArtifacts() 164 lock_ = sm->LockExclusive(); in AcquireLock() 240 auto result = sm->OpenSnapshotWriter(params, {old_partition}); in MapUpdateSnapshot() [all …]
|
/system/extras/tests/kernel.config/ |
D | scrape_mmap_addr.cpp | 23 std::smatch sm; in main() local 24 if (std::regex_match (ln,sm, reg)) { in main() 25 if (std::stoi(sm[2]) == 0) { in main() 26 std::cout << sm[1]; in main()
|
/system/memory/libmemunreachable/tests/ |
D | Binder_test.cpp | 100 sp<IServiceManager> sm = defaultServiceManager(); in Service() local 101 if (sm == nullptr) { in Service() 106 if (sm->addService(service_name, new BinderService()) != OK) { in Service() 134 sp<IServiceManager> sm = defaultServiceManager(); in TEST_F() local 135 ASSERT_TRUE(sm != nullptr); in TEST_F() 141 sp<IBinder> service = sm->getService(service_name); in TEST_F()
|
/system/gsid/ |
D | libgsid.cpp | 28 auto sm = android::defaultServiceManager(); in GetGsiService() local 30 android::sp<android::IBinder> res = sm->waitForService(name); in GetGsiService()
|
/system/security/identity/ |
D | main.cpp | 49 sp<IServiceManager> sm = ::android::defaultServiceManager(); in main() local 52 auto ret = sm->addService(String16("android.security.identity"), factory); in main()
|
/system/security/keystore/ |
D | keystore_get.cpp | 27 sp<IServiceManager> sm = defaultServiceManager(); in keystore_get() local 28 sp<IBinder> binder = sm->getService(String16("android.security.keystore")); in keystore_get()
|
/system/bt/common/ |
D | state_machine_unittest.cc | 46 StateZero(StateMachine& sm) in StateZero() argument 47 : State(sm, kStateZero), in StateZero() 75 StateOne(StateMachine& sm) in StateOne() argument 76 : State(sm, kStateOne), in StateOne() 104 StateTwo(StateMachine& sm) in StateTwo() argument 105 : State(sm, kStateTwo), in StateTwo()
|
D | state_machine.h | 48 State(StateMachine& sm, int state_id) : sm_(sm), state_id_(state_id) {} in State() argument
|
/system/connectivity/wificond/ |
D | main.cpp | 93 android::sp<android::IServiceManager> sm = android::defaultServiceManager(); in RegisterServiceOrCrash() local 94 CHECK_EQ(sm != NULL, true) << "Could not obtain IServiceManager"; in RegisterServiceOrCrash() 96 CHECK_EQ(sm->addService(android::String16(kServiceName), service), in RegisterServiceOrCrash()
|
/system/core/init/ |
D | snapuserd_transition.cpp | 150 SnapuserdSelinuxHelper::SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid) in SnapuserdSelinuxHelper() argument 151 : sm_(std::move(sm)), old_pid_(old_pid) { in SnapuserdSelinuxHelper() 282 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateIfNeeded() local 283 if (!sm) { in CreateIfNeeded() 286 return std::make_unique<SnapuserdSelinuxHelper>(std::move(sm), old_pid.value()); in CreateIfNeeded()
|
D | first_stage_mount.cpp | 94 bool CreateSnapshotPartitions(android::snapshot::SnapshotManager* sm); 365 auto sm = SnapshotManager::NewForFirstStageMount(); in CreateLogicalPartitions() local 366 if (!sm) { in CreateLogicalPartitions() 369 if (sm->NeedSnapshotsInFirstStageMount()) { in CreateLogicalPartitions() 370 return CreateSnapshotPartitions(sm.get()); in CreateLogicalPartitions() 385 bool FirstStageMount::CreateSnapshotPartitions(SnapshotManager* sm) { in CreateSnapshotPartitions() argument 392 use_snapuserd_ = sm->IsSnapuserdRequired(); in CreateSnapshotPartitions() 397 sm->SetUeventRegenCallback([this](const std::string& device) -> bool { in CreateSnapshotPartitions() 406 if (!sm->CreateLogicalAndSnapshotPartitions(super_path_)) { in CreateSnapshotPartitions()
|
D | snapuserd_transition.h | 39 SnapuserdSelinuxHelper(std::unique_ptr<SnapshotManager>&& sm, pid_t old_pid);
|
/system/libhidl/transport/ |
D | ServiceManagement.cpp | 564 auto sm = defaultServiceManager1_2(); in getAllHalInstanceNames() local 565 sm->listManifestByInterface(descriptor, [&](const auto& instances) { in getAllHalInstanceNames() 586 const sp<IServiceManager1_1>& sm) : mInterfaceName(interface), in Waiter() 587 mInstanceName(instanceName), mSm(sm) { in Waiter() 744 sp<IServiceManager1_1> sm; in getRawServiceInternal() local 749 sm = defaultServiceManager1_1(); in getRawServiceInternal() 750 if (sm == nullptr) { in getRawServiceInternal() 755 Return<Transport> transportRet = sm->getTransport(descriptor, instance); in getRawServiceInternal() 783 waiter = new Waiter(descriptor, instance, sm); in getRawServiceInternal() 788 Return<sp<IBase>> ret = sm->get(descriptor, instance); in getRawServiceInternal() [all …]
|
/system/extras/tests/binder/benchmarks/ |
D | binderAddInts.cpp | 92 sp<IServiceManager> sm = defaultServiceManager(); in server() local 93 if ((rv = sm->addService(serviceName, in server() 108 sp<IServiceManager> sm = defaultServiceManager(); in BM_addInts() local 116 binder = sm->getService(serviceName); in BM_addInts()
|
/system/core/storaged/ |
D | storaged_service.cpp | 213 sp<IServiceManager> sm = defaultServiceManager(); in get_storaged_pri_service() local 214 if (sm == NULL) return NULL; in get_storaged_pri_service() 216 sp<IBinder> binder = sm->getService(String16("storaged_pri")); in get_storaged_pri_service()
|
D | storaged_uid_monitor.cpp | 122 sp<IServiceManager> sm = defaultServiceManager(); in get_uid_names() local 123 if (sm == NULL) { in get_uid_names() 128 sp<IBinder> binder = sm->getService(String16("package_native")); in get_uid_names()
|
/system/netd/tests/ |
D | TestUnsolService.cpp | 41 sp<IServiceManager> sm(defaultServiceManager()); in start() local 44 const status_t ret = sm->addService(String16(getServiceName()), service, false, in start()
|
/system/vold/ |
D | vdc.cpp | 47 auto sm = android::defaultServiceManager(); in getServiceAggressive() local 50 res = sm->checkService(name); in getServiceAggressive()
|
/system/security/ondevice-signing/ |
D | KeystoreKey.cpp | 148 sp<IServiceManager> sm = defaultServiceManager(); in initialize() local 149 if (sm == nullptr) { in initialize() 152 auto service = sm->getService(String16("android.system.keystore2.IKeystoreService/default")); in initialize()
|
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 167 sp<IServiceManager> sm = defaultServiceManager(); in dfs_poke_binder() local 168 Vector<String16> services = sm->listServices(); in dfs_poke_binder() 170 sp<IBinder> obj = sm->checkService(services[i]); in dfs_poke_binder()
|
/system/core/fastboot/fuzzy_fastboot/ |
D | main.cpp | 466 std::smatch sm; in TEST_F() local 468 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F() 469 std::string part_base(sm[1]); in TEST_F() 470 std::string slot(sm[2]); in TEST_F() 739 std::smatch sm; in TEST_F() local 741 if (std::regex_match(part, sm, reg)) { // This partition has slots in TEST_F() 742 std::string part_base(sm[1]); in TEST_F() 1026 std::smatch sm; in TEST_P() local 1027 std::regex_match(resp, sm, GetParam().second.regex); in TEST_P() 1028 EXPECT_FALSE(sm.empty()) << "The regex did not match"; in TEST_P() [all …]
|
/system/bt/btif/src/ |
D | btif_av.cc | 135 StateIdle(BtifAvStateMachine& sm) in StateIdle() argument 136 : State(sm, kStateIdle), peer_(sm.Peer()) {} in StateIdle() 147 StateOpening(BtifAvStateMachine& sm) in StateOpening() argument 148 : State(sm, kStateOpening), peer_(sm.Peer()) {} in StateOpening() 159 StateOpened(BtifAvStateMachine& sm) in StateOpened() argument 160 : State(sm, kStateOpened), peer_(sm.Peer()) {} in StateOpened() 171 StateStarted(BtifAvStateMachine& sm) in StateStarted() argument 172 : State(sm, kStateStarted), peer_(sm.Peer()) {} in StateStarted() 183 StateClosing(BtifAvStateMachine& sm) in StateClosing() argument 184 : State(sm, kStateClosing), peer_(sm.Peer()) {} in StateClosing()
|
/system/core/fastboot/ |
D | fastboot_driver.cpp | 173 std::smatch sm; in Partitions() local 176 if (std::regex_match(s, sm, reg)) { in Partitions() 177 std::string m1(sm[1]); in Partitions() 178 std::string m2(sm[2]); in Partitions()
|
/system/core/fs_mgr/ |
D | fs_mgr_remount.cpp | 114 if (auto sm = android::defaultServiceManager()) { in GetVold() local 115 if (auto binder = sm->getService(android::String16("vold"))) { in GetVold()
|