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


Java Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE属性代码示例

本文整理汇总了Java中com.google.samples.apps.iosched.Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE属性的典型用法代码示例。如果您正苦于以下问题:Java Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE属性的具体用法?Java Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE怎么用?Java Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.google.samples.apps.iosched.Config的用法示例。


在下文中一共展示了Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: calculateRecommendedSyncInterval

private static long calculateRecommendedSyncInterval(final Context context) {
    long now = UIUtils.getCurrentTime(context);
    long aroundConferenceStart = Config.CONFERENCE_START_MILLIS
            - Config.AUTO_SYNC_AROUND_CONFERENCE_THRESH;
    if (now < aroundConferenceStart) {
        return Config.AUTO_SYNC_INTERVAL_LONG_BEFORE_CONFERENCE;
    } else if (now <= Config.CONFERENCE_END_MILLIS) {
        return Config.AUTO_SYNC_INTERVAL_AROUND_CONFERENCE;
    } else {
        return Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE;
    }
}
 
开发者ID:dreaminglion,项目名称:iosched-reader,代码行数:12,代码来源:SyncHelper.java

示例2: calculateRecommendedSyncInterval

public static long calculateRecommendedSyncInterval(final Context context) {
    long now = UIUtils.getCurrentTime(context);
    long aroundConferenceStart = Config.CONFERENCE_START_MILLIS - Config.AUTO_SYNC_AROUND_CONFERENCE_THRESH;
    if (now < aroundConferenceStart) {
        return Config.AUTO_SYNC_INTERVAL_LONG_BEFORE_CONFERENCE;
    } else if (now <= Config.CONFERENCE_END_MILLIS) {
        return Config.AUTO_SYNC_INTERVAL_AROUND_CONFERENCE;
    } else {
        return Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE;
    }
}
 
开发者ID:gdg-bh,项目名称:AppDevFestSudeste2015,代码行数:11,代码来源:SyncHelper.java

示例3: calculateRecommendedSyncInterval

private static long calculateRecommendedSyncInterval(final Context context) {
    long now = TimeUtils.getCurrentTime(context);
    long aroundConferenceStart = Config.CONFERENCE_START_MILLIS
            - Config.AUTO_SYNC_AROUND_CONFERENCE_THRESH;
    if (now < aroundConferenceStart) {
        return Config.AUTO_SYNC_INTERVAL_LONG_BEFORE_CONFERENCE;
    } else if (now <= Config.CONFERENCE_END_MILLIS) {
        return Config.AUTO_SYNC_INTERVAL_AROUND_CONFERENCE;
    } else {
        return Config.AUTO_SYNC_INTERVAL_AFTER_CONFERENCE;
    }
}
 
开发者ID:google,项目名称:iosched,代码行数:12,代码来源:SyncHelper.java


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