Home | History | Annotate | Download | only in src
      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 {
     18   public ParentClass() {}
     19 
     20   // INSTANCE FIELD
     21 
     22   public int fieldPublicWhitelist = 211;
     23   int fieldPackageWhitelist = 212;
     24   protected int fieldProtectedWhitelist = 213;
     25   private int fieldPrivateWhitelist = 214;
     26   public int fieldPublicWhitelistB = 215;
     27 
     28   public int fieldPublicLightGreylist = 221;
     29   int fieldPackageLightGreylist = 222;
     30   protected int fieldProtectedLightGreylist = 223;
     31   private int fieldPrivateLightGreylist = 224;
     32   public int fieldPublicLightGreylistB = 225;
     33 
     34   public int fieldPublicDarkGreylist = 231;
     35   int fieldPackageDarkGreylist = 232;
     36   protected int fieldProtectedDarkGreylist = 233;
     37   private int fieldPrivateDarkGreylist = 234;
     38   public int fieldPublicDarkGreylistB = 235;
     39 
     40   public int fieldPublicBlacklist = 241;
     41   int fieldPackageBlacklist = 242;
     42   protected int fieldProtectedBlacklist = 243;
     43   private int fieldPrivateBlacklist = 244;
     44   public int fieldPublicBlacklistB = 245;
     45 
     46   // STATIC FIELD
     47 
     48   public static int fieldPublicStaticWhitelist = 111;
     49   static int fieldPackageStaticWhitelist = 112;
     50   protected static int fieldProtectedStaticWhitelist = 113;
     51   private static int fieldPrivateStaticWhitelist = 114;
     52   public static int fieldPublicStaticWhitelistB = 115;
     53 
     54   public static int fieldPublicStaticLightGreylist = 121;
     55   static int fieldPackageStaticLightGreylist = 122;
     56   protected static int fieldProtectedStaticLightGreylist = 123;
     57   private static int fieldPrivateStaticLightGreylist = 124;
     58   public static int fieldPublicStaticLightGreylistB = 125;
     59 
     60   public static int fieldPublicStaticDarkGreylist = 131;
     61   static int fieldPackageStaticDarkGreylist = 132;
     62   protected static int fieldProtectedStaticDarkGreylist = 133;
     63   private static int fieldPrivateStaticDarkGreylist = 134;
     64   public static int fieldPublicStaticDarkGreylistB = 135;
     65 
     66   public static int fieldPublicStaticBlacklist = 141;
     67   static int fieldPackageStaticBlacklist = 142;
     68   protected static int fieldProtectedStaticBlacklist = 143;
     69   private static int fieldPrivateStaticBlacklist = 144;
     70   public static int fieldPublicStaticBlacklistB = 145;
     71 
     72   // INSTANCE METHOD
     73 
     74   public int methodPublicWhitelist() { return 411; }
     75   int methodPackageWhitelist() { return 412; }
     76   protected int methodProtectedWhitelist() { return 413; }
     77   private int methodPrivateWhitelist() { return 414; }
     78 
     79   public int methodPublicLightGreylist() { return 421; }
     80   int methodPackageLightGreylist() { return 422; }
     81   protected int methodProtectedLightGreylist() { return 423; }
     82   private int methodPrivateLightGreylist() { return 424; }
     83 
     84   public int methodPublicDarkGreylist() { return 431; }
     85   int methodPackageDarkGreylist() { return 432; }
     86   protected int methodProtectedDarkGreylist() { return 433; }
     87   private int methodPrivateDarkGreylist() { return 434; }
     88 
     89   public int methodPublicBlacklist() { return 441; }
     90   int methodPackageBlacklist() { return 442; }
     91   protected int methodProtectedBlacklist() { return 443; }
     92   private int methodPrivateBlacklist() { return 444; }
     93 
     94   // STATIC METHOD
     95 
     96   public static int methodPublicStaticWhitelist() { return 311; }
     97   static int methodPackageStaticWhitelist() { return 312; }
     98   protected static int methodProtectedStaticWhitelist() { return 313; }
     99   private static int methodPrivateStaticWhitelist() { return 314; }
    100 
    101   public static int methodPublicStaticLightGreylist() { return 321; }
    102   static int methodPackageStaticLightGreylist() { return 322; }
    103   protected static int methodProtectedStaticLightGreylist() { return 323; }
    104   private static int methodPrivateStaticLightGreylist() { return 324; }
    105 
    106   public static int methodPublicStaticDarkGreylist() { return 331; }
    107   static int methodPackageStaticDarkGreylist() { return 332; }
    108   protected static int methodProtectedStaticDarkGreylist() { return 333; }
    109   private static int methodPrivateStaticDarkGreylist() { return 334; }
    110 
    111   public static int methodPublicStaticBlacklist() { return 341; }
    112   static int methodPackageStaticBlacklist() { return 342; }
    113   protected static int methodProtectedStaticBlacklist() { return 343; }
    114   private static int methodPrivateStaticBlacklist() { return 344; }
    115 
    116   // CONSTRUCTOR
    117 
    118   // Whitelist
    119   public ParentClass(int x, short y) {}
    120   ParentClass(float x, short y) {}
    121   protected ParentClass(long x, short y) {}
    122   private ParentClass(double x, short y) {}
    123 
    124   // Light greylist
    125   public ParentClass(int x, boolean y) {}
    126   ParentClass(float x, boolean y) {}
    127   protected ParentClass(long x, boolean y) {}
    128   private ParentClass(double x, boolean y) {}
    129 
    130   // Dark greylist
    131   public ParentClass(int x, byte y) {}
    132   ParentClass(float x, byte y) {}
    133   protected ParentClass(long x, byte y) {}
    134   private ParentClass(double x, byte y) {}
    135 
    136   // Blacklist
    137   public ParentClass(int x, char y) {}
    138   ParentClass(float x, char y) {}
    139   protected ParentClass(long x, char y) {}
    140   private ParentClass(double x, char y) {}
    141 
    142   // HELPERS
    143 
    144   public int callMethodPublicWhitelist() { return methodPublicWhitelist(); }
    145   public int callMethodPackageWhitelist() { return methodPackageWhitelist(); }
    146   public int callMethodProtectedWhitelist() { return methodProtectedWhitelist(); }
    147 
    148   public int callMethodPublicLightGreylist() { return methodPublicLightGreylist(); }
    149   public int callMethodPackageLightGreylist() { return methodPackageLightGreylist(); }
    150   public int callMethodProtectedLightGreylist() { return methodProtectedLightGreylist(); }
    151 
    152   public int callMethodPublicDarkGreylist() { return methodPublicDarkGreylist(); }
    153   public int callMethodPackageDarkGreylist() { return methodPackageDarkGreylist(); }
    154   public int callMethodProtectedDarkGreylist() { return methodProtectedDarkGreylist(); }
    155 
    156   public int callMethodPublicBlacklist() { return methodPublicBlacklist(); }
    157   public int callMethodPackageBlacklist() { return methodPackageBlacklist(); }
    158   public int callMethodProtectedBlacklist() { return methodProtectedBlacklist(); }
    159 
    160 }
    161