当前位置: 首页>>代码示例>>Java>>正文


Java PathUtils.setPrivateDataDirectorySuffix方法代码示例

本文整理汇总了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;
}
 
开发者ID:rkshuai,项目名称:chromium-for-android-56-debug-video,代码行数:22,代码来源:ChromeBrowserInitializer.java

示例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();
}
 
开发者ID:lizhangqu,项目名称:chromium-net-for-android,代码行数:9,代码来源:CronetPerfTestActivity.java

示例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);
}
 
开发者ID:Smalinuxer,项目名称:Vafrinn,代码行数:11,代码来源:ChromeApplication.java

示例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>();
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:13,代码来源:ChromiumTestShellApplication.java

示例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);
    }
}
 
开发者ID:mogoweb,项目名称:chromium_webview,代码行数:14,代码来源:AwBrowserProcess.java

示例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);
    }
}
 
开发者ID:R4md4c,项目名称:cordova-android-chromium,代码行数:14,代码来源:AwBrowserProcess.java

示例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());
}
 
开发者ID:lizhangqu,项目名称:chromium-net-for-android,代码行数:7,代码来源:CronetTestBase.java

示例8: initializeApplicationParameters

import org.chromium.base.PathUtils; //导入方法依赖的package包/类
public static void initializeApplicationParameters() {
    ResourceExtractor.setMandatoryPaksToExtract(MANDATORY_PAK_FILES);
    PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);
}
 
开发者ID:openresearch,项目名称:android-chromium-view,代码行数:5,代码来源:ContentShellApplication.java

示例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);
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:6,代码来源:ContentShellApplication.java


注:本文中的org.chromium.base.PathUtils.setPrivateDataDirectorySuffix方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。