1 /* 2 * Copyright (C) 2024 The Dagger Authors. 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 package dagger.hilt.android.testsubpackage; 18 19 import android.app.IntentService; 20 import android.app.Service; 21 import android.content.BroadcastReceiver; 22 import android.content.Context; 23 import androidx.fragment.app.Fragment; 24 import androidx.fragment.app.FragmentActivity; 25 import android.util.AttributeSet; 26 import android.widget.LinearLayout; 27 28 public final class PackagePrivateConstructorTestClasses { 29 30 public abstract static class BaseActivity extends FragmentActivity { BaseActivity()31 public BaseActivity() {} 32 BaseActivity(int unused)33 BaseActivity(int unused) {} 34 } 35 36 public abstract static class BaseFragment extends Fragment { BaseFragment()37 public BaseFragment() {} 38 BaseFragment(int unused)39 BaseFragment(int unused) {} 40 } 41 42 public abstract static class BaseView extends LinearLayout { BaseView(Context context)43 public BaseView(Context context) { 44 super(context); 45 } 46 BaseView(Context context, AttributeSet attrs)47 public BaseView(Context context, AttributeSet attrs) { 48 super(context, attrs); 49 } 50 BaseView(Context context, AttributeSet attrs, int defStyleAttr)51 public BaseView(Context context, AttributeSet attrs, int defStyleAttr) { 52 super(context, attrs, defStyleAttr); 53 } 54 BaseView(Context context, int unused)55 BaseView(Context context, int unused) { 56 super(context); 57 } 58 } 59 60 public abstract static class BaseService extends Service { BaseService()61 public BaseService() {} 62 BaseService(int unused)63 BaseService(int unused) {} 64 } 65 66 public abstract static class BaseIntentService extends IntentService { BaseIntentService(String name)67 public BaseIntentService(String name) { 68 super(name); 69 } 70 BaseIntentService(String name, int unused)71 BaseIntentService(String name, int unused) { 72 super(name); 73 } 74 } 75 76 public abstract static class BaseBroadcastReceiver extends BroadcastReceiver { BaseBroadcastReceiver()77 public BaseBroadcastReceiver() {} 78 BaseBroadcastReceiver(int unused)79 BaseBroadcastReceiver(int unused) {} 80 } 81 82 } 83