• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 package sun.util.calendar;
28 
29 @SuppressWarnings({"unchecked", "deprecation", "all"})
30 public abstract class AbstractCalendar extends sun.util.calendar.CalendarSystem {
31 
AbstractCalendar()32     protected AbstractCalendar() {
33         throw new RuntimeException("Stub!");
34     }
35 
getEra(java.lang.String eraName)36     public sun.util.calendar.Era getEra(java.lang.String eraName) {
37         throw new RuntimeException("Stub!");
38     }
39 
40     @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
getEras()41     public sun.util.calendar.Era[] getEras() {
42         throw new RuntimeException("Stub!");
43     }
44 
setEra(sun.util.calendar.CalendarDate date, java.lang.String eraName)45     public void setEra(sun.util.calendar.CalendarDate date, java.lang.String eraName) {
46         throw new RuntimeException("Stub!");
47     }
48 
setEras(sun.util.calendar.Era[] eras)49     protected void setEras(sun.util.calendar.Era[] eras) {
50         throw new RuntimeException("Stub!");
51     }
52 
getCalendarDate()53     public sun.util.calendar.CalendarDate getCalendarDate() {
54         throw new RuntimeException("Stub!");
55     }
56 
getCalendarDate(long millis)57     public sun.util.calendar.CalendarDate getCalendarDate(long millis) {
58         throw new RuntimeException("Stub!");
59     }
60 
getCalendarDate(long millis, java.util.TimeZone zone)61     public sun.util.calendar.CalendarDate getCalendarDate(long millis, java.util.TimeZone zone) {
62         throw new RuntimeException("Stub!");
63     }
64 
getCalendarDate( long millis, sun.util.calendar.CalendarDate date)65     public sun.util.calendar.CalendarDate getCalendarDate(
66             long millis, sun.util.calendar.CalendarDate date) {
67         throw new RuntimeException("Stub!");
68     }
69 
getTime(sun.util.calendar.CalendarDate date)70     public long getTime(sun.util.calendar.CalendarDate date) {
71         throw new RuntimeException("Stub!");
72     }
73 
getTimeOfDay(sun.util.calendar.CalendarDate date)74     protected long getTimeOfDay(sun.util.calendar.CalendarDate date) {
75         throw new RuntimeException("Stub!");
76     }
77 
78     @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
getTimeOfDayValue(sun.util.calendar.CalendarDate date)79     public long getTimeOfDayValue(sun.util.calendar.CalendarDate date) {
80         throw new RuntimeException("Stub!");
81     }
82 
setTimeOfDay( sun.util.calendar.CalendarDate cdate, int fraction)83     public sun.util.calendar.CalendarDate setTimeOfDay(
84             sun.util.calendar.CalendarDate cdate, int fraction) {
85         throw new RuntimeException("Stub!");
86     }
87 
getWeekLength()88     public int getWeekLength() {
89         throw new RuntimeException("Stub!");
90     }
91 
isLeapYear(sun.util.calendar.CalendarDate date)92     protected abstract boolean isLeapYear(sun.util.calendar.CalendarDate date);
93 
getNthDayOfWeek( int nth, int dayOfWeek, sun.util.calendar.CalendarDate date)94     public sun.util.calendar.CalendarDate getNthDayOfWeek(
95             int nth, int dayOfWeek, sun.util.calendar.CalendarDate date) {
96         throw new RuntimeException("Stub!");
97     }
98 
getDayOfWeekDateBefore(long fixedDate, int dayOfWeek)99     static long getDayOfWeekDateBefore(long fixedDate, int dayOfWeek) {
100         throw new RuntimeException("Stub!");
101     }
102 
getDayOfWeekDateAfter(long fixedDate, int dayOfWeek)103     static long getDayOfWeekDateAfter(long fixedDate, int dayOfWeek) {
104         throw new RuntimeException("Stub!");
105     }
106 
107     @android.compat.annotation.UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553)
getDayOfWeekDateOnOrBefore(long fixedDate, int dayOfWeek)108     public static long getDayOfWeekDateOnOrBefore(long fixedDate, int dayOfWeek) {
109         throw new RuntimeException("Stub!");
110     }
111 
getFixedDate(sun.util.calendar.CalendarDate date)112     protected abstract long getFixedDate(sun.util.calendar.CalendarDate date);
113 
getCalendarDateFromFixedDate( sun.util.calendar.CalendarDate date, long fixedDate)114     protected abstract void getCalendarDateFromFixedDate(
115             sun.util.calendar.CalendarDate date, long fixedDate);
116 
validateTime(sun.util.calendar.CalendarDate date)117     public boolean validateTime(sun.util.calendar.CalendarDate date) {
118         throw new RuntimeException("Stub!");
119     }
120 
normalizeTime(sun.util.calendar.CalendarDate date)121     int normalizeTime(sun.util.calendar.CalendarDate date) {
122         throw new RuntimeException("Stub!");
123     }
124 
125     static final int DAY_IN_MILLIS = 86400000; // 0x5265c00
126 
127     static final int EPOCH_OFFSET = 719163; // 0xaf93b
128 
129     static final int HOUR_IN_MILLIS = 3600000; // 0x36ee80
130 
131     static final int MINUTE_IN_MILLIS = 60000; // 0xea60
132 
133     static final int SECOND_IN_MILLIS = 1000; // 0x3e8
134 
135     private sun.util.calendar.Era[] eras;
136 }
137