1 /* //device/java/android/android/os/IUsb.aidl 2 ** 3 ** Copyright 2007, The Android Open Source Project 4 ** 5 ** Licensed under the Apache License, Version 2.0 (the "License"); 6 ** you may not use this file except in compliance with the License. 7 ** You may obtain a copy of the License at 8 ** 9 ** http://www.apache.org/licenses/LICENSE-2.0 10 ** 11 ** Unless required by applicable law or agreed to in writing, software 12 ** distributed under the License is distributed on an "AS IS" BASIS, 13 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ** See the License for the specific language governing permissions and 15 ** limitations under the License. 16 */ 17 18 package android.os; 19 20 /** WARNING! Update IMountService.h and IMountService.cpp if you change this file. 21 * In particular, the ordering of the methods below must match the 22 * _TRANSACTION enum in IMountService.cpp 23 * @hide 24 */ 25 interface IMountService 26 { 27 /** 28 * Is mass storage support enabled? 29 */ getMassStorageEnabled()30 boolean getMassStorageEnabled(); 31 32 /** 33 * Enable or disable mass storage support. 34 */ setMassStorageEnabled(boolean enabled)35 void setMassStorageEnabled(boolean enabled); 36 37 /** 38 * Is mass storage connected? 39 */ getMassStorageConnected()40 boolean getMassStorageConnected(); 41 42 /** 43 * Mount external storage at given mount point. 44 */ mountMedia(String mountPoint)45 void mountMedia(String mountPoint); 46 47 /** 48 * Safely unmount external storage at given mount point. 49 */ unmountMedia(String mountPoint)50 void unmountMedia(String mountPoint); 51 52 /** 53 * Format external storage given a mount point. 54 */ formatMedia(String mountPoint)55 void formatMedia(String mountPoint); 56 57 /** 58 * Returns true if media notification sounds are enabled. 59 */ getPlayNotificationSounds()60 boolean getPlayNotificationSounds(); 61 62 /** 63 * Sets whether or not media notification sounds are played. 64 */ setPlayNotificationSounds(boolean value)65 void setPlayNotificationSounds(boolean value); 66 67 /** 68 * Returns true if USB Mass Storage is automatically started 69 * when a UMS host is detected. 70 */ getAutoStartUms()71 boolean getAutoStartUms(); 72 73 /** 74 * Sets whether or not USB Mass Storage is automatically started 75 * when a UMS host is detected. 76 */ setAutoStartUms(boolean value)77 void setAutoStartUms(boolean value); 78 } 79