1 /* 2 * Copyright (C) 2018 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 package android.signature.cts.tests; 17 18 import java.util.stream.Stream; 19 20 import android.signature.cts.ClassProvider; 21 import android.signature.cts.DexMember; 22 import android.signature.cts.tests.data.AbstractClass; 23 import android.signature.cts.tests.data.SystemApiClass; 24 import android.signature.cts.tests.data.FinalClass; 25 import android.signature.cts.tests.data.PrivateClass; 26 import android.signature.cts.tests.data.PublicApiClass; 27 import android.signature.cts.tests.data.ForciblyPublicizedPrivateClass; 28 import android.signature.cts.tests.data.NormalClass; 29 import android.signature.cts.tests.data.NormalException; 30 import android.signature.cts.tests.data.NormalInterface; 31 import android.signature.cts.tests.data.ApiAnnotation; 32 33 public class TestClassesProvider extends ClassProvider { 34 @Override getAllClasses()35 public Stream<Class<?>> getAllClasses() { 36 Stream.Builder<Class<?>> builder = Stream.builder(); 37 builder.add(AbstractClass.class); 38 builder.add(FinalClass.class); 39 builder.add(NormalClass.class); 40 builder.add(NormalException.class); 41 builder.add(NormalInterface.class); 42 builder.add(ApiAnnotation.class); 43 builder.add(PublicApiClass.class); 44 builder.add(SystemApiClass.class); 45 builder.add(PrivateClass.class); 46 builder.add(ForciblyPublicizedPrivateClass.class); 47 return builder.build(); 48 } 49 50 @Override getAllMembers(Class<?> klass)51 public Stream<DexMember> getAllMembers(Class<?> klass) { 52 return null; 53 } 54 } 55