本文整理汇总了Java中org.chromium.base.PathUtils.setPrivateDataDirectorySuffix方法的典型用法代码示例。如果您正苦于以下问题:Java PathUtils.setPrivateDataDirectorySuffix方法的具体用法?Java PathUtils.setPrivateDataDirectorySuffix怎么用?Java PathUtils.setPrivateDataDirectorySuffix使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.chromium.base.PathUtils
的用法示例。
在下文中一共展示了PathUtils.setPrivateDataDirectorySuffix方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: preInflationStartup
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
private void preInflationStartup() {
ThreadUtils.assertOnUiThread();
if (mPreInflationStartupComplete) return;
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
// Ensure critical files are available, so they aren't blocked on the file-system
// behind long-running accesses in next phase.
// Don't do any large file access here!
ContentApplication.initCommandLine(mApplication);
waitForDebuggerIfNeeded();
ChromeStrictMode.configureStrictMode();
ChromeWebApkHost.init();
warmUpSharedPrefs();
DeviceUtils.addDeviceSpecificUserAgentSwitch(mApplication);
ApplicationStatus.registerStateListenerForAllActivities(
createActivityStateListener());
mPreInflationStartupComplete = true;
}
示例2: onCreate
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, this);
mConfig = getIntent().getData();
// Execute benchmarks on another thread to avoid networking on main thread.
new BenchmarkTask().execute();
}
示例3: initializeLibraryDependencies
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
@Override
protected void initializeLibraryDependencies() {
// The ResourceExtractor is only needed by the browser process, but this will have no
// impact on the renderer process construction.
ResourceBundle.initializeLocalePaks(this, R.array.locale_paks);
if (!BuildInfo.hasLanguageApkSplits(this)) {
ResourceExtractor.setResourcesToExtract(ResourceBundle.getActiveLocaleResources());
}
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, this);
}
示例4: onCreate
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
@Override
public void onCreate() {
// We want to do this at the earliest possible point in startup.
UmaUtils.recordMainEntryPointTime();
super.onCreate();
ResourceExtractor.setMandatoryPaksToExtract(CHROME_MANDATORY_PAKS);
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
LibraryLoader.setLibraryToLoad(LIBRARIES);
mObservers = new ArrayList<ChromiumTestShellApplicationObserver>();
}
示例5: loadLibrary
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
/**
* Loads the native library, and performs basic static construction of objects needed
* to run webview in this process. Does not create threads; safe to call from zygote.
* Note: it is up to the caller to ensure this is only called once.
*/
public static void loadLibrary() {
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
try {
LibraryLoader.loadNow(null);
} catch (ProcessInitException e) {
throw new RuntimeException("Cannot load WebView", e);
}
}
示例6: loadLibrary
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
/**
* Loads the native library, and performs basic static construction of objects needed
* to run webview in this process. Does not create threads; safe to call from zygote.
* Note: it is up to the caller to ensure this is only called once.
*/
public static void loadLibrary() {
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
try {
LibraryLoader.loadNow();
} catch (ProcessInitException e) {
throw new RuntimeException("Cannot load WebView", e);
}
}
示例7: setUp
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
@Override
protected void setUp() throws Exception {
super.setUp();
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX, getContext());
CronetTestFramework.prepareTestStorage(getContext());
}
示例8: initializeApplicationParameters
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
public static void initializeApplicationParameters() {
ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
}
示例9: initializeApplicationParameters
import org.chromium.base.PathUtils; //导入方法依赖的package包/类
public static void initializeApplicationParameters() {
ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
LibraryLoader.setLibraryToLoad(LIBRARIES);
}