Home
last modified time | relevance | path

Searched refs:ScopedUtfChars (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/tools/aapt2/jni/
DScopedUtfChars.h28 class ScopedUtfChars {
30 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars() function
35 ScopedUtfChars(ScopedUtfChars&& rhs) : in ScopedUtfChars() function
42 ~ScopedUtfChars() { in ~ScopedUtfChars()
48 ScopedUtfChars& operator=(ScopedUtfChars&& rhs) {
51 this->~ScopedUtfChars();
81 DISALLOW_COPY_AND_ASSIGN(ScopedUtfChars);
Daapt2_jni.cpp37 static std::vector<ScopedUtfChars> list_to_utfchars(JNIEnv *env, jobject obj) { in list_to_utfchars()
38 std::vector<ScopedUtfChars> converted; in list_to_utfchars()
56 converted.push_back(ScopedUtfChars(env, string_obj)); in list_to_utfchars()
68 static std::vector<StringPiece> extract_pieces(const std::vector<ScopedUtfChars> &strings) { in extract_pieces()
73 [&pieces](const ScopedUtfChars &p) { pieces.push_back(p.c_str()); }); in extract_pieces()
122 std::vector<ScopedUtfChars> compile_args_jni = in Java_com_android_tools_aapt2_Aapt2Jni_nativeCompile()
133 std::vector<ScopedUtfChars> link_args_jni = in Java_com_android_tools_aapt2_Aapt2Jni_nativeLink()
/frameworks/base/core/jni/
Dandroid_os_GraphicsEnvironment.cpp32 ScopedUtfChars pathChars(env, path); in setDriverPathAndSphalLibraries_native()
33 ScopedUtfChars sphalLibrariesChars(env, sphalLibraries); in setDriverPathAndSphalLibraries_native()
41 ScopedUtfChars driverPackageNameChars(env, driverPackageName); in setGpuStats_native()
42 ScopedUtfChars driverVersionNameChars(env, driverVersionName); in setGpuStats_native()
43 ScopedUtfChars appPackageNameChars(env, appPackageName); in setGpuStats_native()
52 ScopedUtfChars pathChars(env, path); in setAngleInfo_native()
53 ScopedUtfChars appNameChars(env, appName); in setAngleInfo_native()
54 ScopedUtfChars devOptInChars(env, devOptIn); in setAngleInfo_native()
63 ScopedUtfChars appNameChars(env, appName); in shouldUseAngle_native()
70 ScopedUtfChars layerPathsChars(env, layerPaths); in setLayerPaths_native()
[all …]
Dandroid_os_SELinux.cpp96 ScopedUtfChars path(env, pathStr); in fileSelabelLookup()
194 std::unique_ptr<ScopedUtfChars> context; in setFSCreateCon()
197 context.reset(new ScopedUtfChars(env, contextStr)); in setFSCreateCon()
225 ScopedUtfChars path(env, pathStr); in setFileCon()
230 ScopedUtfChars context(env, contextStr); in setFileCon()
258 ScopedUtfChars path(env, pathStr); in getFileCon()
345 ScopedUtfChars subjectContext(env, subjectContextStr); in checkSELinuxAccess()
350 ScopedUtfChars objectContext(env, objectContextStr); in checkSELinuxAccess()
355 ScopedUtfChars objectClass(env, objectClassStr); in checkSELinuxAccess()
360 ScopedUtfChars permission(env, permissionStr); in checkSELinuxAccess()
[all …]
Dcom_android_internal_content_NativeLibraryHelper.cpp180 ScopedUtfChars nativeLibPath(env, *javaNativeLibPath); in copyFileIfChanged()
402 const ScopedUtfChars cpuAbi(env, javaCpuAbi); in iterateOverNativeFiles()
434 Vector<ScopedUtfChars*> supportedAbis; in findSupportedAbi()
437 supportedAbis.add(new ScopedUtfChars(env, in findSupportedAbi()
469 const ScopedUtfChars* abi = supportedAbis[i]; in findSupportedAbi()
550 ScopedUtfChars filePath(env, apkPath); in com_android_internal_content_NativeLibraryHelper_openApk()
560 ScopedUtfChars debugFilePath(env, debugPathName); in com_android_internal_content_NativeLibraryHelper_openApkFd()
Dandroid_util_jar_StrictJarFile.cpp59 ScopedUtfChars nameChars(env, name); in StrictJarFile_nativeOpenJarFile()
97 ScopedUtfChars prefixChars(env, prefix); in StrictJarFile_nativeStartIteration()
142 ScopedUtfChars entryNameChars(env, entryName); in StrictJarFile_nativeFindEntry()
Dandroid_content_res_ApkAssets.cpp36 ScopedUtfChars path(env, java_path); in NativeLoad()
62 ScopedUtfChars friendly_name_utf8(env, friendly_name); in NativeLoadFromFd()
113 ScopedUtfChars path_utf8(env, file_name); in NativeOpenXml()
Dandroid_os_UEventObserver.cpp88 ScopedUtfChars match(env, matchStr); in nativeAddMatch()
95 ScopedUtfChars match(env, matchStr); in nativeRemoveMatch()
Dandroid_os_SystemProperties.cpp42 ScopedUtfChars key_utf(env, keyJ); in ConvertKeyAndForward()
104 ScopedUtfChars key_utf(env, valJ); in SystemProperties_set()
Dandroid_media_RemoteDisplay.cpp139 ScopedUtfChars iface(env, ifaceStr); in nativeListen()
140 ScopedUtfChars opPackageName(env, opPackageNameStr); in nativeListen()
Dcom_android_internal_os_AtomicDirectory.cpp26 ScopedUtfChars path8(env, path); in com_android_internal_os_AtomicDirectory_getDirectoryFd()
Dandroid_os_HwBinder.cpp266 ScopedUtfChars str(env, serviceNameObj); in JHwBinder_native_registerService()
308 ScopedUtfChars str(env, ifaceNameObj); in JHwBinder_native_getService()
317 ScopedUtfChars str(env, serviceNameObj); in JHwBinder_native_getService()
Dandroid_util_AssetManager.cpp359 const ScopedUtfChars package_name_utf8(env, package_name); in NativeGetOverlayableMap()
517 ScopedUtfChars locale_utf8(env, locale); in NativeSetConfiguration()
562 ScopedUtfChars path_utf8(env, path); in NativeList()
602 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAsset()
628 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenAssetFd()
648 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenNonAsset()
682 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenNonAssetFd()
708 ScopedUtfChars asset_path_utf8(env, asset_path); in NativeOpenXmlAsset()
1024 ScopedUtfChars name_utf8(env, name); in NativeGetResourceIdentifier()
1032 ScopedUtfChars type_utf8(env, def_type); in NativeGetResourceIdentifier()
[all …]
Dcore_jni_helpers.h85 ScopedUtfChars chars(env, strObj.get()); in getStringField()
Dandroid_util_FileObserver.cpp120 ScopedUtfChars path(env, pathString); in android_os_fileobserver_startWatching()
/frameworks/base/services/core/jni/
Dcom_android_server_GraphicsStatsService.cpp54 ScopedUtfChars pathChars(env, jpath); in addToDump()
58 ScopedUtfChars packageChars(env, jpackage); in addToDump()
68 ScopedUtfChars pathChars(env, jpath); in addFileToDump()
85 ScopedUtfChars pathChars(env, jpath); in saveBuffer()
87 ScopedUtfChars packageChars(env, jpackage); in saveBuffer()
Dcom_android_server_PersistentDataBlockService.cpp81 ScopedUtfChars path(env, jpath); in com_android_server_PersistentDataBlockService_getBlockDeviceSize()
95 ScopedUtfChars path(env, jpath); in com_android_server_PersistentDataBlockService_wipe()
Dcom_android_server_TestNetworkService.cpp84 ScopedUtfChars iface(env, jIface); in create()
Dcom_android_server_tv_TvUinputBridge.cpp190 ScopedUtfChars name(env, nameStr); in nativeOpen()
191 ScopedUtfChars uniqueId(env, uniqueIdStr); in nativeOpen()
Dcom_android_server_power_PowerManagerService.cpp251 ScopedUtfChars name(env, nameStr); in nativeAcquireSuspendBlocker()
256 ScopedUtfChars name(env, nameStr); in nativeReleaseSuspendBlocker()
/frameworks/base/core/jni/android/graphics/fonts/
DFont.cpp92 ScopedUtfChars str(env, path); in Font_Builder_getNativeAsset()
151 ScopedUtfChars fontPath(env, filePath); in Font_Builder_build()
DFontFamily.cpp66 ScopedUtfChars str(env, langTags); in FontFamily_Builder_build()
/frameworks/base/media/jni/audioeffect/
Dandroid_media_SourceDefaultEffect.cpp50 ScopedUtfChars opPackageNameStr(env, opPackageName); in android_media_SourceDefaultEffect_native_setup()
Dandroid_media_StreamDefaultEffect.cpp50 ScopedUtfChars opPackageNameStr(env, opPackageName); in android_media_StreamDefaultEffect_native_setup()
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp69 ScopedUtfChars str(env, langs); in FontFamily_initBuilder()
232 ScopedUtfChars str(env, jpath); in FontFamily_addFontFromAssetManager()

123