1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.safeluck.floatwindow;
 
import com.safeluck.floatwindow.MediaArgu;
import com.safeluck.floatwindow.IMyCallback;
// Declare any non-default types here with import statements
 
interface IMediaAidlInterface {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
            double aDouble, String aString);
 
//            void transferInfo(String info);
            void startMedia(in MediaArgu media);
 
            void stopMedia(in MediaArgu media);
            void sendInfo(String s,int processId);//水印信息 json,processid=1 为发给FloatingService的的信息;procesid=2为发给P2UsbCameraVideoService
            void registerCallback(in IMyCallback cb);
            void unregisterCallback(in IMyCallback cb);
}