Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/native/libs/binder/include/binder/
DPersistableBundle.h46 size_t erase(const String16& key);
53 void putBoolean(const String16& key, bool value);
54 void putInt(const String16& key, int32_t value);
55 void putLong(const String16& key, int64_t value);
56 void putDouble(const String16& key, double value);
57 void putString(const String16& key, const String16& value);
58 void putBooleanVector(const String16& key, const std::vector<bool>& value);
59 void putIntVector(const String16& key, const std::vector<int32_t>& value);
60 void putLongVector(const String16& key, const std::vector<int64_t>& value);
61 void putDoubleVector(const String16& key, const std::vector<double>& value);
[all …]
DIServiceManager.h36 virtual const String16& getInterfaceDescriptor() const;
71 virtual sp<IBinder> getService(const String16& name) const = 0;
76 virtual sp<IBinder> checkService( const String16& name) const = 0;
82 virtual status_t addService(const String16& name, const sp<IBinder>& service,
90 virtual Vector<String16> listServices(int dumpsysFlags = DUMP_FLAG_PRIORITY_ALL) = 0;
97 virtual sp<IBinder> waitForService(const String16& name) = 0;
105 virtual bool isDeclared(const String16& name) = 0;
110 virtual Vector<String16> getDeclaredInstances(const String16& interface) = 0;
116 virtual std::optional<String16> updatableViaApex(const String16& name) = 0;
122 virtual Vector<String16> getUpdatableNames(const String16& apexName) = 0;
[all …]
/frameworks/native/include/binder/
DPersistableBundle.h46 size_t erase(const String16& key);
53 void putBoolean(const String16& key, bool value);
54 void putInt(const String16& key, int32_t value);
55 void putLong(const String16& key, int64_t value);
56 void putDouble(const String16& key, double value);
57 void putString(const String16& key, const String16& value);
58 void putBooleanVector(const String16& key, const std::vector<bool>& value);
59 void putIntVector(const String16& key, const std::vector<int32_t>& value);
60 void putLongVector(const String16& key, const std::vector<int64_t>& value);
61 void putDoubleVector(const String16& key, const std::vector<double>& value);
[all …]
DIServiceManager.h36 virtual const String16& getInterfaceDescriptor() const;
71 virtual sp<IBinder> getService(const String16& name) const = 0;
76 virtual sp<IBinder> checkService( const String16& name) const = 0;
82 virtual status_t addService(const String16& name, const sp<IBinder>& service,
90 virtual Vector<String16> listServices(int dumpsysFlags = DUMP_FLAG_PRIORITY_ALL) = 0;
97 virtual sp<IBinder> waitForService(const String16& name) = 0;
105 virtual bool isDeclared(const String16& name) = 0;
110 virtual Vector<String16> getDeclaredInstances(const String16& interface) = 0;
116 virtual std::optional<String16> updatableViaApex(const String16& name) = 0;
122 virtual Vector<String16> getUpdatableNames(const String16& apexName) = 0;
[all …]
/frameworks/base/tools/aapt/
Dpseudolocalize.h10 virtual String16 start() { return String16(); } in start()
11 virtual String16 end() { return String16(); } in end()
12 virtual String16 text(const String16& text) = 0;
13 virtual String16 placeholder(const String16& text) = 0;
19 String16 text(const String16& text) { return text; } in text()
20 String16 placeholder(const String16& text) { return text; } in placeholder()
27 String16 text(const String16& text);
28 String16 placeholder(const String16& text);
34 String16 start();
35 String16 end();
[all …]
DResourceTable.h39 const String16& resourceName,
46 const String16& resourceName,
54 const String16& resourceName,
84 String16 resourceName;
115 ResourceTable(Bundle* bundle, const String16& assetsPackage, PackageType type);
117 const String16& getAssetsPackage() const { in getAssetsPackage()
136 const String16& package,
137 const String16& type,
138 const String16& name,
142 const String16& package,
[all …]
DXMLNode.h22 String16 getNamespaceResourcePackage(String16 namespaceUri, bool* outIsPublic = NULL);
27 const String16& endTag,
28 String16* outString,
45 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { in newNamespace()
50 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement()
67 const String16& getNamespacePrefix() const;
68 const String16& getNamespaceUri() const;
70 const String16& getElementNamespace() const;
71 const String16& getElementName() const;
89 String16 ns;
[all …]
Dpseudolocalize.cpp6 static const String16 k_expansion_string = String16("one two three "
11 static const String16 k_rlm = String16("\xe2\x80\x8f");
12 static const String16 k_rlo = String16("\xE2\x80\xae");
13 static const String16 k_pdf = String16("\xE2\x80\xac");
16 static const String16 k_placeholder_open = String16("\xc2\xbb");
17 static const String16 k_placeholder_close = String16("\xc2\xab");
40 String16 Pseudolocalizer::text(const String16& text) { in text()
41 String16 out; in text()
72 String16 chunk = String16(text, size, lastpos); in text()
182 static String16 pseudo_generate_expansion(const unsigned int length) { in pseudo_generate_expansion()
[all …]
DResourceIdCache.cpp18 static const android::String16 TRUE16("1");
19 static const android::String16 FALSE16("0");
23 android::String16 hashedName;
27 CacheEntry(const android::String16& name, uint32_t resId) : hashedName(name), id(resId) { } in CacheEntry()
38 static uint32_t hash(const android::String16& hashableString) { in hash()
47 static inline String16 makeHashableName(const android::String16& package, in makeHashableName()
48 const android::String16& type, in makeHashableName()
49 const android::String16& name, in makeHashableName()
51 String16 hashable = String16(name); in makeHashableName()
58 uint32_t ResourceIdCache::lookup(const android::String16& package, in lookup()
[all …]
DResourceTable.cpp41 const String16& resourceName, in compileXmlFile()
56 const String16& resourceName, in compileXmlFile()
72 const String16& resourceName, in compileXmlFile()
256 static String16 mayOrMust(int type, int flags) in mayOrMust()
259 return String16("<p>Must"); in mayOrMust()
262 return String16("<p>May"); in mayOrMust()
265 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo()
266 const String16& typeName, const String16& ident, int type, in appendTypeInfo()
272 String16 fullMsg(mayOrMust(type, flags->value)); in appendTypeInfo()
273 fullMsg.append(String16(" be ")); in appendTypeInfo()
[all …]
/frameworks/base/libs/storage/include/storage/
DIMountService.h42 virtual int32_t mountVolume(const String16& mountPoint) = 0;
44 const String16& mountPoint, const bool force, const bool removeEncryption) = 0;
45 virtual int32_t formatVolume(const String16& mountPoint) = 0;
47 getStorageUsers(const String16& mountPoint, int32_t** users) = 0;
48 virtual int32_t getVolumeState(const String16& mountPoint) = 0;
49 virtual int32_t createSecureContainer(const String16& id,
50 const int32_t sizeMb, const String16& fstype, const String16& key,
52 virtual int32_t finalizeSecureContainer(const String16& id) = 0;
53 virtual int32_t destroySecureContainer(const String16& id) = 0;
54 virtual int32_t mountSecureContainer(const String16& id,
[all …]
/frameworks/native/services/utils/tests/
DPriorityDumper_test.cpp35 MOCK_METHOD3(dumpCritical, status_t(int, const Vector<String16>&, bool));
36 MOCK_METHOD3(dumpHigh, status_t(int, const Vector<String16>&, bool));
37 MOCK_METHOD3(dumpNormal, status_t(int, const Vector<String16>&, bool));
38 MOCK_METHOD3(dumpAll, status_t(int, const Vector<String16>&, bool));
43 MOCK_METHOD3(dumpCritical, status_t(int, const Vector<String16>&, bool));
44 MOCK_METHOD3(dumpHigh, status_t(int, const Vector<String16>&, bool));
45 MOCK_METHOD3(dumpNormal, status_t(int, const Vector<String16>&, bool));
56 static void addAll(Vector<String16>& av, const std::vector<std::string>& v) { in addAll()
58 av.add(String16(element.c_str())); in addAll()
63 Vector<String16> args; in TEST_F()
[all …]
/frameworks/native/libs/fakeservicemanager/
DFakeServiceManager.cpp23 sp<IBinder> FakeServiceManager::getService( const String16& name) const { in getService()
28 sp<IBinder> FakeServiceManager::checkService( const String16& name) const { in checkService()
36 status_t FakeServiceManager::addService(const String16& name, const sp<IBinder>& service, in addService()
46 Vector<String16> FakeServiceManager::listServices(int /*dumpsysFlags*/) { in listServices()
47 Vector<String16> services; in listServices()
59 sp<IBinder> FakeServiceManager::waitForService(const String16& name) { in waitForService()
63 bool FakeServiceManager::isDeclared(const String16& name) { in isDeclared()
67 Vector<String16> FakeServiceManager::getDeclaredInstances(const String16& name) { in getDeclaredInstances()
68 Vector<String16> out; in getDeclaredInstances()
69 const String16 prefix = name + String16("/"); in getDeclaredInstances()
[all …]
Dtest_sm.cpp32 using android::String16;
49 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
55 EXPECT_EQ(sm->addService(String16("foo"), nullptr, false /*allowIsolated*/, in TEST()
61 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
63 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
69 EXPECT_EQ(sm->addService(String16("foo"), getBinder(), false /*allowIsolated*/, in TEST()
71 EXPECT_NE(sm->getService(String16("foo")), nullptr); in TEST()
73 EXPECT_EQ(sm->getService(String16("foo")), nullptr); in TEST()
80 EXPECT_EQ(sm->addService(String16("foo"), service, false /*allowIsolated*/, in TEST()
83 EXPECT_EQ(sm->getService(String16("foo")), service); in TEST()
[all …]
/frameworks/native/libs/fakeservicemanager/include/fakeservicemanager/
DFakeServiceManager.h35 sp<IBinder> getService( const String16& name) const override;
37 sp<IBinder> checkService( const String16& name) const override;
39 status_t addService(const String16& name, const sp<IBinder>& service,
43 Vector<String16> listServices(int dumpsysFlags = 0) override;
47 sp<IBinder> waitForService(const String16& name) override;
49 bool isDeclared(const String16& name) override;
51 Vector<String16> getDeclaredInstances(const String16& iface) override;
53 std::optional<String16> updatableViaApex(const String16& name) override;
55 Vector<String16> getUpdatableNames(const String16& apexName) override;
57 std::optional<IServiceManager::ConnectionInfo> getConnectionInfo(const String16& name) override;
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DPersistableBundleFuzzFunctions.h37 void(FuzzedDataProvider*, std::shared_ptr<os::PersistableBundle> const&, String16*)>>
40 String16*) -> void { p_bundle->empty(); },
42 String16*) -> void {
47 String16*) -> void {
55 String16*) -> void { p_bundle->size(); },
57 String16* key) -> void { p_bundle->erase(*key); },
59 String16* key) -> void {
64 String16* key) -> void {
69 String16* key) -> void {
74 String16* key) -> void {
[all …]
/frameworks/native/libs/binder/
DPersistableBundle.cpp54 bool getValue(const android::String16& key, T* out, const map<android::String16, T>& map) { in getValue() argument
62 set<android::String16> getKeys(const map<android::String16, T>& map) { in getKeys() argument
63 if (map.empty()) return set<android::String16>(); in getKeys()
64 set<android::String16> keys; in getKeys()
158 size_t PersistableBundle::erase(const String16& key) { in erase()
172 void PersistableBundle::putBoolean(const String16& key, bool value) { in putBoolean()
177 void PersistableBundle::putInt(const String16& key, int32_t value) { in putInt()
182 void PersistableBundle::putLong(const String16& key, int64_t value) { in putLong()
187 void PersistableBundle::putDouble(const String16& key, double value) { in putDouble()
192 void PersistableBundle::putString(const String16& key, const String16& value) { in putString()
[all …]
DIServiceManager.cpp63 const String16& IServiceManager::getInterfaceDescriptor() const { in getInterfaceDescriptor()
75 sp<IBinder> getService(const String16& name) const override;
76 sp<IBinder> checkService(const String16& name) const override;
77 status_t addService(const String16& name, const sp<IBinder>& service,
79 Vector<String16> listServices(int dumpsysPriority) override;
80 sp<IBinder> waitForService(const String16& name16) override;
81 bool isDeclared(const String16& name) override;
82 Vector<String16> getDeclaredInstances(const String16& interface) override;
83 std::optional<String16> updatableViaApex(const String16& name) override;
84 Vector<String16> getUpdatableNames(const String16& apexName) override;
[all …]
/frameworks/native/libs/permission/include/binder/
DIAppOpsService.h37 virtual int32_t checkOperation(int32_t code, int32_t uid, const String16& packageName) = 0;
38 virtual int32_t noteOperation(int32_t code, int32_t uid, const String16& packageName,
39 const std::optional<String16>& attributionTag, bool shouldCollectAsyncNotedOp,
40 const String16& message, bool shouldCollectMessage) = 0;
42 const String16& packageName, const std::optional<String16>& attributionTag,
43 bool startIfModeDefault, bool shouldCollectAsyncNotedOp, const String16& message,
46 const String16& packageName, const std::optional<String16>& attributionTag) = 0;
47 virtual void startWatchingMode(int32_t op, const String16& packageName,
50 virtual int32_t permissionToOpCode(const String16& permission) = 0;
52 const String16& packageName) = 0;
[all …]
DAppOpsManager.h160 int32_t checkOp(int32_t op, int32_t uid, const String16& callingPackage);
162 const String16& callingPackage);
165 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage);
166 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage,
167 const std::optional<String16>& attributionTag, const String16& message);
170 int32_t startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage,
172 int32_t startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage,
173 bool startIfModeDefault, const std::optional<String16>& attributionTag,
174 const String16& message);
176 void finishOp(int32_t op, int32_t uid, const String16& callingPackage);
[all …]
/frameworks/native/libs/permission/include/android/permission/
DPermissionChecker.h96 const String16& permission, const AttributionSourceState& attributionSource,
97 const String16& message, int32_t attributedOpCode);
119 const String16& permission, const AttributionSourceState& attributionSource,
120 const String16& message, int32_t attributedOpCode);
145 const String16& permission, const AttributionSourceState& attributionSource,
146 const String16& message, int32_t attributedOpCode);
172 const String16& permission, const AttributionSourceState& attributionSource,
173 const String16& message, int32_t attributedOpCode);
196 PermissionResult checkPermission(const String16& permission,
198 const String16& message, bool forDataDelivery, bool startDataDelivery,
/frameworks/native/libs/permission/
DAppOpsManager.cpp52 static String16 _appops("appops"); in getService()
78 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp()
87 const String16& callingPackage) { in checkAudioOpNoThrow()
94 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp()
96 String16("Legacy AppOpsManager.noteOp call")); in noteOp()
99 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage, in noteOp()
100 const std::optional<String16>& attributionTag, const String16& message) { in noteOp()
110 int32_t AppOpsManager::startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage, in startOpNoThrow()
113 String16("Legacy AppOpsManager.startOpNoThrow call")); in startOpNoThrow()
116 int32_t AppOpsManager::startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage, in startOpNoThrow()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmMetricsConsumer.cpp24 using ::android::String16;
68 metrics->putLong(android::String16(success_count_name.c_str()), in ExportCounterMetric()
72 metrics->getLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
74 metrics->putLong(android::String16(error_count_name.c_str()), in ExportCounterMetric()
81 metrics->putLongVector(android::String16(error_list_name.c_str()), in ExportCounterMetric()
96 metrics->putLong(android::String16(name.c_str()), value); in ExportCounterMetricWithAttributeNames()
114 metrics->putLong(android::String16(success_count_name.c_str()), in ExportEventMetric()
116 metrics->putLong(android::String16(timing_name.c_str()), in ExportEventMetric()
120 metrics->getLong(android::String16(error_count_name.c_str()), in ExportEventMetric()
122 metrics->putLong(android::String16(error_count_name.c_str()), in ExportEventMetric()
[all …]
/frameworks/native/cmds/dumpsys/
Ddumpsys.cpp57 static int sort_func(const String16* lhs, const String16* rhs) in sort_func()
89 static bool IsSkipped(const Vector<String16>& skipped, const String16& service) { in IsSkipped()
98 static bool ConvertPriorityTypeToBitmask(const String16& type, int& bitmask) { in ConvertPriorityTypeToBitmask()
114 String16 ConvertBitmaskToPriorityType(int bitmask) { in ConvertBitmaskToPriorityType()
116 return String16(PriorityDumper::PRIORITY_ARG_CRITICAL); in ConvertBitmaskToPriorityType()
119 return String16(PriorityDumper::PRIORITY_ARG_HIGH); in ConvertBitmaskToPriorityType()
122 return String16(PriorityDumper::PRIORITY_ARG_NORMAL); in ConvertBitmaskToPriorityType()
124 return String16(""); in ConvertBitmaskToPriorityType()
128 Vector<String16> services; in main()
129 Vector<String16> args; in main()
[all …]
/frameworks/av/services/camera/libcameraservice/tests/
DCameraPermissionsTest.cpp40 virtual binder::Status onStatusChanged(int32_t , const String16&) { in onStatusChanged() argument
45 const String16& /*cameraId*/, const String16& /*physicalCameraId*/) { in onPhysicalCameraStatusChanged() argument
50 virtual binder::Status onTorchStatusChanged(int32_t /*status*/, const String16& /*cameraId*/) { in onTorchStatusChanged() argument
59 virtual binder::Status onCameraOpened(const String16& /*cameraId*/, in onCameraOpened() argument
60 const String16& /*clientPackageName*/) { in onCameraOpened()
65 virtual binder::Status onCameraClosed(const String16& /*cameraId*/) { in onCameraClosed() argument
70 virtual binder::Status onTorchStrengthLevelChanged(const String16& /*cameraId*/, in onTorchStrengthLevelChanged() argument
126 virtual binder::Status getRotateAndCropOverride(const String16& packageName, int lensFacing, in getRotateAndCropOverride()
132 virtual binder::Status getAutoframingOverride(const String16& packageName, int *ret) override { in getAutoframingOverride()
227 sCameraService->connectDevice(callbacks, String16(s.cameraId), String16(), {}, in TEST_F()
[all …]

12345678910>>...20