Home
last modified time | relevance | path

Searched refs:String16 (Results 1 – 25 of 37) sorted by relevance

12

/packages/modules/StatsD/statsd/tests/
DUidMap_test.cpp69 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 …]
DLogEntryMatcher_test.cpp209 {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 …]
DStatsLogProcessor_test.cpp165 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/
DPartialBucket_e2e_test.cpp144 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 …]
DAttribution_e2e_test.cpp110 {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()
DConfigUpdate_e2e_ab_test.cpp64 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()
DAnomaly_duration_sum_e2e_test.cpp434 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/
DWatchdogPerfServiceTest.cpp43 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 …]
DWatchdogBinderMediatorTest.cpp37 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 …]
DWatchdogInternalHandlerTest.cpp52 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/
DWatchdogBinderMediator.cpp35 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()
DWatchdogPerfService.cpp40 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()
DWatchdogBinderMediator.h68 status_t dump(int fd, const Vector<android::String16>& args) override;
115 status_t dumpServices(int fd, const Vector<String16>& args);
DWatchdogPerfService.h171 int fd, const Vector<android::String16>& args) = 0;
208 const Vector<android::String16>& args) override;
DWatchdogInternalHandler.cpp43 using ::android::String16;
68 status_t WatchdogInternalHandler::dump(int fd, const Vector<String16>& args) { in dump()
/packages/modules/StatsD/statsd/src/packages/
DUidMap.h99 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);
DUidMap.cpp116 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/
Devent.cpp31 String16 s16 = String16(source.c_str()); in writeToParcel()
40 String16 s16 = parcel->readString16(); in readFromParcel()
/packages/modules/StatsD/statsd/src/
DStatsService.cpp919 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/
Dbt_binder_facade.cpp46 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/
DCarPowerManager.cpp77 const String16 ICarName("car_service"); in connectToCarService()
78 const String16 ICarPowerName("power"); in connectToCarService()
/packages/services/Car/cpp/powerpolicy/server/src/
DCarPowerPolicyServer.cpp46 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()
DCarPowerPolicyServer.h121 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/
DVtsAidlWatchdogTargetTest.cpp49 using ::android::String16;
134 android::waitForDeclaredService<ICarWatchdog>(String16(GetParam().c_str())); in SetUp()
/packages/modules/Virtualization/tests/
Dcommon.cc22 status_t err = getService<IVirtManager>(String16("android.system.virtmanager"), &mVirtManager); in SetUp()

12