Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
10
11class QtAndroidBinder extends Binder
12{
14 QtAndroidBinder(long id)
15 {
16 m_id = id;
17 }
18
19 void setId(long id)
20 {
21 synchronized(this)
22 {
23 m_id = id;
24 }
25 }
26 @Override
27 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags)
28 {
29 synchronized(this)
30 {
31 return QtNative.onTransact(m_id, code, data, reply, flags);
32 }
33 }
34
35 private long m_id;
36}
static jboolean onTransact(JNIEnv *, jclass, jlong id, jint code, jobject data, jobject reply, jint flags)
GLenum GLuint id
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
GLbitfield flags
QNetworkReply * reply
[0]