You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
add bunch of new java APIs: mostly stubs or copied from AOSP
Many of these classes are only needed to be subclassed by androidx support library, which is used in many android apps
This commit is contained in:
@@ -25,14 +25,6 @@ extern "C" {
|
||||
#define android_graphics_Matrix_MPERSP_1 7L
|
||||
#undef android_graphics_Matrix_MPERSP_2
|
||||
#define android_graphics_Matrix_MPERSP_2 8L
|
||||
/*
|
||||
* Class: android_graphics_Matrix
|
||||
* Method: native_create
|
||||
* Signature: (I)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Matrix_native_1create
|
||||
(JNIEnv *, jclass, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Matrix
|
||||
* Method: native_isIdentity
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
/* DO NOT EDIT THIS FILE - it is machine generated */
|
||||
#include <jni.h>
|
||||
/* Header for class android_graphics_PorterDuffColorFilter */
|
||||
|
||||
#ifndef _Included_android_graphics_PorterDuffColorFilter
|
||||
#define _Included_android_graphics_PorterDuffColorFilter
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
/*
|
||||
* Class: android_graphics_PorterDuffColorFilter
|
||||
* Method: native_CreatePorterDuffFilter
|
||||
* Signature: (II)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_android_graphics_PorterDuffColorFilter_native_1CreatePorterDuffFilter
|
||||
(JNIEnv *, jclass, jint, jint);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
@@ -89,14 +89,6 @@ JNIEXPORT void JNICALL Java_android_graphics_Region_scale
|
||||
JNIEXPORT jboolean JNICALL Java_android_graphics_Region_nativeEquals
|
||||
(JNIEnv *, jclass, jint, jint);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Region
|
||||
* Method: nativeConstructor
|
||||
* Signature: ()I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_android_graphics_Region_nativeConstructor
|
||||
(JNIEnv *, jclass);
|
||||
|
||||
/*
|
||||
* Class: android_graphics_Region
|
||||
* Method: nativeDestructor
|
||||
|
||||
@@ -149,6 +149,56 @@ extern "C" {
|
||||
#define android_widget_FrameLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED 32L
|
||||
#undef android_widget_FrameLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK
|
||||
#define android_widget_FrameLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK 48L
|
||||
#undef android_widget_FrameLayout_STATUS_BAR_HIDDEN
|
||||
#define android_widget_FrameLayout_STATUS_BAR_HIDDEN 1L
|
||||
#undef android_widget_FrameLayout_STATUS_BAR_VISIBLE
|
||||
#define android_widget_FrameLayout_STATUS_BAR_VISIBLE 0L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_FULLSCREEN
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_FULLSCREEN 4L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_HIDE_NAVIGATION 2L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_IMMERSIVE
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_IMMERSIVE 2048L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_IMMERSIVE_STICKY 4096L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 1024L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 512L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_LAYOUT_STABLE 256L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_LOW_PROFILE
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_LOW_PROFILE 1L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_FLAG_VISIBLE
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_FLAG_VISIBLE 0L
|
||||
#undef android_widget_FrameLayout_SYSTEM_UI_LAYOUT_FLAGS
|
||||
#define android_widget_FrameLayout_SYSTEM_UI_LAYOUT_FLAGS 1536L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_CENTER
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_CENTER 4L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_GRAVITY
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_GRAVITY 1L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_INHERIT
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_INHERIT 0L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_TEXT_END
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_TEXT_END 3L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_TEXT_START
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_TEXT_START 2L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_VIEW_END
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_VIEW_END 6L
|
||||
#undef android_widget_FrameLayout_TEXT_ALIGNMENT_VIEW_START
|
||||
#define android_widget_FrameLayout_TEXT_ALIGNMENT_VIEW_START 5L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_ANY_RTL
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_ANY_RTL 2L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_FIRST_STRONG
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_FIRST_STRONG 1L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_INHERIT
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_INHERIT 0L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_LOCALE
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_LOCALE 5L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_LTR
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_LTR 3L
|
||||
#undef android_widget_FrameLayout_TEXT_DIRECTION_RTL
|
||||
#define android_widget_FrameLayout_TEXT_DIRECTION_RTL 4L
|
||||
/*
|
||||
* Class: android_widget_FrameLayout
|
||||
* Method: native_constructor
|
||||
|
||||
@@ -149,6 +149,56 @@ extern "C" {
|
||||
#define android_widget_ImageView_PFLAG2_LAYOUT_DIRECTION_RESOLVED 32L
|
||||
#undef android_widget_ImageView_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK
|
||||
#define android_widget_ImageView_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK 48L
|
||||
#undef android_widget_ImageView_STATUS_BAR_HIDDEN
|
||||
#define android_widget_ImageView_STATUS_BAR_HIDDEN 1L
|
||||
#undef android_widget_ImageView_STATUS_BAR_VISIBLE
|
||||
#define android_widget_ImageView_STATUS_BAR_VISIBLE 0L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_FULLSCREEN
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_FULLSCREEN 4L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_HIDE_NAVIGATION 2L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_IMMERSIVE
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_IMMERSIVE 2048L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_IMMERSIVE_STICKY 4096L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 1024L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 512L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_LAYOUT_STABLE 256L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_LOW_PROFILE
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_LOW_PROFILE 1L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_FLAG_VISIBLE
|
||||
#define android_widget_ImageView_SYSTEM_UI_FLAG_VISIBLE 0L
|
||||
#undef android_widget_ImageView_SYSTEM_UI_LAYOUT_FLAGS
|
||||
#define android_widget_ImageView_SYSTEM_UI_LAYOUT_FLAGS 1536L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_CENTER
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_CENTER 4L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_GRAVITY
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_GRAVITY 1L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_INHERIT
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_INHERIT 0L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_TEXT_END
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_TEXT_END 3L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_TEXT_START
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_TEXT_START 2L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_VIEW_END
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_VIEW_END 6L
|
||||
#undef android_widget_ImageView_TEXT_ALIGNMENT_VIEW_START
|
||||
#define android_widget_ImageView_TEXT_ALIGNMENT_VIEW_START 5L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_ANY_RTL
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_ANY_RTL 2L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_FIRST_STRONG
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_FIRST_STRONG 1L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_INHERIT
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_INHERIT 0L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_LOCALE
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_LOCALE 5L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_LTR
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_LTR 3L
|
||||
#undef android_widget_ImageView_TEXT_DIRECTION_RTL
|
||||
#define android_widget_ImageView_TEXT_DIRECTION_RTL 4L
|
||||
/*
|
||||
* Class: android_widget_ImageView
|
||||
* Method: native_constructor
|
||||
|
||||
@@ -149,6 +149,56 @@ extern "C" {
|
||||
#define android_widget_LinearLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED 32L
|
||||
#undef android_widget_LinearLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK
|
||||
#define android_widget_LinearLayout_PFLAG2_LAYOUT_DIRECTION_RESOLVED_MASK 48L
|
||||
#undef android_widget_LinearLayout_STATUS_BAR_HIDDEN
|
||||
#define android_widget_LinearLayout_STATUS_BAR_HIDDEN 1L
|
||||
#undef android_widget_LinearLayout_STATUS_BAR_VISIBLE
|
||||
#define android_widget_LinearLayout_STATUS_BAR_VISIBLE 0L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_FULLSCREEN
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_FULLSCREEN 4L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_HIDE_NAVIGATION
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_HIDE_NAVIGATION 2L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_IMMERSIVE
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_IMMERSIVE 2048L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_IMMERSIVE_STICKY
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_IMMERSIVE_STICKY 4096L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN 1024L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION 512L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_STABLE
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_LAYOUT_STABLE 256L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_LOW_PROFILE
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_LOW_PROFILE 1L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_FLAG_VISIBLE
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_FLAG_VISIBLE 0L
|
||||
#undef android_widget_LinearLayout_SYSTEM_UI_LAYOUT_FLAGS
|
||||
#define android_widget_LinearLayout_SYSTEM_UI_LAYOUT_FLAGS 1536L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_CENTER
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_CENTER 4L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_GRAVITY
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_GRAVITY 1L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_INHERIT
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_INHERIT 0L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_TEXT_END
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_TEXT_END 3L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_TEXT_START
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_TEXT_START 2L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_VIEW_END
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_VIEW_END 6L
|
||||
#undef android_widget_LinearLayout_TEXT_ALIGNMENT_VIEW_START
|
||||
#define android_widget_LinearLayout_TEXT_ALIGNMENT_VIEW_START 5L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_ANY_RTL
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_ANY_RTL 2L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_FIRST_STRONG
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_FIRST_STRONG 1L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_INHERIT
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_INHERIT 0L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_LOCALE
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_LOCALE 5L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_LTR
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_LTR 3L
|
||||
#undef android_widget_LinearLayout_TEXT_DIRECTION_RTL
|
||||
#define android_widget_LinearLayout_TEXT_DIRECTION_RTL 4L
|
||||
/*
|
||||
* Class: android_widget_LinearLayout
|
||||
* Method: native_constructor
|
||||
|
||||
@@ -4,6 +4,9 @@ struct handle_cache handle_cache = {0};
|
||||
|
||||
const char * attribute_set_get_string(JNIEnv *env, jobject attrs, char *attribute, char *schema)
|
||||
{
|
||||
if (!attrs)
|
||||
return NULL;
|
||||
|
||||
if(!schema)
|
||||
schema = "http://schemas.android.com/apk/res/android";
|
||||
|
||||
|
||||
@@ -137,6 +137,8 @@ void wrapper_widget_set_child(WrapperWidget *parent, GtkWidget *child) // TODO:
|
||||
gtk_widget_insert_before(child, GTK_WIDGET(parent), NULL);
|
||||
}
|
||||
|
||||
#define MEASURE_SPEC_EXACTLY (1 << 30)
|
||||
|
||||
static void on_mapped(GtkWidget* self, gpointer data)
|
||||
{
|
||||
WrapperWidget *wrapper = WRAPPER_WIDGET(self);
|
||||
@@ -144,7 +146,7 @@ static void on_mapped(GtkWidget* self, gpointer data)
|
||||
JNIEnv *env;
|
||||
(*wrapper->jvm)->GetEnv(wrapper->jvm, (void**)&env, JNI_VERSION_1_6);
|
||||
|
||||
(*env)->CallVoidMethod(env, wrapper->jobj, wrapper->measure_method, gtk_widget_get_width(self), gtk_widget_get_height(self));
|
||||
(*env)->CallVoidMethod(env, wrapper->jobj, wrapper->measure_method, MEASURE_SPEC_EXACTLY, MEASURE_SPEC_EXACTLY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
5
src/api-impl/android/accounts/AccountManager.java
Normal file
5
src/api-impl/android/accounts/AccountManager.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.accounts;
|
||||
|
||||
public class AccountManager {
|
||||
|
||||
}
|
||||
9
src/api-impl/android/animation/Animator.java
Normal file
9
src/api-impl/android/animation/Animator.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package android.animation;
|
||||
|
||||
public class Animator {
|
||||
|
||||
public void setTarget(Object target) {}
|
||||
|
||||
public void start() {}
|
||||
|
||||
}
|
||||
11
src/api-impl/android/animation/AnimatorInflater.java
Normal file
11
src/api-impl/android/animation/AnimatorInflater.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package android.animation;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
public class AnimatorInflater {
|
||||
|
||||
public static Animator loadAnimator(Context context, int resId) {
|
||||
return new Animator();
|
||||
}
|
||||
|
||||
}
|
||||
56
src/api-impl/android/animation/AnimatorListenerAdapter.java
Normal file
56
src/api-impl/android/animation/AnimatorListenerAdapter.java
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* Copyright (C) 2010 The Android Open Source Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package android.animation;
|
||||
|
||||
/**
|
||||
* This adapter class provides empty implementations of the methods from {@link android.animation.Animator.AnimatorListener}.
|
||||
* Any custom listener that cares only about a subset of the methods of this listener can
|
||||
* simply subclass this adapter class instead of implementing the interface directly.
|
||||
*/
|
||||
public abstract class AnimatorListenerAdapter /*implements Animator.AnimatorListener,
|
||||
Animator.AnimatorPauseListener*/ {
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationCancel(Animator animation) {
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationEnd(Animator animation) {
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationRepeat(Animator animation) {
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationStart(Animator animation) {
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationPause(Animator animation) {
|
||||
}
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public void onAnimationResume(Animator animation) {
|
||||
}
|
||||
}
|
||||
5
src/api-impl/android/animation/LayoutTransition.java
Normal file
5
src/api-impl/android/animation/LayoutTransition.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.animation;
|
||||
|
||||
public class LayoutTransition {
|
||||
|
||||
}
|
||||
33
src/api-impl/android/animation/ValueAnimator.java
Normal file
33
src/api-impl/android/animation/ValueAnimator.java
Normal file
@@ -0,0 +1,33 @@
|
||||
package android.animation;
|
||||
|
||||
public class ValueAnimator {
|
||||
|
||||
public static ValueAnimator ofFloat(float... values) {
|
||||
return new ValueAnimator();
|
||||
}
|
||||
|
||||
public ValueAnimator setDuration(long duration) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public void addUpdateListener(AnimatorUpdateListener listener) {}
|
||||
|
||||
public static long getFrameDelay() {
|
||||
return 20; // 20ms frame interval
|
||||
}
|
||||
|
||||
/**
|
||||
* Implementors of this interface can add themselves as update listeners
|
||||
* to an <code>ValueAnimator</code> instance to receive callbacks on every animation
|
||||
* frame, after the current frame's values have been calculated for that
|
||||
* <code>ValueAnimator</code>.
|
||||
*/
|
||||
public static interface AnimatorUpdateListener {
|
||||
/**
|
||||
* <p>Notifies the occurrence of another frame of the animation.</p>
|
||||
*
|
||||
* @param animation The animation which was repeated.
|
||||
*/
|
||||
void onAnimationUpdate(ValueAnimator animation);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package android.app;
|
||||
|
||||
import android.R;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -102,6 +103,7 @@ public class Activity extends Context {
|
||||
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
System.out.println("- onCreate - yay!");
|
||||
new ViewGroup(this).setId(R.id.content);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -263,6 +265,22 @@ public class Activity extends Context {
|
||||
nativeFinish(getWindow().native_window);
|
||||
}
|
||||
|
||||
public Object getLastNonConfigurationInstance() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FragmentManager getFragmentManager() {
|
||||
return new FragmentManager();
|
||||
}
|
||||
|
||||
public LayoutInflater getLayoutInflater() {
|
||||
return layout_inflater;
|
||||
}
|
||||
|
||||
public CharSequence getTitle() {
|
||||
return "Title";
|
||||
}
|
||||
|
||||
private native void nativeFinish(long native_window);
|
||||
private static native void nativeStartActivity(Activity activity);
|
||||
}
|
||||
|
||||
5
src/api-impl/android/app/DownloadManager.java
Normal file
5
src/api-impl/android/app/DownloadManager.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.app;
|
||||
|
||||
public class DownloadManager {
|
||||
|
||||
}
|
||||
5
src/api-impl/android/app/Fragment.java
Normal file
5
src/api-impl/android/app/Fragment.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.app;
|
||||
|
||||
public class Fragment {
|
||||
|
||||
}
|
||||
16
src/api-impl/android/app/FragmentManager.java
Normal file
16
src/api-impl/android/app/FragmentManager.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package android.app;
|
||||
|
||||
public class FragmentManager {
|
||||
|
||||
public Fragment findFragmentByTag(String tag) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public FragmentTransaction beginTransaction() {
|
||||
return new FragmentTransaction();
|
||||
}
|
||||
|
||||
public boolean executePendingTransactions() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
12
src/api-impl/android/app/FragmentTransaction.java
Normal file
12
src/api-impl/android/app/FragmentTransaction.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package android.app;
|
||||
|
||||
public class FragmentTransaction {
|
||||
|
||||
public FragmentTransaction add(Fragment fragment, String string) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public int commit() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
5
src/api-impl/android/app/SearchManager.java
Normal file
5
src/api-impl/android/app/SearchManager.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package android.app;
|
||||
|
||||
public class SearchManager {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user