Android获取app应用程序大小的方法

2019-12-10 19:54:58王旭

****************IPackageStatusObserver.aidl******************

 

 
  1. /*  ** 
  2. ** Copyright 2007, The Android Open Source Project  ** 
  3. ** Licensed under the Apache License, Version 2.0 (the "License");  ** you may not use this file except in compliance with the License. 
  4. ** You may obtain a copy of the License at  ** 
  5. ** http://www.easck.com/licenses/LICENSE-2.0  ** 
  6. ** Unless required by applicable law or agreed to in writing, software  ** distributed under the License is distributed on an "AS IS" BASIS, 
  7. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  ** See the License for the specific language governing permissions and 
  8. ** limitations under the License.  */ 
  9. package android.content.pm;  import android.content.pm.PackageStats; 
  10. /**  * API for package data change related callbacks from the Package Manager. 
  11. * Some usage scenarios include deletion of cache directory, generate  * statistics related to code, data, cache usage(TODO) 
  12. * {@hide}  */ 
  13. oneway interface IPackageStatsObserver {  void onGetStatsCompleted(in PackageStats pStats, boolean succeeded);