/packages/modules/StatsD/statsd/tests/ |
D | UidMap_test.cpp | 69 vector<String16> apps; in TEST() 70 vector<String16> versionStrings; in TEST() 71 vector<String16> installers; in TEST() 75 versionStrings.push_back(String16("v1")); in TEST() 76 versionStrings.push_back(String16("v1")); in TEST() 77 installers.push_back(String16("")); in TEST() 78 installers.push_back(String16("")); in TEST() 79 apps.push_back(String16(kApp1.c_str())); in TEST() 80 apps.push_back(String16(kApp2.c_str())); in TEST() 101 vector<String16> apps; in TEST() [all …]
|
D | LogEntryMatcher_test.cpp | 209 {android::String16("v1"), android::String16("v1"), android::String16("v2"), in TEST() 210 android::String16("v1"), android::String16("v2")}, in TEST() 211 {android::String16("pkg0"), android::String16("pkg1"), android::String16("pkg1"), in TEST() 212 android::String16("Pkg2"), android::String16("PkG3")} /* package name list */, in TEST() 213 {android::String16(""), android::String16(""), android::String16(""), in TEST() 214 android::String16(""), android::String16("")}); in TEST() 362 {android::String16("v1"), android::String16("v1"), android::String16("v2"), in TEST() 363 android::String16("v1"), android::String16("v2")}, in TEST() 364 {android::String16("pkg0"), android::String16("pkg1"), android::String16("pkg1"), in TEST() 365 android::String16("Pkg2"), android::String16("PkG3")} /* package name list */, in TEST() [all …]
|
D | StatsLogProcessor_test.cpp | 165 m->updateMap(1, {1, 2}, {1, 2}, {String16("v1"), String16("v2")}, in TEST() 166 {String16("p1"), String16("p2")}, {String16(""), String16("")}); in TEST() 196 m->updateMap(1, {1, 2}, {1, 2}, {String16("v1"), String16("v2")}, in TEST() 197 {String16("p1"), String16("p2")}, {String16(""), String16("")}); in TEST() 331 m->updateMap(1, {1, 2}, {1, 2}, {String16("v1"), String16("v2")}, in TEST() 332 {String16("p1"), String16("p2")}, {String16(""), String16("")}); in TEST()
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | PartialBucket_e2e_test.cpp | 144 service->mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2, String16("v2"), in TEST() 145 String16("")); in TEST() 159 service->mUidMap->updateMap(start, {1}, {1}, {String16("v1")}, {String16(kApp1.c_str())}, in TEST() 160 {String16("")}); in TEST() 164 service->mUidMap->updateApp(start + 2, String16(kApp1.c_str()), 1, 2, String16("v2"), in TEST() 165 String16("")); in TEST() 193 service->mUidMap->updateMap(start, {1}, {1}, {String16("v1")}, {String16(kApp1.c_str())}, in TEST() 194 {String16("")}); in TEST() 198 service->mUidMap->removeApp(start + 2, String16(kApp1.c_str()), 1); in TEST() 256 service->mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1, String16("v1"), String16("")); in TEST() [all …]
|
D | Attribution_e2e_test.cpp | 110 {String16("v1"), String16("v1"), String16("v2"), String16("v2")}, in TEST() 111 {String16("com.android.gmscore"), String16("com.android.gmscore"), String16("app1"), in TEST() 112 String16("APP3")}, in TEST() 113 {String16(""), String16(""), String16(""), String16("")}); in TEST() 223 {String16("v1"), String16("v1"), String16("v2"), String16("v2")}, in TEST() 224 {String16("com.android.gmscore"), String16("com.android.gmscore"), String16("app1"), in TEST() 225 String16("APP3")}, in TEST() 226 {String16(""), String16(""), String16(""), String16("")}); in TEST()
|
D | ConfigUpdate_e2e_ab_test.cpp | 64 vector<String16> apps({String16("app1")}); in TEST_P() 65 vector<String16> versionStrings({String16("v1")}); in TEST_P() 66 vector<String16> installers({String16("installer1")}); in TEST_P() 106 vector<String16> apps({String16("app1")}); in TEST_P() 107 vector<String16> versionStrings({String16("v1")}); in TEST_P() 108 vector<String16> installers({String16("installer1")}); in TEST_P()
|
D | Anomaly_duration_sum_e2e_test.cpp | 434 service->mUidMap->updateMap(bucketStartTimeNs, {1}, {1}, {String16("v1")}, in TEST() 435 {String16("randomApp")}, {String16("")}); in TEST() 470 service->mUidMap->updateApp(appUpgradeTimeNs, String16("randomApp"), 1, 2, String16("v2"), in TEST() 471 String16("")); in TEST()
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | WatchdogPerfServiceTest.cpp | 43 using ::android::String16; 306 Vector<String16> args; in TEST() 307 args.push_back(String16(kStartCustomCollectionFlag)); in TEST() 308 args.push_back(String16(kIntervalFlag)); in TEST() 309 args.push_back(String16(std::to_string(kTestCustomCollectionInterval.count()).c_str())); in TEST() 310 args.push_back(String16(kMaxDurationFlag)); in TEST() 311 args.push_back(String16(std::to_string(kTestCustomCollectionDuration.count()).c_str())); in TEST() 358 args.push_back(String16(kEndCustomCollectionFlag)); in TEST() 472 Vector<String16> args; in TEST() 473 args.push_back(String16(kStartCustomCollectionFlag)); in TEST() [all …]
|
D | WatchdogBinderMediatorTest.cpp | 37 using ::android::String16; 182 mWatchdogBinderMediator->dump(-1, Vector<String16>()); in TEST_F() 189 Vector<String16> args; in TEST_F() 190 args.push_back(String16(kStartCustomCollectionFlag)); in TEST_F() 198 Vector<String16> args; in TEST_F() 199 args.push_back(String16(kEndCustomCollectionFlag)); in TEST_F() 208 Vector<String16> args; in TEST_F() 209 args.push_back(String16(kResetResourceOveruseStatsFlag)); in TEST_F() 210 args.push_back(String16("packageA,packageB")); in TEST_F() 218 Vector<String16> args; in TEST_F() [all …]
|
D | WatchdogInternalHandlerTest.cpp | 52 using ::android::String16; 71 MOCK_METHOD(status_t, dump, (int fd, const Vector<android::String16>& args), (override)); 161 ASSERT_EQ(mWatchdogInternalHandler->dump(-1, Vector<String16>()), OK); in TEST_F()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogBinderMediator.cpp | 35 using ::android::String16; 71 status_t status = defaultServiceManager()->addService(String16(serviceName), service); in addToServiceManager() 134 status_t WatchdogBinderMediator::dump(int fd, const Vector<String16>& args) { in dump() 139 if (numArgs == 1 && (args[0] == String16(kHelpFlag) || args[0] == String16(kHelpShortFlag))) { in dump() 142 if (args[0] == String16(kStartCustomCollectionFlag) || in dump() 143 args[0] == String16(kEndCustomCollectionFlag)) { in dump() 145 std::string mode = args[0] == String16(kStartCustomCollectionFlag) ? "start" : "end"; in dump() 157 if (numArgs == 2 && args[0] == String16(kResetResourceOveruseStatsFlag)) { in dump() 177 status_t WatchdogBinderMediator::dumpServices(int fd, const Vector<String16>& args) { in dumpServices()
|
D | WatchdogPerfService.cpp | 40 using ::android::String16; 81 Result<std::chrono::seconds> parseSecondsFlag(const Vector<String16>& args, size_t pos) { in parseSecondsFlag() 298 Result<void> WatchdogPerfService::onCustomCollection(int fd, const Vector<String16>& args) { in onCustomCollection() 303 if (args[0] == String16(kStartCustomCollectionFlag)) { in onCustomCollection() 312 if (args[i] == String16(kIntervalFlag)) { in onCustomCollection() 322 if (args[i] == String16(kMaxDurationFlag)) { in onCustomCollection() 332 if (args[i] == String16(kFilterPackagesFlag)) { in onCustomCollection() 357 if (args[0] == String16(kEndCustomCollectionFlag)) { in onCustomCollection()
|
D | WatchdogBinderMediator.h | 68 status_t dump(int fd, const Vector<android::String16>& args) override; 115 status_t dumpServices(int fd, const Vector<String16>& args);
|
D | WatchdogPerfService.h | 171 int fd, const Vector<android::String16>& args) = 0; 208 const Vector<android::String16>& args) override;
|
D | WatchdogInternalHandler.cpp | 43 using ::android::String16; 68 status_t WatchdogInternalHandler::dump(int fd, const Vector<String16>& args) { in dump()
|
/packages/modules/StatsD/statsd/src/packages/ |
D | UidMap.h | 99 const vector<int64_t>& versionCode, const vector<String16>& versionString, 100 const vector<String16>& packageName, const vector<String16>& installer); 102 void updateApp(const int64_t& timestamp, const String16& packageName, const int32_t& uid, 103 const int64_t& versionCode, const String16& versionString, 104 const String16& installer); 105 void removeApp(const int64_t& timestamp, const String16& packageName, const int32_t& uid);
|
D | UidMap.cpp | 116 const vector<int64_t>& versionCode, const vector<String16>& versionString, in updateMap() 117 const vector<String16>& packageName, const vector<String16>& installer) { in updateMap() 161 void UidMap::updateApp(const int64_t& timestamp, const String16& app_16, const int32_t& uid, in updateApp() 162 const int64_t& versionCode, const String16& versionString, in updateApp() 163 const String16& installer) { in updateApp() 224 void UidMap::removeApp(const int64_t& timestamp, const String16& app_16, const int32_t& uid) { in removeApp()
|
/packages/services/Car/tools/keventreader/server/ |
D | event.cpp | 31 String16 s16 = String16(source.c_str()); in writeToParcel() 40 String16 s16 = parcel->readString16(); in readFromParcel()
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.cpp | 919 vector<String16> versionStrings; in informAllUidData() 920 vector<String16> installers; in informAllUidData() 921 vector<String16> packageNames; in informAllUidData() 933 packageNames.emplace_back(String16(appInfo.package_name().c_str())); in informAllUidData() 936 versionStrings.emplace_back(String16(appInfo.version_string().c_str())); in informAllUidData() 937 installers.emplace_back(String16(appInfo.installer().c_str())); in informAllUidData() 957 String16 utf16App = String16(app.c_str()); in informOnePackage() 958 String16 utf16VersionString = String16(versionString.c_str()); in informOnePackage() 959 String16 utf16Installer = String16(installer.c_str()); in informOnePackage() 970 String16 utf16App = String16(app.c_str()); in informOnePackageRemoved()
|
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/ |
D | bt_binder_facade.cpp | 46 using android::String16; 86 String16 address; in BtBinderGetAddress() 96 String16 name16; in BtBinderGetName() 115 bt_iface->SetName(String16(String8(name.c_str())), &result); in BtBinderSetName() 124 status_t status = getService(String16(kServiceName.c_str()), &bt_iface); in BtBinderInitInterface()
|
/packages/services/Car/car-lib/native/CarPowerManager/ |
D | CarPowerManager.cpp | 77 const String16 ICarName("car_service"); in connectToCarService() 78 const String16 ICarPowerName("power"); in connectToCarService()
|
/packages/services/Car/cpp/powerpolicy/server/src/ |
D | CarPowerPolicyServer.cpp | 46 using android::String16; 174 status_t CarServiceNotificationHandler::dump(int fd, const Vector<String16>& args) { in dump() 355 status_t CarPowerPolicyServer::dump(int fd, const Vector<String16>& args) { in dump() 410 defaultServiceManager()->checkService(String16(kCarServiceInterface)); in init() 424 defaultServiceManager()->addService(String16(kCarPowerPolicyServerInterface), this); in init() 429 defaultServiceManager()->addService(String16( in init()
|
D | CarPowerPolicyServer.h | 121 android::status_t dump(int fd, const android::Vector<android::String16>& args) override; 156 status_t dump(int fd, const Vector<String16>& args) override;
|
/packages/services/Car/cpp/watchdog/vts/ |
D | VtsAidlWatchdogTargetTest.cpp | 49 using ::android::String16; 134 android::waitForDeclaredService<ICarWatchdog>(String16(GetParam().c_str())); in SetUp()
|
/packages/modules/Virtualization/tests/ |
D | common.cc | 22 status_t err = getService<IVirtManager>(String16("android.system.virtmanager"), &mVirtManager); in SetUp()
|