Home | History | Annotate | Download | only in storage
      1 /**
      2  * Copyright (c) 2016, 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 package android.os.storage;
     18 
     19 /**
     20  * Callback class for receiving events from StorageManagerService about Opaque Binary
     21  * Blobs (OBBs).
     22  *
     23  * Don't change the existing transaction Ids as they could be used in the native code.
     24  * When adding a new method, assign the next available transaction id.
     25  *
     26  * @hide - Applications should use StorageManager to interact with OBBs.
     27  */
     28 oneway interface IObbActionListener {
     29     /**
     30      * Return from an OBB action result.
     31      *
     32      * @param filename the path to the OBB the operation was performed on
     33      * @param nonce identifier that is meaningful to the receiver
     34      * @param status status code as defined in {@link OnObbStateChangeListener}
     35      */
     36     void onObbResult(in String filename, int nonce, int status) = 0;
     37 
     38     /**
     39      * Don't change the existing transaction Ids as they could be used in the native code.
     40      * When adding a new method, assign the next available transaction id.
     41      */
     42 }