本文整理汇总了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;
}
}
示例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;
}
}
示例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;
}
}