/frameworks/base/tools/aapt/ |
D | ResourceTable.h | 38 const String16& resourceName, 45 const String16& resourceName, 53 const String16& resourceName, 83 String16 resourceName; 112 ResourceTable(Bundle* bundle, const String16& assetsPackage, PackageType type); 114 const String16& getAssetsPackage() const { in getAssetsPackage() 133 const String16& package, 134 const String16& type, 135 const String16& name, 139 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 | 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 | XMLNode.h | 20 String16 getNamespaceResourcePackage(String16 namespaceUri, bool* outIsPublic = NULL); 25 const String16& endTag, 26 String16* outString, 43 sp<XMLNode> newNamespace(const String8& filename, const String16& prefix, const String16& uri) { in newNamespace() 48 sp<XMLNode> newElement(const String8& filename, const String16& ns, const String16& name) { in newElement() 65 const String16& getNamespacePrefix() const; 66 const String16& getNamespaceUri() const; 68 const String16& getElementNamespace() const; 69 const String16& getElementName() const; 86 String16 ns; [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() 243 static String16 mayOrMust(int type, int flags) in mayOrMust() 246 return String16("<p>Must"); in mayOrMust() 249 return String16("<p>May"); in mayOrMust() 252 static void appendTypeInfo(ResourceTable* outTable, const String16& pkg, in appendTypeInfo() 253 const String16& typeName, const String16& ident, int type, in appendTypeInfo() 259 String16 fullMsg(mayOrMust(type, flags->value)); in appendTypeInfo() 260 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 …]
|
D | StringPool.h | 46 entry(const String16& _value) : value(_value), offset(0), hasStyles(false) { } in entry() 51 String16 value; 71 String16 name; 98 ssize_t add(const String16& value, bool mergeDuplicates = false, 101 ssize_t add(const String16& value, const Vector<entry_style_span>& spans, 104 status_t addStyleSpan(size_t idx, const String16& name, 133 ssize_t offsetForString(const String16& val) const; 141 const Vector<size_t>* offsetsForString(const String16& val) const; 178 DefaultKeyedVector<String16, ssize_t> mValues;
|
/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/av/services/audioflinger/ |
D | ServiceUtilities.cpp | 37 bool recordingAllowed(const String16& opPackageName) { in recordingAllowed() 47 static const String16 sRecordAudio("android.permission.RECORD_AUDIO"); in recordingAllowed() 61 String16 checkedOpPackageName = opPackageName; in recordingAllowed() 72 sp<IBinder> binder = sm->getService(String16("permission")); in recordingAllowed() 79 Vector<String16> packages; in recordingAllowed() 102 static const String16 sCaptureAudioOutput("android.permission.CAPTURE_AUDIO_OUTPUT"); in captureAudioOutputAllowed() 110 static const String16 sCaptureHotwordAllowed("android.permission.CAPTURE_AUDIO_HOTWORD"); in captureHotwordAllowed() 119 static const String16 sAudioSettings("android.permission.MODIFY_AUDIO_SETTINGS"); in settingsAllowed() 127 static const String16 sModifyAudioRoutingAllowed("android.permission.MODIFY_AUDIO_ROUTING"); in modifyAudioRoutingAllowed() 136 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/native/include/binder/ |
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,
|
D | IInterface.h | 53 virtual sp<IInterface> queryLocalInterface(const String16& _descriptor); 54 virtual const String16& getInterfaceDescriptor() const; 75 static const android::String16 descriptor; \ 78 virtual const android::String16& getInterfaceDescriptor() const; \ 84 const android::String16 I##INTERFACE::descriptor(NAME); \ 85 const android::String16& \ 116 const String16& _descriptor) in queryLocalInterface() 123 inline const String16& BnInterface<INTERFACE>::getInterfaceDescriptor() const in getInterfaceDescriptor()
|
/frameworks/native/include/gui/ |
D | SensorManager.h | 54 static SensorManager& getInstanceForPackage(const String16& packageName) { in getInstanceForPackage() 58 std::map<String16, SensorManager*>::iterator iterator = in getInstanceForPackage() 64 String16 opPackageName = packageName; in getInstanceForPackage() 73 sp<IBinder> binder = defaultServiceManager()->getService(String16("permission")); in getInstanceForPackage() 76 Vector<String16> packages; in getInstanceForPackage() 94 sPackageInstances.insert(std::make_pair(String16(), sensorManager)); in getInstanceForPackage() 104 SensorManager(const String16& opPackageName); 120 static std::map<String16, SensorManager*> sPackageInstances; 127 const String16 mOpPackageName;
|
/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/native/libs/binder/ |
D | IServiceManager.cpp | 50 bool checkCallingPermission(const String16& permission) in checkCallingPermission() 55 static String16 _permission("permission"); 58 bool checkCallingPermission(const String16& permission, int32_t* outPid, int32_t* outUid) in checkCallingPermission() 68 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) in checkPermission() 134 virtual sp<IBinder> getService(const String16& name) const in getService() 146 virtual sp<IBinder> checkService( const String16& name) const in checkService() 155 virtual status_t addService(const String16& name, const sp<IBinder>& service, in addService() 167 virtual Vector<String16> listServices() in listServices() 169 Vector<String16> res; in listServices() 196 String16 which = data.readString16(); in onTransact() [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/dumpsys/ |
D | dumpsys.cpp | 24 static int sort_func(const String16* lhs, const String16* rhs) in sort_func() 40 Vector<String16> services; in main() 41 Vector<String16> args; in main() 49 args.add(String16("-a")); in main() 51 services.add(String16(argv[1])); in main() 53 args.add(String16(argv[i])); in main()
|
/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()
|