com.adjust.sdk.oaid.OpenDeviceIdentifierService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of adjust-android-oaid Show documentation
Show all versions of adjust-android-oaid Show documentation
The Oaid plugin for Adjust SDK for Android
/*
* This file is auto-generated. DO NOT MODIFY.
*/
package com.adjust.sdk.oaid;
/**
* Important: Please do not revise the order of the method in this AIDL file
*/
public interface OpenDeviceIdentifierService extends android.os.IInterface {
/**
* Local-side IPC implementation stub class.
*/
public static abstract class Stub extends android.os.Binder implements OpenDeviceIdentifierService {
private static final String DESCRIPTOR = "com.uodis.opendevice.aidl.OpenDeviceIdentifierService";
/**
* Construct the stub at attach it to the interface.
*/
public Stub() {
this.attachInterface(this, DESCRIPTOR);
}
/**
* Cast an IBinder object into an com.uodis.opendevice.aidl.OpenDeviceIdentifierService interface,
* generating a proxy if needed.
*/
public static OpenDeviceIdentifierService asInterface(android.os.IBinder obj) {
if ((obj == null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin != null) && (iin instanceof OpenDeviceIdentifierService))) {
return ((OpenDeviceIdentifierService) iin);
}
return new Stub.Proxy(obj);
}
@Override
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 {
String descriptor = DESCRIPTOR;
switch (code) {
case INTERFACE_TRANSACTION: {
reply.writeString(descriptor);
return true;
}
case TRANSACTION_getOaid: {
data.enforceInterface(descriptor);
String _result = this.getOaid();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_isOaidTrackLimited: {
data.enforceInterface(descriptor);
boolean _result = this.isOaidTrackLimited();
reply.writeNoException();
reply.writeInt(((_result) ? (1) : (0)));
return true;
}
default: {
return super.onTransact(code, data, reply, flags);
}
}
}
private static class Proxy implements OpenDeviceIdentifierService {
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote) {
mRemote = remote;
}
@Override
public android.os.IBinder asBinder() {
return mRemote;
}
public String getInterfaceDescriptor() {
return DESCRIPTOR;
}
@Override
public String getOaid() throws android.os.RemoteException {
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getOaid, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
} finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
* Obtain limit ad tracking parameter, true: limit tracking; false: do not limit tracking
*/
@Override
public boolean isOaidTrackLimited() throws android.os.RemoteException {
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isOaidTrackLimited, _data, _reply, 0);
_reply.readException();
_result = (0 != _reply.readInt());
} finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_getOaid = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_isOaidTrackLimited = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
}
public String getOaid() throws android.os.RemoteException;
/**
* Obtain limit ad tracking parameter, true: limit tracking; false: do not limit tracking
*/
public boolean isOaidTrackLimited() throws android.os.RemoteException;
}