blob: 779aa1d09d90c9ae4ca5604965b2808ab18f812d [file] [log] [blame]
Ian Rogersc71f6522012-04-11 14:06:31 -07001/*
2 * Copyright (C) 2012 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package other;
18
19// Class that cannot be accessed outside of this package.
20class ProtectedClass {
21 public boolean otherProtectedClassPublicBooleanInstanceField = true;
22 public byte otherProtectedClassPublicByteInstanceField = 2;
23 public char otherProtectedClassPublicCharInstanceField = 3;
24 public short otherProtectedClassPublicShortInstanceField = 4;
25 public int otherProtectedClassPublicIntInstanceField = 5;
26 public long otherProtectedClassPublicLongInstanceField = 6;
27 public float otherProtectedClassPublicFloatInstanceField = 7.0f;
28 public double otherProtectedClassPublicDoubleInstanceField = 8.0;
29 public Object otherProtectedClassPublicObjectInstanceField = "9";
30
31 protected boolean otherProtectedClassProtectedBooleanInstanceField = true;
32 protected byte otherProtectedClassProtectedByteInstanceField = 10;
33 protected char otherProtectedClassProtectedCharInstanceField = 11;
34 protected short otherProtectedClassProtectedShortInstanceField = 12;
35 protected int otherProtectedClassProtectedIntInstanceField = 13;
36 protected long otherProtectedClassProtectedLongInstanceField = 14;
37 protected float otherProtectedClassProtectedFloatInstanceField = 15.0f;
38 protected double otherProtectedClassProtectedDoubleInstanceField = 16.0;
39 protected Object otherProtectedClassProtectedObjectInstanceField = "17";
40
41 private boolean otherProtectedClassPrivateBooleanInstanceField = true;
42 private byte otherProtectedClassPrivateByteInstanceField = 18;
43 private char otherProtectedClassPrivateCharInstanceField = 19;
44 private short otherProtectedClassPrivateShortInstanceField = 20;
45 private int otherProtectedClassPrivateIntInstanceField = 21;
46 private long otherProtectedClassPrivateLongInstanceField = 22;
47 private float otherProtectedClassPrivateFloatInstanceField = 23.0f;
48 private double otherProtectedClassPrivateDoubleInstanceField = 24.0;
49 private Object otherProtectedClassPrivateObjectInstanceField = "25";
50
51 /* package */ boolean otherProtectedClassPackageBooleanInstanceField = true;
52 /* package */ byte otherProtectedClassPackageByteInstanceField = 26;
53 /* package */ char otherProtectedClassPackageCharInstanceField = 27;
54 /* package */ short otherProtectedClassPackageShortInstanceField = 28;
55 /* package */ int otherProtectedClassPackageIntInstanceField = 29;
56 /* package */ long otherProtectedClassPackageLongInstanceField = 30;
57 /* package */ float otherProtectedClassPackageFloatInstanceField = 31.0f;
58 /* package */ double otherProtectedClassPackageDoubleInstanceField = 32.0;
59 /* package */ Object otherProtectedClassPackageObjectInstanceField = "33";
60
61 public static boolean otherProtectedClassPublicBooleanStaticField = true;
62 public static byte otherProtectedClassPublicByteStaticField = 34;
63 public static char otherProtectedClassPublicCharStaticField = 35;
64 public static short otherProtectedClassPublicShortStaticField = 36;
65 public static int otherProtectedClassPublicIntStaticField = 37;
66 public static long otherProtectedClassPublicLongStaticField = 38;
67 public static float otherProtectedClassPublicFloatStaticField = 39.0f;
68 public static double otherProtectedClassPublicDoubleStaticField = 40.0;
69 public static Object otherProtectedClassPublicObjectStaticField = "41";
70
71 protected static boolean otherProtectedClassProtectedBooleanStaticField = true;
72 protected static byte otherProtectedClassProtectedByteStaticField = 42;
73 protected static char otherProtectedClassProtectedCharStaticField = 43;
74 protected static short otherProtectedClassProtectedShortStaticField = 44;
75 protected static int otherProtectedClassProtectedIntStaticField = 45;
76 protected static long otherProtectedClassProtectedLongStaticField = 46;
77 protected static float otherProtectedClassProtectedFloatStaticField = 47.0f;
78 protected static double otherProtectedClassProtectedDoubleStaticField = 48.0;
79 protected static Object otherProtectedClassProtectedObjectStaticField = "49";
80
81 private static boolean otherProtectedClassPrivateBooleanStaticField = true;
82 private static byte otherProtectedClassPrivateByteStaticField = 50;
83 private static char otherProtectedClassPrivateCharStaticField = 51;
84 private static short otherProtectedClassPrivateShortStaticField = 52;
85 private static int otherProtectedClassPrivateIntStaticField = 53;
86 private static long otherProtectedClassPrivateLongStaticField = 54;
87 private static float otherProtectedClassPrivateFloatStaticField = 55.0f;
88 private static double otherProtectedClassPrivateDoubleStaticField = 56.0;
89 private static Object otherProtectedClassPrivateObjectStaticField = "57";
90
91 /* package */ static boolean otherProtectedClassPackageBooleanStaticField = true;
92 /* package */ static byte otherProtectedClassPackageByteStaticField = 58;
93 /* package */ static char otherProtectedClassPackageCharStaticField = 59;
94 /* package */ static short otherProtectedClassPackageShortStaticField = 60;
95 /* package */ static int otherProtectedClassPackageIntStaticField = 61;
96 /* package */ static long otherProtectedClassPackageLongStaticField = 62;
97 /* package */ static float otherProtectedClassPackageFloatStaticField = 63.0f;
98 /* package */ static double otherProtectedClassPackageDoubleStaticField = 64.0;
99 /* package */ static Object otherProtectedClassPackageObjectStaticField = "65";
100}