Home
last modified time | relevance | path

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

123456

/system/core/libutils/include/utils/
DString16.h39 class String16
51 String16();
52 explicit String16(StaticLinkage);
53 String16(const String16& o);
54 String16(const String16& o,
57 explicit String16(const char16_t* o);
58 explicit String16(const char16_t* o, size_t len);
59 explicit String16(const String8& o);
60 explicit String16(const char* o);
61 explicit String16(const char* o, size_t len);
[all …]
/system/core/libutils/
DString16.cpp34 void* String16::alloc(size_t size) in alloc()
41 char16_t* String16::allocFromUTF8(const char* u8str, size_t u8len) in allocFromUTF8()
69 char16_t* String16::allocFromUTF16(const char16_t* u16str, size_t u16len) { in allocFromUTF16()
88 String16::String16() in String16() function in android::String16
93 String16::String16(StaticLinkage) in String16() function in android::String16
106 String16::String16(const String16& o) in String16() function in android::String16
112 String16::String16(const String16& o, size_t len, size_t begin) in String16() function in android::String16
118 String16::String16(const char16_t* o) : mString(allocFromUTF16(o, strlen16(o))) {} in String16() function in android::String16
120 String16::String16(const char16_t* o, size_t len) : mString(allocFromUTF16(o, len)) {} in String16() function in android::String16
122 String16::String16(const String8& o) in String16() function in android::String16
[all …]
DString16_test.cpp35 String16 tmp(u"Verify me"); in TEST()
40 String16 tmp(u"Verify me", 7); in TEST()
45 String16 tmp("Verify me"); in TEST()
50 String16 tmp("Verify me", 7); in TEST()
55 String16 tmp("Verify me"); in TEST()
56 String16 another = tmp; in TEST()
62 String16 tmp("Verify me"); in TEST()
63 String16 another(std::move(tmp)); in TEST()
68 String16 tmp("Verify me"); in TEST()
73 String16 tmp("Verify me"); in TEST()
[all …]
/system/tools/aidl/tests/
Daidl_test_client_nullables.cpp28 using android::String16;
59 bool ValuesEqual<vector<unique_ptr<String16>>>( in ValuesEqual()
60 const unique_ptr<vector<unique_ptr<String16>>>& in, in ValuesEqual()
61 const unique_ptr<vector<unique_ptr<String16>>>& out) { in ValuesEqual()
75 const unique_ptr<String16>& a = (*in)[i]; in ValuesEqual()
76 const unique_ptr<String16>& b = (*out)[i]; in ValuesEqual()
260 unique_ptr<String16>(new String16("Blooob")), in ConfirmNullables()
265 unique_ptr<vector<unique_ptr<String16>>> test_string_array( in ConfirmNullables()
266 new vector<unique_ptr<String16>>()); in ConfirmNullables()
267 test_string_array->push_back(unique_ptr<String16>(new String16("Wat"))); in ConfirmNullables()
[all …]
Daidl_test_client_parcelables.cpp95 non_empty_bundle.putBoolean(String16("test_bool"), false); in ConfirmPersistableBundles()
96 non_empty_bundle.putInt(String16("test_int"), 33); in ConfirmPersistableBundles()
97 non_empty_bundle.putLong(String16("test_long"), 34359738368L); in ConfirmPersistableBundles()
98 non_empty_bundle.putDouble(String16("test_double"), 1.1); in ConfirmPersistableBundles()
99 non_empty_bundle.putString(String16("test_string"), String16("Woot!")); in ConfirmPersistableBundles()
100 non_empty_bundle.putBooleanVector(String16("test_bool_vector"), in ConfirmPersistableBundles()
102 non_empty_bundle.putIntVector(String16("test_int_vector"), {33, 44, 55, 142}); in ConfirmPersistableBundles()
103 non_empty_bundle.putLongVector(String16("test_long_vector"), in ConfirmPersistableBundles()
105 non_empty_bundle.putDoubleVector(String16("test_double_vector"), {2.2, 5.4}); in ConfirmPersistableBundles()
106 non_empty_bundle.putStringVector(String16("test_string_vector"), in ConfirmPersistableBundles()
[all …]
Daidl_test_client_primitives.cpp35 using android::String16;
83 vector<String16> inputs = { in ConfirmPrimitiveRepeat()
84 String16("Deliver us from evil."), in ConfirmPrimitiveRepeat()
85 String16(), in ConfirmPrimitiveRepeat()
86 String16("\0\0", 2), in ConfirmPrimitiveRepeat()
90 String16("\xD8\x01\xDC\x37\x20\xAC"), in ConfirmPrimitiveRepeat()
95 String16 reply; in ConfirmPrimitiveRepeat()
118 {String16{"f"}, String16{"a"}, String16{"b"}}) || in ConfirmReverseArrays()
137 {String16{"f"}, String16{"a"}, String16{"b"}})) { in ConfirmReverseLists()
148 vector<String16> names = { in ConfirmReverseBinderLists()
[all …]
Daidl_test_service.cpp53 using android::String16;
97 explicit NamedCallback(String16 name) : name_(name) {} in NamedCallback()
99 Status GetName(String16* ret) { in GetName()
105 String16 name_;
113 void LogRepeatedStringToken(const String16& token) { in LogRepeatedStringToken()
136 LogRepeatedStringToken(String16(&token, 1)); in RepeatChar()
160 Status RepeatString(const String16& token, String16* _aidl_return) override { in RepeatString()
255 Status ReverseString(const vector<String16>& input, in ReverseString()
256 vector<String16>* repeated, in ReverseString()
257 vector<String16>* _aidl_return) override { in ReverseString()
[all …]
/system/update_engine/
Dbinder_service_brillo.cc29 using android::String16;
41 string NormalString(const String16& in) { in NormalString()
66 const String16& app_version, in AttemptUpdate()
67 const String16& omaha_url, in AttemptUpdate()
107 const String16& target_channel, bool powerwash) { in SetChannel()
114 String16* out_channel) { in GetChannel()
119 *out_channel = String16(channel_string.c_str()); in GetChannel()
124 const String16& in_cohort_hint) { in SetCohortHint()
130 String16* out_cohort_hint) { in GetCohortHint()
135 *out_cohort_hint = String16(cohort_hint.c_str()); in GetCohortHint()
[all …]
Dparcelable_update_engine_status.h45 android::String16 current_operation_;
49 android::String16 current_version_;
51 android::String16 current_system_version_;
55 android::String16 new_version_;
57 android::String16 new_system_version_;
Dbinder_service_brillo.h55 android::binder::Status AttemptUpdate(const android::String16& app_version,
56 const android::String16& omaha_url,
65 android::binder::Status SetChannel(const android::String16& target_channel,
68 android::String16* out_channel) override;
70 const android::String16& cohort_hint) override;
72 android::String16* out_cohort_hint) override;
79 const android::String16& target_version, int64_t target_size) override;
85 android::String16* out_prev_version) override;
87 android::String16* out_rollback_partition) override;
Dparcelable_update_engine_status_unittest.cc25 using android::String16;
45 String16{chromeos_update_engine::UpdateStatusToString(ue_status.status)}, in TEST()
47 EXPECT_EQ(String16{ue_status.current_version.c_str()}, in TEST()
49 EXPECT_EQ(String16{ue_status.current_system_version.c_str()}, in TEST()
54 EXPECT_EQ(String16{ue_status.new_version.c_str()}, in TEST()
56 EXPECT_EQ(String16{ue_status.new_system_version.c_str()}, in TEST()
Dbinder_service_android.h52 const android::String16& url,
55 const std::vector<android::String16>& header_kv_pairs) override;
60 const std::vector<android::String16>& header_kv_pairs) override;
72 const android::String16& metadata_filename, bool* return_value) override;
74 const android::String16& metadata_filename,
75 const std::vector<android::String16>& header_kv_pairs,
/system/bt/service/common/android/bluetooth/
Dbluetooth_avrcp_media_attr.cc23 using android::String16;
31 parcel->writeString16(String16(title_.c_str(), title_.size())); in writeToParcel()
34 status = parcel->writeString16(String16(artist_.c_str(), artist_.size())); in writeToParcel()
37 status = parcel->writeString16(String16(album_.c_str(), album_.size())); in writeToParcel()
40 status = parcel->writeString16(String16(genre_.c_str(), genre_.size())); in writeToParcel()
56 String16 title; in readFromParcel()
61 String16 artist; in readFromParcel()
66 String16 album; in readFromParcel()
71 String16 genre; in readFromParcel()
Dbluetooth_remote_device_props.cc25 using android::String16;
33 parcel->writeString16(String16(name_.c_str(), name_.size())); in writeToParcel()
36 status = parcel->writeString16(String16(address_.c_str(), address_.size())); in writeToParcel()
60 String16 name; in readFromParcel()
65 String16 address; in readFromParcel()
Dscan_filter.cc27 using android::String16;
36 parcel->writeString16(String16(String8(device_name_.c_str()))); in writeToParcel()
39 status = parcel->writeString16(String16(String8(device_address_.c_str()))); in writeToParcel()
70 String16 name; in readFromParcel()
75 String16 addr; in readFromParcel()
/system/security/keystore/
Dkey_store_service.h55 ::android::binder::Status get(const ::android::String16& name, int32_t uid,
57 ::android::binder::Status insert(const ::android::String16& name,
60 ::android::binder::Status del(const ::android::String16& name, int32_t uid,
62 ::android::binder::Status exist(const ::android::String16& name, int32_t uid,
64 ::android::binder::Status list(const ::android::String16& namePrefix, int32_t uid,
65 ::std::vector<::android::String16>* _aidl_return) override;
70 const ::android::String16& newPassword,
73 ::android::binder::Status unlock(int32_t userId, const ::android::String16& userPassword,
76 ::android::binder::Status grant(const ::android::String16& name, int32_t granteeUid,
77 ::android::String16* _aidl_return) override;
[all …]
Dkeystore_cli.cpp58 service->cmd(String16(argv[2]), &ret); \
101 service->cmd(String16(argv[2]), uid, &ret); \
125 ::android::binder::Status ret = service->cmd(String16(argv[2]), uid, &data); \
148 service->cmd(String16(argv[2]), data, dataSize, &ret); \
167 ::android::binder::Status ret = service->cmd(String16(argv[2]), &data); \
179 static int list(const sp<IKeystoreService>& service, const String16& name, int uid) { in list()
180 std::vector<String16> matches; in list()
187 std::vector<String16>::const_iterator it = matches.begin(); in list()
203 sp<IBinder> binder = sm->getService(String16("android.security.keystore")); in main()
226 return list(service, argc < 3 ? String16("") : String16(argv[2]), in main()
/system/bt/service/example/heart_rate/
Dheart_rate_server.h31 using android::String16;
62 Status OnCharacteristicReadRequest(const String16& device_address,
65 Status OnDescriptorReadRequest(const String16& device_address, int request_id,
67 Status OnCharacteristicWriteRequest(const String16& device_address,
72 Status OnDescriptorWriteRequest(const String16& device_address,
77 Status OnExecuteWriteRequest(const String16& device_address, int request_id,
79 Status OnNotificationSent(const String16& device_address,
81 Status OnConnectionStateChanged(const String16& device_address,
/system/bt/service/ipc/binder/
Dbluetooth_avrcp_target_binder_server.cc62 using android::String16;
121 const android::String16& addr, int32_t play_status, int32_t song_len, in GetPlayStatusResponse()
129 const android::String16& addr, const std::vector<int32_t>& attrs, in ListPlayerAppAttrResponse()
137 const android::String16& addr, in GetPlayerAppValueResponse()
151 const android::String16& addr, in GetPlayerAppAttrTextResponse()
165 const android::String16& addr, in GetPlayerAppValueTextResponse()
179 const android::String16& addr, in GetElementAttrResponse()
193 const android::String16& addr, int32_t rsp_status, bool* _aidl_return) { in SetPlayerAppValueResponse()
219 cb->OnGetRemoteFeatures(String16(addr.data(), addr.size()), features); in OnGetRemoteFeatures()
226 cb->OnGetPlayStatus(String16(addr.data(), addr.size())); in OnGetPlayStatus()
[all …]
/system/security/keystore/include/keystore/
DKeystoreResponse.h33 explicit KeystoreResponse(const int response_code, const String16& error_msg) in KeystoreResponse()
34 : response_code_(response_code), error_msg_(std::make_unique<String16>(error_msg)) {} in KeystoreResponse()
43 error_msg_ = std::make_unique<String16>(*other.error_msg_); in KeystoreResponse()
52 const String16* error_msg() const { return error_msg_.get(); } in error_msg()
56 std::unique_ptr<String16> error_msg_;
/system/tools/hidl/hidl2aidl/test/
Dcpp_test_compile.cpp39 using android::String16;
43 Status status1 = foo->someBar(String16()); in testIFoo()
45 String16 f; in testIFoo()
51 String16 out; in testIBar()
52 Status status1 = bar->someBar(String16(), 3, &out); in testIBar()
/system/update_engine/client_library/
Dclient_binder.cc30 using android::String16;
45 return getService(String16{"android.brillo.UpdateEngineService"}, in Init()
55 String16{in_app_version.c_str()}, in AttemptUpdate()
56 String16{in_omaha_url.c_str()}, in AttemptUpdate()
87 return service_->SetCohortHint(String16{in_cohort_hint.c_str()}).isOk(); in SetCohortHint()
91 String16 out_as_string16; in GetCohortHint()
123 String16 out_as_string16; in GetRollbackPartition()
133 String16 out_as_string16; in GetPrevVersion()
218 ->SetChannel(String16{in_target_channel.c_str()}, allow_powerwash) in SetTargetChannel()
223 String16 out_as_string16; in GetTargetChannel()
[all …]
/system/vold/
DBenchmark.cpp120 extras->putString(String16("path"), String16(path.c_str())); in benchmarkInternal()
121 extras->putString(String16("ident"), String16(BenchmarkIdent().c_str())); in benchmarkInternal()
134 if (res == OK) extras->putLong(String16("create"), timer.duration().count()); in benchmarkInternal()
147 if (res == OK) extras->putLong(String16("drop"), timer.duration().count()); in benchmarkInternal()
161 if (res == OK) extras->putLong(String16("run"), timer.duration().count()); in benchmarkInternal()
170 if (res == OK) extras->putLong(String16("destroy"), timer.duration().count()); in benchmarkInternal()
/system/tools/aidl/tests/lazy_test/
Dmain.cpp37 using ::android::String16;
39 std::vector<String16> gServiceNames;
43 sp<IBinder> waitForService(const String16& name) { in waitForService()
51 bool isServiceRunning(const String16& name) { in isServiceRunning()
162 String16 serviceName = String16("aidl_lazy_test_1");
165 sp<ILazyTestService> waitForLazyTestService(String16 name) { in waitForLazyTestService()
202 gServiceNames.push_back(String16("aidl_lazy_test_1")); in main()
203 gServiceNames.push_back(String16("aidl_lazy_test_2")); in main()
206 gServiceNames.push_back(String16(argv[i])); in main()
/system/bt/binder/android/bluetooth/
Dbluetooth_device.cc24 using android::String16;
31 status_t status = parcel->writeString16(String16(address.ToString().c_str())); in writeToParcel()
36 String16 tmp; in readFromParcel()

123456