Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QtAndroidBinder.java
Go to the documentation of this file.
1// Copyright (C) 2017 BogDan Vatra <bogdan@kde.org>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4package org.qtproject.qt.android.extras;
5
6import android.os.Binder;
7import android.os.Parcel;
8
9public class QtAndroidBinder extends Binder
10{
11 public QtAndroidBinder(long id)
12 {
13 m_id = id;
14 }
15
16 public void setId(long id)
17 {
18 synchronized(this)
19 {
20 m_id = id;
21 }
22 }
23 @Override
24 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags)
25 {
26 synchronized(this)
27 {
28 return QtNative.onTransact(m_id, code, data, reply, flags);
29 }
30 }
31
32 private long m_id;
33}
boolean onTransact(int code, Parcel data, Parcel reply, int flags)
static native boolean onTransact(long id, int code, Parcel data, Parcel reply, int flags)
GLenum GLuint id
[7]
GLbitfield flags
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
QNetworkReply * reply