Skip to content

Commit

Permalink
build on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornaco committed May 20, 2024
1 parent ccff658 commit df81766
Show file tree
Hide file tree
Showing 50 changed files with 6,020 additions and 2,136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public android.os.IBinder asBinder() {
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicenseResultListener
{
private static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicenseResultListener";
/** Construct the stub at attach it to the interface. */
public Stub()
{
Expand Down Expand Up @@ -45,36 +46,30 @@ public static com.android.vending.licensing.ILicenseResultListener asInterface(a
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
java.lang.String descriptor = DESCRIPTOR;
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) {
data.enforceInterface(descriptor);
}
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
}
switch (code)
{
case TRANSACTION_verifyLicense:
{
data.enforceInterface(descriptor);
int _arg0;
_arg0 = data.readInt();
java.lang.String _arg1;
_arg1 = data.readString();
java.lang.String _arg2;
_arg2 = data.readString();
this.verifyLicense(_arg0, _arg1, _arg2);
break;
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
return true;
}
private static class Proxy implements com.android.vending.licensing.ILicenseResultListener
{
Expand All @@ -100,14 +95,34 @@ public java.lang.String getInterfaceDescriptor()
_data.writeString(signedData);
_data.writeString(signature);
boolean _status = mRemote.transact(Stub.TRANSACTION_verifyLicense, _data, null, android.os.IBinder.FLAG_ONEWAY);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().verifyLicense(responseCode, signedData, signature);
return;
}
}
finally {
_data.recycle();
}
}
public static com.android.vending.licensing.ILicenseResultListener sDefaultImpl;
}
static final int TRANSACTION_verifyLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
public static boolean setDefaultImpl(com.android.vending.licensing.ILicenseResultListener impl) {
// Only one user of this interface can use this function
// at a time. This is a heuristic to detect if two different
// users in the same process use this function.
if (Stub.Proxy.sDefaultImpl != null) {
throw new IllegalStateException("setDefaultImpl() called twice");
}
if (impl != null) {
Stub.Proxy.sDefaultImpl = impl;
return true;
}
return false;
}
public static com.android.vending.licensing.ILicenseResultListener getDefaultImpl() {
return Stub.Proxy.sDefaultImpl;
}
}
public static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicenseResultListener";
public void verifyLicense(int responseCode, java.lang.String signedData, java.lang.String signature) throws android.os.RemoteException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public android.os.IBinder asBinder() {
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.android.vending.licensing.ILicensingService
{
private static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicensingService";
/** Construct the stub at attach it to the interface. */
public Stub()
{
Expand Down Expand Up @@ -45,36 +46,30 @@ public static com.android.vending.licensing.ILicensingService asInterface(androi
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
java.lang.String descriptor = DESCRIPTOR;
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) {
data.enforceInterface(descriptor);
}
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
}
switch (code)
{
case TRANSACTION_checkLicense:
{
data.enforceInterface(descriptor);
long _arg0;
_arg0 = data.readLong();
java.lang.String _arg1;
_arg1 = data.readString();
com.android.vending.licensing.ILicenseResultListener _arg2;
_arg2 = com.android.vending.licensing.ILicenseResultListener.Stub.asInterface(data.readStrongBinder());
this.checkLicense(_arg0, _arg1, _arg2);
break;
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
return true;
}
private static class Proxy implements com.android.vending.licensing.ILicensingService
{
Expand All @@ -98,16 +93,36 @@ public java.lang.String getInterfaceDescriptor()
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeLong(nonce);
_data.writeString(packageName);
_data.writeStrongInterface(listener);
_data.writeStrongBinder((((listener!=null))?(listener.asBinder()):(null)));
boolean _status = mRemote.transact(Stub.TRANSACTION_checkLicense, _data, null, android.os.IBinder.FLAG_ONEWAY);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().checkLicense(nonce, packageName, listener);
return;
}
}
finally {
_data.recycle();
}
}
public static com.android.vending.licensing.ILicensingService sDefaultImpl;
}
static final int TRANSACTION_checkLicense = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
public static boolean setDefaultImpl(com.android.vending.licensing.ILicensingService impl) {
// Only one user of this interface can use this function
// at a time. This is a heuristic to detect if two different
// users in the same process use this function.
if (Stub.Proxy.sDefaultImpl != null) {
throw new IllegalStateException("setDefaultImpl() called twice");
}
if (impl != null) {
Stub.Proxy.sDefaultImpl = impl;
return true;
}
return false;
}
public static com.android.vending.licensing.ILicensingService getDefaultImpl() {
return Stub.Proxy.sDefaultImpl;
}
}
public static final java.lang.String DESCRIPTOR = "com.android.vending.licensing.ILicensingService";
public void checkLicense(long nonce, java.lang.String packageName, com.android.vending.licensing.ILicenseResultListener listener) throws android.os.RemoteException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public android.os.IBinder asBinder() {
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements github.tornaco.android.thanos.core.IPluginLogger
{
private static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPluginLogger";
/** Construct the stub at attach it to the interface. */
public Stub()
{
Expand Down Expand Up @@ -54,57 +55,54 @@ public static github.tornaco.android.thanos.core.IPluginLogger asInterface(andro
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
java.lang.String descriptor = DESCRIPTOR;
if (code >= android.os.IBinder.FIRST_CALL_TRANSACTION && code <= android.os.IBinder.LAST_CALL_TRANSACTION) {
data.enforceInterface(descriptor);
}
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(descriptor);
return true;
}
}
switch (code)
{
case TRANSACTION_logV:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
this.logV(_arg0);
reply.writeNoException();
break;
return true;
}
case TRANSACTION_logD:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
this.logD(_arg0);
reply.writeNoException();
break;
return true;
}
case TRANSACTION_logW:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
this.logW(_arg0);
reply.writeNoException();
break;
return true;
}
case TRANSACTION_logE:
{
data.enforceInterface(descriptor);
java.lang.String _arg0;
_arg0 = data.readString();
this.logE(_arg0);
reply.writeNoException();
break;
return true;
}
default:
{
return super.onTransact(code, data, reply, flags);
}
}
return true;
}
private static class Proxy implements github.tornaco.android.thanos.core.IPluginLogger
{
Expand All @@ -129,6 +127,10 @@ public java.lang.String getInterfaceDescriptor()
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(content);
boolean _status = mRemote.transact(Stub.TRANSACTION_logV, _data, _reply, 0);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().logV(content);
return;
}
_reply.readException();
}
finally {
Expand All @@ -144,6 +146,10 @@ public java.lang.String getInterfaceDescriptor()
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(content);
boolean _status = mRemote.transact(Stub.TRANSACTION_logD, _data, _reply, 0);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().logD(content);
return;
}
_reply.readException();
}
finally {
Expand All @@ -159,6 +165,10 @@ public java.lang.String getInterfaceDescriptor()
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(content);
boolean _status = mRemote.transact(Stub.TRANSACTION_logW, _data, _reply, 0);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().logW(content);
return;
}
_reply.readException();
}
finally {
Expand All @@ -174,20 +184,40 @@ public java.lang.String getInterfaceDescriptor()
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(content);
boolean _status = mRemote.transact(Stub.TRANSACTION_logE, _data, _reply, 0);
if (!_status && getDefaultImpl() != null) {
getDefaultImpl().logE(content);
return;
}
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
public static github.tornaco.android.thanos.core.IPluginLogger sDefaultImpl;
}
static final int TRANSACTION_logV = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_logD = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_logW = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_logE = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
public static boolean setDefaultImpl(github.tornaco.android.thanos.core.IPluginLogger impl) {
// Only one user of this interface can use this function
// at a time. This is a heuristic to detect if two different
// users in the same process use this function.
if (Stub.Proxy.sDefaultImpl != null) {
throw new IllegalStateException("setDefaultImpl() called twice");
}
if (impl != null) {
Stub.Proxy.sDefaultImpl = impl;
return true;
}
return false;
}
public static github.tornaco.android.thanos.core.IPluginLogger getDefaultImpl() {
return Stub.Proxy.sDefaultImpl;
}
}
public static final java.lang.String DESCRIPTOR = "github.tornaco.android.thanos.core.IPluginLogger";
public void logV(java.lang.String content) throws android.os.RemoteException;
public void logD(java.lang.String content) throws android.os.RemoteException;
public void logW(java.lang.String content) throws android.os.RemoteException;
Expand Down
Loading

0 comments on commit df81766

Please sign in to comment.