| /* |
| * Copyright (C) 2012 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| package com.android.sched.scheduler; |
| |
| import com.android.sched.feature.Feature1; |
| import com.android.sched.item.Description; |
| import com.android.sched.item.Name; |
| import com.android.sched.item.onlyfor.OnlyFor; |
| import com.android.sched.item.onlyfor.SchedTest; |
| import com.android.sched.schedulable.Constraint; |
| import com.android.sched.schedulable.Optional; |
| import com.android.sched.schedulable.RunnableSchedulable; |
| import com.android.sched.schedulable.ToSupport; |
| import com.android.sched.schedulable.Transform; |
| import com.android.sched.tag.Tag1; |
| import com.android.sched.tag.Tag2; |
| import com.android.sched.tag.Tag3; |
| import com.android.sched.tag.Tag4; |
| import com.android.sched.tag.Tag5; |
| |
| import javax.annotation.Nonnull; |
| |
| @Name("Runner Error 6") |
| @Description("Runner Error 6 description") |
| @OnlyFor(SchedTest.class) |
| @Optional(@ToSupport(feature = Feature1.class, |
| add = @Constraint(need = {Tag1.class, Tag2.class, Tag3.class, Tag5.class}))) |
| @Constraint(no = {Tag2.class, Tag4.class, Tag5.class}) |
| @Transform(add = Tag1.class, remove = Tag2.class) |
| public class RunnerError6 implements RunnableSchedulable<Component0> { |
| @Override |
| public void run(@Nonnull Component0 t) {} |
| } |