/frameworks/base/tools/aapt/ |
D | ResourceTable.h | 39 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 …]
|
D | pseudolocalize.h | 10 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 …]
|
D | XMLNode.h | 22 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 …]
|
D | pseudolocalize.cpp | 6 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 …]
|
D | ResourceIdCache.cpp | 18 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 …]
|
D | ResourceTable.cpp | 44 const String16& resourceName, in compileXmlFile() 59 const String16& resourceName, in compileXmlFile() 75 const String16& resourceName, in compileXmlFile() 248 static String16 mayOrMust(int type, int flags) in mayOrMust() 251 return String16("<p>Must"); in mayOrMust() 254 return String16("<p>May"); in mayOrMust() 257 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo() 258 const String16& typeName, const String16& ident, int type, in appendTypeInfo() 264 String16 fullMsg(mayOrMust(type, flags->value)); in appendTypeInfo() 265 fullMsg.append(String16(" be ")); in appendTypeInfo() [all …]
|
D | Symbol.h | 31 …inline Symbol(const android::String16& p, const android::String16& t, const android::String16& n, … 35 android::String16 package; 36 android::String16 type; 37 android::String16 name; 62 Symbol::Symbol(const android::String16& p, const android::String16& t, const android::String16& n, … in Symbol()
|
D | ResourceIdCache.h | 15 static uint32_t lookup(const String16& package, 16 const String16& type, 17 const String16& name, 20 static uint32_t store(const String16& package, 21 const String16& type, 22 const String16& name,
|
D | XMLNode.cpp | 65 static const String16 RESOURCES_PREFIX(RESOURCES_ROOT_NAMESPACE); 66 static const String16 RESOURCES_PREFIX_AUTO_PACKAGE(RESOURCES_AUTO_PACKAGE_NAMESPACE); 67 static const String16 RESOURCES_PRV_PREFIX(RESOURCES_ROOT_PRV_NAMESPACE); 68 static const String16 RESOURCES_TOOLS_NAMESPACE("http://schemas.android.com/tools"); 70 String16 getNamespaceResourcePackage(String16 appPackage, String16 namespaceUri, bool* outIsPublic) in getNamespaceResourcePackage() 90 return String16(); in getNamespaceResourcePackage() 96 return String16(namespaceUri, namespaceUri.size()-prefixSize, prefixSize); in getNamespaceResourcePackage() 101 String16 str16) in hasSubstitutionErrors() 207 const String16& endTag, in parseStyledString() 208 String16* outString, in parseStyledString() [all …]
|
/frameworks/native/include/binder/ |
D | PersistableBundle.h | 46 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 …]
|
D | IServiceManager.h | 39 virtual sp<IBinder> getService( const String16& name) const = 0; 44 virtual sp<IBinder> checkService( const String16& name) const = 0; 49 virtual status_t addService( const String16& name, 56 virtual Vector<String16> listServices() = 0; 69 status_t getService(const String16& name, sp<INTERFACE>* outService) in getService() 79 bool checkCallingPermission(const String16& permission); 80 bool checkCallingPermission(const String16& permission, 82 bool checkPermission(const String16& permission, pid_t pid, uid_t uid);
|
D | PermissionCache.h | 43 String16 name; 53 SortedVector< String16 > mPermissionNamesPool; 61 const String16& permission, uid_t uid) const; 63 void cache(const String16& permission, uid_t uid, bool granted); 68 static bool checkCallingPermission(const String16& permission); 70 static bool checkCallingPermission(const String16& permission, 73 static bool checkPermission(const String16& permission,
|
/frameworks/base/include/storage/ |
D | IMountService.h | 41 virtual int32_t mountVolume(const String16& mountPoint) = 0; 43 const String16& mountPoint, const bool force, const bool removeEncryption) = 0; 44 virtual int32_t formatVolume(const String16& mountPoint) = 0; 46 getStorageUsers(const String16& mountPoint, int32_t** users) = 0; 47 virtual int32_t getVolumeState(const String16& mountPoint) = 0; 48 virtual int32_t createSecureContainer(const String16& id, 49 const int32_t sizeMb, const String16& fstype, const String16& key, 51 virtual int32_t finalizeSecureContainer(const String16& id) = 0; 52 virtual int32_t destroySecureContainer(const String16& id) = 0; 53 virtual int32_t mountSecureContainer(const String16& id, [all …]
|
/frameworks/native/libs/binder/ |
D | PersistableBundle.cpp | 58 bool getValue(const android::String16& key, T* out, const std::map<android::String16, T>& map) { in getValue() argument 152 size_t PersistableBundle::erase(const String16& key) { in erase() 166 void PersistableBundle::putBoolean(const String16& key, bool value) { in putBoolean() 171 void PersistableBundle::putInt(const String16& key, int32_t value) { in putInt() 176 void PersistableBundle::putLong(const String16& key, int64_t value) { in putLong() 181 void PersistableBundle::putDouble(const String16& key, double value) { in putDouble() 186 void PersistableBundle::putString(const String16& key, const String16& value) { in putString() 191 void PersistableBundle::putBooleanVector(const String16& key, const std::vector<bool>& value) { in putBooleanVector() 196 void PersistableBundle::putIntVector(const String16& key, const std::vector<int32_t>& value) { in putIntVector() 201 void PersistableBundle::putLongVector(const String16& key, const std::vector<int64_t>& value) { in putLongVector() [all …]
|
/frameworks/av/services/audioflinger/ |
D | ServiceUtilities.cpp | 51 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { in recordingAllowed() 55 static const String16 sRecordAudio("android.permission.RECORD_AUDIO"); in recordingAllowed() 69 String16 checkedOpPackageName = opPackageName; in recordingAllowed() 80 sp<IBinder> binder = sm->getService(String16("permission")); in recordingAllowed() 87 Vector<String16> packages; in recordingAllowed() 110 static const String16 sCaptureAudioOutput("android.permission.CAPTURE_AUDIO_OUTPUT"); in captureAudioOutputAllowed() 117 static const String16 sCaptureHotwordAllowed("android.permission.CAPTURE_AUDIO_HOTWORD"); in captureHotwordAllowed() 126 static const String16 sAudioSettings("android.permission.MODIFY_AUDIO_SETTINGS"); in settingsAllowed() 134 static const String16 sModifyAudioRoutingAllowed("android.permission.MODIFY_AUDIO_ROUTING"); in modifyAudioRoutingAllowed() 143 static const String16 sDump("android.permission.DUMP"); in dumpAllowed()
|
/frameworks/base/tools/aapt/tests/ |
D | ResourceTable_test.cpp | 24 using android::String16; 27 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() 38 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 39 configs->addEntry(landConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 40 configs->addEntry(sw600dpLandConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 47 sp<ResourceTable::ConfigList> configs(new ResourceTable::ConfigList(String16(), SourcePos())); in TEST() 58 configs->addEntry(defaultConfig, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 59 configs->addEntry(v21Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST() 60 configs->addEntry(sw600dpV13Config, new ResourceTable::Entry(String16(), SourcePos())); in TEST()
|
D | Pseudolocales_test.cpp | 31 String16 result = pseudo.start() + pseudo.text(String16(String8(input))) + pseudo.end(); in simple_helper() 39 String16 result = pseudo.start() + \ in compound_helper() 40 pseudo.text(String16(String8(in1))) + \ in compound_helper() 41 pseudo.text(String16(String8(in2))) + \ in compound_helper() 42 pseudo.text(String16(String8(in3))) + \ in compound_helper() 213 String16 result = pseudo.text(String16(String8("Hello, "))); in TEST() 215 result.append(pseudo.text(String16(String8("world!")))); in TEST()
|
/frameworks/base/libs/storage/ |
D | IMountService.cpp | 143 int32_t mountVolume(const String16& mountPoint) in mountVolume() 160 int32_t unmountVolume(const String16& mountPoint, const bool force, const bool removeEncryption) in unmountVolume() 179 int32_t formatVolume(const String16& mountPoint) in formatVolume() 196 int32_t getStorageUsers(const String16& mountPoint, int32_t** users) in getStorageUsers() 225 int32_t getVolumeState(const String16& mountPoint) in getVolumeState() 242 int32_t createSecureContainer(const String16& id, const int32_t sizeMb, const String16& fstype, in createSecureContainer() 243 const String16& key, const int32_t ownerUid) in createSecureContainer() 264 int32_t finalizeSecureContainer(const String16& id) in finalizeSecureContainer() 281 int32_t destroySecureContainer(const String16& id) in destroySecureContainer() 298 int32_t mountSecureContainer(const String16& id, const String16& key, const int32_t ownerUid) in mountSecureContainer() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 83 ASSERT_EQ(String16("test2"), String16(targetStr16, strLen)); in TEST_F() 97 ASSERT_EQ(String16("test2-overlay"), String16(targetStr16, strLen)); in TEST_F() 110 EXPECT_EQ(String16("com.android.test.basic"), String16(resName.package, resName.packageLen)); in TEST_F() 111 EXPECT_EQ(String16("array"), String16(resName.type, resName.typeLen)); in TEST_F() 112 EXPECT_EQ(String16("integerArray1"), String16(resName.name, resName.nameLen)); in TEST_F()
|
D | Split_test.cpp | 134 String16(baseName.package, baseName.packageLen), in TEST() 135 String16(frName.package, frName.packageLen)); in TEST() 138 String16(baseName.type, baseName.typeLen), in TEST() 139 String16(frName.type, frName.typeLen)); in TEST() 142 String16(baseName.name, baseName.nameLen), in TEST() 143 String16(frName.name, frName.nameLen)); in TEST() 223 EXPECT_EQ(String16("com.android.test.basic"), in TEST() 224 String16(name.package, name.packageLen)); in TEST() 226 EXPECT_EQ(String16("string"), in TEST() 227 String16(name.type, name.typeLen)); in TEST() [all …]
|
/frameworks/base/packages/services/PacProcessor/jni/ |
D | com_android_pacprocessor_PacNative.cpp | 35 void AlertMessage(String16 message) { in AlertMessage() 39 void ErrorMessage(String16 message) { in ErrorMessage() 49 String16 jstringToString16(JNIEnv* env, jstring jstr) { in jstringToString16() 51 String16 str16(reinterpret_cast<const char16_t*>(str), in jstringToString16() 57 jstring string16ToJstring(JNIEnv* env, String16 string) { in string16ToJstring() 90 String16 script16 = jstringToString16(env, script); in com_android_pacprocessor_PacNative_setProxyScriptNativeLocked() 108 String16 url16 = jstringToString16(env, url); in com_android_pacprocessor_PacNative_makeProxyRequestNativeLocked() 109 String16 host16 = jstringToString16(env, host); in com_android_pacprocessor_PacNative_makeProxyRequestNativeLocked() 110 String16 ret; in com_android_pacprocessor_PacNative_makeProxyRequestNativeLocked()
|
/frameworks/native/cmds/cmd/ |
D | cmd.cpp | 36 static int sort_func(const String16* lhs, const String16* rhs) in sort_func() 68 Vector<String16> services = sm->listServices(); in main() 81 Vector<String16> args; in main() 83 args.add(String16(argv[i])); in main() 85 String16 cmd = String16(argv[1]); in main()
|
/frameworks/native/cmds/dumpsys/ |
D | dumpsys.cpp | 38 static int sort_func(const String16* lhs, const String16* rhs) in sort_func() 56 bool IsSkipped(const Vector<String16>& skipped, const String16& service) { in IsSkipped() 76 Vector<String16> services; in main() 77 Vector<String16> args; in main() 78 Vector<String16> skippedServices; in main() 132 skippedServices.add(String16(argv[i])); in main() 135 services.add(String16(argv[i])); in main() 137 args.add(String16(argv[i])); in main() 152 args.add(String16("-a")); in main() 175 String16 service_name = std::move(services[i]); in main()
|
/frameworks/native/include/powermanager/ |
D | IPowerManager.h | 58 virtual status_t acquireWakeLock(int flags, const sp<IBinder>& lock, const String16& tag, 59 const String16& packageName, bool isOneWay = false) = 0; 60 virtual status_t acquireWakeLockWithUid(int flags, const sp<IBinder>& lock, const String16& tag, 61 const String16& packageName, int uid, bool isOneWay = false) = 0; 67 virtual status_t reboot(bool confirm, const String16& reason, bool wait) = 0; 68 virtual status_t shutdown(bool confirm, const String16& reason, bool wait) = 0; 69 virtual status_t crash(const String16& message) = 0;
|
/frameworks/base/native/android/ |
D | storage_manager.cpp | 44 virtual void onObbResult(const android::String16& filename, const int32_t nonce, 94 mMountService = interface_cast<IMountService>(sm->getService(String16("mount"))); in initialize() 138 String16 rawPath16(rawPath); in mountObb() 139 String16 canonicalPath16(canonicalPath); in mountObb() 140 String16 key16(key); in mountObb() 146 String16 filename16(filename); in unmountObb() 151 String16 filename16(filename); in isObbMounted() 156 String16 filename16(filename); in getMountedObbPath() 157 String16 path16; in getMountedObbPath() 166 void ObbActionListener::onObbResult(const android::String16& filename, const int32_t nonce, const i… in onObbResult()
|