• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright 2020 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
17package android.hardware.boot@1.2;
18
19import @1.0::IBootControl;
20import @1.0::Slot;
21import @1.1::IBootControl;
22
23interface IBootControl extends @1.1::IBootControl {
24
25  /**
26   * Returns the active slot to boot into on the next boot. If
27   * setActiveBootSlot() has been called, the getter function should return the
28   * same slot as the one provided in the last setActiveBootSlot() call.
29   * The returned value is always guaranteed to be strictly less than the
30   * value returned by getNumberSlots. Slots start at 0 and finish at
31   * getNumberSlots() - 1. For instance, a system with A/B must return 0 or 1.
32   */
33   getActiveBootSlot() generates (Slot slot);
34};
35
36