1 /* 2 * Copyright (C) 2017 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 17 public class ParentClass { ParentClass()18 public ParentClass() {} 19 20 // INSTANCE FIELD 21 22 public int fieldPublicSdk = 211; 23 int fieldPackageSdk = 212; 24 protected int fieldProtectedSdk = 213; 25 private int fieldPrivateSdk = 214; 26 public int fieldPublicSdkB = 215; 27 28 public int fieldPublicUnsupported = 221; 29 int fieldPackageUnsupported = 222; 30 protected int fieldProtectedUnsupported = 223; 31 private int fieldPrivateUnsupported = 224; 32 public int fieldPublicUnsupportedB = 225; 33 34 public int fieldPublicConditionallyBlocked = 231; 35 int fieldPackageConditionallyBlocked = 232; 36 protected int fieldProtectedConditionallyBlocked = 233; 37 private int fieldPrivateConditionallyBlocked = 234; 38 public int fieldPublicConditionallyBlockedB = 235; 39 40 public int fieldPublicBlocklist = 241; 41 int fieldPackageBlocklist = 242; 42 protected int fieldProtectedBlocklist = 243; 43 private int fieldPrivateBlocklist = 244; 44 public int fieldPublicBlocklistB = 245; 45 46 public int fieldPublicBlocklistAndCorePlatformApi = 251; 47 int fieldPackageBlocklistAndCorePlatformApi = 252; 48 protected int fieldProtectedBlocklistAndCorePlatformApi = 253; 49 private int fieldPrivateBlocklistAndCorePlatformApi = 254; 50 public int fieldPublicBlocklistAndCorePlatformApiB = 255; 51 52 // STATIC FIELD 53 54 public static int fieldPublicStaticSdk = 111; 55 static int fieldPackageStaticSdk = 112; 56 protected static int fieldProtectedStaticSdk = 113; 57 private static int fieldPrivateStaticSdk = 114; 58 public static int fieldPublicStaticSdkB = 115; 59 60 public static int fieldPublicStaticUnsupported = 121; 61 static int fieldPackageStaticUnsupported = 122; 62 protected static int fieldProtectedStaticUnsupported = 123; 63 private static int fieldPrivateStaticUnsupported = 124; 64 public static int fieldPublicStaticUnsupportedB = 125; 65 66 public static int fieldPublicStaticConditionallyBlocked = 131; 67 static int fieldPackageStaticConditionallyBlocked = 132; 68 protected static int fieldProtectedStaticConditionallyBlocked = 133; 69 private static int fieldPrivateStaticConditionallyBlocked = 134; 70 public static int fieldPublicStaticConditionallyBlockedB = 135; 71 72 public static int fieldPublicStaticBlocklist = 141; 73 static int fieldPackageStaticBlocklist = 142; 74 protected static int fieldProtectedStaticBlocklist = 143; 75 private static int fieldPrivateStaticBlocklist = 144; 76 public static int fieldPublicStaticBlocklistB = 145; 77 78 public static int fieldPublicStaticBlocklistAndCorePlatformApi = 151; 79 static int fieldPackageStaticBlocklistAndCorePlatformApi = 152; 80 protected static int fieldProtectedStaticBlocklistAndCorePlatformApi = 153; 81 private static int fieldPrivateStaticBlocklistAndCorePlatformApi = 154; 82 public static int fieldPublicStaticBlocklistAndCorePlatformApiB = 155; 83 84 // INSTANCE METHOD 85 methodPublicSdk()86 public int methodPublicSdk() { return 411; } methodPackageSdk()87 int methodPackageSdk() { return 412; } methodProtectedSdk()88 protected int methodProtectedSdk() { return 413; } methodPrivateSdk()89 private int methodPrivateSdk() { return 414; } 90 methodPublicUnsupported()91 public int methodPublicUnsupported() { return 421; } methodPackageUnsupported()92 int methodPackageUnsupported() { return 422; } methodProtectedUnsupported()93 protected int methodProtectedUnsupported() { return 423; } methodPrivateUnsupported()94 private int methodPrivateUnsupported() { return 424; } 95 methodPublicConditionallyBlocked()96 public int methodPublicConditionallyBlocked() { return 431; } methodPackageConditionallyBlocked()97 int methodPackageConditionallyBlocked() { return 432; } methodProtectedConditionallyBlocked()98 protected int methodProtectedConditionallyBlocked() { return 433; } methodPrivateConditionallyBlocked()99 private int methodPrivateConditionallyBlocked() { return 434; } 100 methodPublicBlocklist()101 public int methodPublicBlocklist() { return 441; } methodPackageBlocklist()102 int methodPackageBlocklist() { return 442; } methodProtectedBlocklist()103 protected int methodProtectedBlocklist() { return 443; } methodPrivateBlocklist()104 private int methodPrivateBlocklist() { return 444; } 105 methodPublicBlocklistAndCorePlatformApi()106 public int methodPublicBlocklistAndCorePlatformApi() { return 451; } methodPackageBlocklistAndCorePlatformApi()107 int methodPackageBlocklistAndCorePlatformApi() { return 452; } methodProtectedBlocklistAndCorePlatformApi()108 protected int methodProtectedBlocklistAndCorePlatformApi() { return 453; } methodPrivateBlocklistAndCorePlatformApi()109 private int methodPrivateBlocklistAndCorePlatformApi() { return 454; } 110 111 // STATIC METHOD 112 methodPublicStaticSdk()113 public static int methodPublicStaticSdk() { return 311; } methodPackageStaticSdk()114 static int methodPackageStaticSdk() { return 312; } methodProtectedStaticSdk()115 protected static int methodProtectedStaticSdk() { return 313; } methodPrivateStaticSdk()116 private static int methodPrivateStaticSdk() { return 314; } 117 methodPublicStaticUnsupported()118 public static int methodPublicStaticUnsupported() { return 321; } methodPackageStaticUnsupported()119 static int methodPackageStaticUnsupported() { return 322; } methodProtectedStaticUnsupported()120 protected static int methodProtectedStaticUnsupported() { return 323; } methodPrivateStaticUnsupported()121 private static int methodPrivateStaticUnsupported() { return 324; } 122 methodPublicStaticConditionallyBlocked()123 public static int methodPublicStaticConditionallyBlocked() { return 331; } methodPackageStaticConditionallyBlocked()124 static int methodPackageStaticConditionallyBlocked() { return 332; } methodProtectedStaticConditionallyBlocked()125 protected static int methodProtectedStaticConditionallyBlocked() { return 333; } methodPrivateStaticConditionallyBlocked()126 private static int methodPrivateStaticConditionallyBlocked() { return 334; } 127 methodPublicStaticBlocklist()128 public static int methodPublicStaticBlocklist() { return 341; } methodPackageStaticBlocklist()129 static int methodPackageStaticBlocklist() { return 342; } methodProtectedStaticBlocklist()130 protected static int methodProtectedStaticBlocklist() { return 343; } methodPrivateStaticBlocklist()131 private static int methodPrivateStaticBlocklist() { return 344; } 132 methodPublicStaticBlocklistAndCorePlatformApi()133 public static int methodPublicStaticBlocklistAndCorePlatformApi() { return 351; } methodPackageStaticBlocklistAndCorePlatformApi()134 static int methodPackageStaticBlocklistAndCorePlatformApi() { return 352; } methodProtectedStaticBlocklistAndCorePlatformApi()135 protected static int methodProtectedStaticBlocklistAndCorePlatformApi() { return 353; } methodPrivateStaticBlocklistAndCorePlatformApi()136 private static int methodPrivateStaticBlocklistAndCorePlatformApi() { return 354; } 137 138 // CONSTRUCTOR 139 140 // Sdk ParentClass(int x, short y)141 public ParentClass(int x, short y) {} ParentClass(float x, short y)142 ParentClass(float x, short y) {} ParentClass(long x, short y)143 protected ParentClass(long x, short y) {} ParentClass(double x, short y)144 private ParentClass(double x, short y) {} 145 146 // Light greylist ParentClass(int x, boolean y)147 public ParentClass(int x, boolean y) {} ParentClass(float x, boolean y)148 ParentClass(float x, boolean y) {} ParentClass(long x, boolean y)149 protected ParentClass(long x, boolean y) {} ParentClass(double x, boolean y)150 private ParentClass(double x, boolean y) {} 151 152 // Dark greylist ParentClass(int x, byte y)153 public ParentClass(int x, byte y) {} ParentClass(float x, byte y)154 ParentClass(float x, byte y) {} ParentClass(long x, byte y)155 protected ParentClass(long x, byte y) {} ParentClass(double x, byte y)156 private ParentClass(double x, byte y) {} 157 158 // Blocklist ParentClass(int x, char y)159 public ParentClass(int x, char y) {} ParentClass(float x, char y)160 ParentClass(float x, char y) {} ParentClass(long x, char y)161 protected ParentClass(long x, char y) {} ParentClass(double x, char y)162 private ParentClass(double x, char y) {} 163 164 // Blocklist and CorePlatformApi ParentClass(int x, int y)165 public ParentClass(int x, int y) {} ParentClass(float x, int y)166 ParentClass(float x, int y) {} ParentClass(long x, int y)167 protected ParentClass(long x, int y) {} ParentClass(double x, int y)168 private ParentClass(double x, int y) {} 169 170 // HELPERS 171 callMethodPublicSdk()172 public int callMethodPublicSdk() { return methodPublicSdk(); } callMethodPackageSdk()173 public int callMethodPackageSdk() { return methodPackageSdk(); } callMethodProtectedSdk()174 public int callMethodProtectedSdk() { return methodProtectedSdk(); } 175 callMethodPublicUnsupported()176 public int callMethodPublicUnsupported() { return methodPublicUnsupported(); } callMethodPackageUnsupported()177 public int callMethodPackageUnsupported() { return methodPackageUnsupported(); } callMethodProtectedUnsupported()178 public int callMethodProtectedUnsupported() { return methodProtectedUnsupported(); } 179 callMethodPublicConditionallyBlocked()180 public int callMethodPublicConditionallyBlocked() { return methodPublicConditionallyBlocked(); } callMethodPackageConditionallyBlocked()181 public int callMethodPackageConditionallyBlocked() { return methodPackageConditionallyBlocked(); } callMethodProtectedConditionallyBlocked()182 public int callMethodProtectedConditionallyBlocked() { return methodProtectedConditionallyBlocked(); } 183 callMethodPublicBlocklist()184 public int callMethodPublicBlocklist() { return methodPublicBlocklist(); } callMethodPackageBlocklist()185 public int callMethodPackageBlocklist() { return methodPackageBlocklist(); } callMethodProtectedBlocklist()186 public int callMethodProtectedBlocklist() { return methodProtectedBlocklist(); } 187 callMethodPublicBlocklistAndCorePlatformApi()188 public int callMethodPublicBlocklistAndCorePlatformApi() { 189 return methodPublicBlocklistAndCorePlatformApi(); 190 } 191 callMethodPackageBlocklistAndCorePlatformApi()192 public int callMethodPackageBlocklistAndCorePlatformApi() { 193 return methodPackageBlocklistAndCorePlatformApi(); 194 } 195 callMethodProtectedBlocklistAndCorePlatformApi()196 public int callMethodProtectedBlocklistAndCorePlatformApi() { 197 return methodProtectedBlocklistAndCorePlatformApi(); 198 } 199 } 200