• 大小: 314KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-06-07
  • 语言: 其他
  • 标签: aidl  android  service  music  

资源简介

简单的用aidl实现可后台播放的音乐播放器,

资源截图

代码片段和文件信息

/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: D:\\My Documents\\javaWork\\AIDL_Music\\src\\com\\aidl\\music\\IMusicBackService.aidl
 */
package com.aidl.music;
public interface IMusicBackService extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.aidl.music.IMusicBackService
{
private static final java.lang.String DEscriptOR = “com.aidl.music.IMusicBackService“;
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this DEscriptOR);
}
/**
 * Cast an IBinder object into an com.aidl.music.IMusicBackService interface
 * generating a proxy if needed.
 */
public static com.aidl.music.IMusicBackService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DEscriptOR);
if (((iin!=null)&&(iin instanceof com.aidl.music.IMusicBackService))) {
return ((com.aidl.music.IMusicBackService)iin);
}
return new com.aidl.music.IMusicBackService.Stub.Proxy(obj);
}
public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code android.os.Parcel data android.os.Parcel reply int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DEscriptOR);
return true;
}
case TRANSACTION_getNowPlayingMusicCurTime:
{
data.enforceInterface(DEscriptOR);
int _result = this.getNowPlayingMusicCurTime();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_getNowPlayingMusicMaxTime:
{
data.enforceInterface(DEscriptOR);
int _result = this.getNowPlayingMusicMaxTime();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_playMusic:
{
data.enforceInterface(DEscriptOR);
this.playMusic();
reply.writeNoException();
return true;
}
case TRANSACTION_getMusicIsPlaying:
{
data.enforceInterface(DEscriptOR);
boolean _result = this.getMusicIsPlaying();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_stopMusic:
{
data.enforceInterface(DEscriptOR);
this.stopMusic();
reply.writeNoException();
return true;
}
case TRANSACTION_playUpMusic:
{
data.enforceInterface(DEscriptOR);
this.playUpMusic();
reply.writeNoException();
return true;
}
case TRANSACTION_PlayNextMusic:
{
data.enforceInterface(DEscriptOR);
this.PlayNextMusic();
reply.writeNoException();
return true;
}
case TRANSACTION_setNowPlay:
{
data.enforceInterface(DEscriptOR);
int _arg0;
_arg0 = data.readInt();
this.setNowPlay(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getNowPlay:
{
data.enforceInterface(DEscriptOR);
int _result = this.getNowPlay();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_setDataSourceAndPlay:
{
data.enforceInterface(DEscriptOR);
this.setDataSourceAndPlay();
reply.writeNoException();
return true;
}
case TRANSACTION_setProg

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        364  2013-01-18 09:28  新建文件夹 (6)\AIDL_Music\.classpath

     文件        846  2013-01-18 09:28  新建文件夹 (6)\AIDL_Music\.project

     文件        854  2013-01-18 14:44  新建文件夹 (6)\AIDL_Music\AndroidManifest.xml

     文件      91115  2013-01-18 15:16  新建文件夹 (6)\AIDL_Music\bin\AIDL_Music.apk

     文件       4114  2013-01-18 15:05  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\IMusicBackService$Stub$Proxy.class

     文件       3250  2013-01-18 15:05  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\IMusicBackService$Stub.class

     文件        382  2013-01-18 15:05  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\IMusicBackService.aidl

     文件        701  2013-01-18 15:05  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\IMusicBackService.class

     文件       3159  2013-01-18 15:25  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\ManaListAdapter.class

     文件        387  2013-01-18 14:44  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\ManaListItems.class

     文件        389  2013-01-18 14:44  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\ManaMusic.class

     文件       1369  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity$1.class

     文件       1471  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity$2.class

     文件       1544  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity$3.class

     文件       1299  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity$MyThread.class

     文件        895  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity$UpdateUiBroadcastReceiver.class

     文件       9110  2013-01-18 15:23  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicActivity.class

     文件        790  2013-01-18 15:24  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicService$1.class

     文件       2511  2013-01-18 15:24  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicService$2.class

     文件       3513  2013-01-18 15:24  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\MusicService.class

     文件        328  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R$attr.class

     文件        911  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R$drawable.class

     文件       1025  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R$id.class

     文件        426  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R$layout.class

     文件        415  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R$string.class

     文件        503  2013-01-18 15:09  新建文件夹 (6)\AIDL_Music\bin\classes\com\aidl\music\R.class

     文件      22356  2013-01-18 15:16  新建文件夹 (6)\AIDL_Music\bin\classes.dex

     文件        505  2013-01-18 14:46  新建文件夹 (6)\AIDL_Music\bin\res\drawable-hdpi\background.9.png

     文件       6215  2013-01-18 14:35  新建文件夹 (6)\AIDL_Music\bin\res\drawable-hdpi\backmana.png

     文件       3966  2013-01-18 14:35  新建文件夹 (6)\AIDL_Music\bin\res\drawable-hdpi\ic_launcher.png

............此处省略73个文件信息

评论

共有 条评论