Home
last modified time | relevance | path

Searched refs:activity (Results 1 – 25 of 48) sorted by relevance

12

/development/ndk/platforms/android-9/include/android/
Dnative_activity.h114 void (*onStart)(ANativeActivity* activity);
120 void (*onResume)(ANativeActivity* activity);
131 void* (*onSaveInstanceState)(ANativeActivity* activity, size_t* outSize);
137 void (*onPause)(ANativeActivity* activity);
143 void (*onStop)(ANativeActivity* activity);
149 void (*onDestroy)(ANativeActivity* activity);
155 void (*onWindowFocusChanged)(ANativeActivity* activity, int hasFocus);
161 void (*onNativeWindowCreated)(ANativeActivity* activity, ANativeWindow* window);
168 void (*onNativeWindowResized)(ANativeActivity* activity, ANativeWindow* window);
176 void (*onNativeWindowRedrawNeeded)(ANativeActivity* activity, ANativeWindow* window);
[all …]
/development/ndk/sources/android/native_app_glue/
Dandroid_native_app_glue.c134 android_app->activity->assetManager); in android_app_pre_exec_cmd()
213 AConfiguration_fromAssetManager(android_app->config, android_app->activity->assetManager); in android_app_entry()
244 static struct android_app* android_app_create(ANativeActivity* activity, in android_app_create() argument
248 android_app->activity = activity; in android_app_create()
337 static void onDestroy(ANativeActivity* activity) { in onDestroy() argument
338 LOGV("Destroy: %p\n", activity); in onDestroy()
339 android_app_free((struct android_app*)activity->instance); in onDestroy()
342 static void onStart(ANativeActivity* activity) { in onStart() argument
343 LOGV("Start: %p\n", activity); in onStart()
344 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_START); in onStart()
[all …]
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/
DWiFiDirectBroadcastReceiver.java36 private WiFiDirectActivity activity; field in WiFiDirectBroadcastReceiver
44 WiFiDirectActivity activity) { in WiFiDirectBroadcastReceiver() argument
48 this.activity = activity; in WiFiDirectBroadcastReceiver()
65 activity.setIsWifiP2pEnabled(true); in onReceive()
67 activity.setIsWifiP2pEnabled(false); in onReceive()
68 activity.resetData(); in onReceive()
78 manager.requestPeers(channel, (PeerListListener) activity.getFragmentManager() in onReceive()
96 DeviceDetailFragment fragment = (DeviceDetailFragment) activity in onReceive()
101 activity.resetData(); in onReceive()
104 DeviceListFragment fragment = (DeviceListFragment) activity.getFragmentManager() in onReceive()
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DActionBarHelper.java42 public static ActionBarHelper createInstance(Activity activity) { in createInstance() argument
44 return new ActionBarHelperICS(activity); in createInstance()
46 return new ActionBarHelperHoneycomb(activity); in createInstance()
48 return new ActionBarHelperBase(activity); in createInstance()
52 protected ActionBarHelper(Activity activity) { in ActionBarHelper() argument
53 mActivity = activity; in ActionBarHelper()
DActionBarHelperICS.java29 protected ActionBarHelperICS(Activity activity) { in ActionBarHelperICS() argument
30 super(activity); in ActionBarHelperICS()
DActionBarHelperHoneycomb.java36 protected ActionBarHelperHoneycomb(Activity activity) { in ActionBarHelperHoneycomb() argument
37 super(activity); in ActionBarHelperHoneycomb()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLocalSampleInstrumentation.java33 public final Activity activity; field in LocalSampleInstrumentation.ActivityRunnable
35 activity = _activity; in ActivityRunnable()
58 SaveRestoreState activity = (SaveRestoreState)startActivitySync(intent); in onStart() local
62 "Initial text: " + activity.getSavedText()); in onStart()
65 runOnMainSync(new ActivityRunnable(activity) { in onStart()
67 ((SaveRestoreState)activity).setSavedText(""); in onStart()
85 "Final text: " + activity.getSavedText()); in onStart()
DFragmentNestingTabs.java77 public TabListener(Activity activity, String tag, Class<T> clz) { in TabListener() argument
78 this(activity, tag, clz, null); in TabListener()
81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { in TabListener() argument
82 mActivity = activity; in TabListener()
DFragmentTabs.java77 public TabListener(Activity activity, String tag, Class<T> clz) { in TabListener() argument
78 this(activity, tag, clz, null); in TabListener()
81 public TabListener(Activity activity, String tag, Class<T> clz, Bundle args) { in TabListener() argument
82 mActivity = activity; in TabListener()
DContactsFilterInstrumentation.java52 Activity activity = startActivitySync(intent); in onStart() local
55 Log.i("ContactsFilterInstrumentation", "Started: " + activity); in onStart()
DFragmentArguments.java72 @Override public void onInflate(Activity activity, AttributeSet attrs, in onInflate() argument
74 super.onInflate(activity, attrs, savedInstanceState); in onInflate()
76 TypedArray a = activity.obtainStyledAttributes(attrs, in onInflate()
/development/samples/ApiDemos/tests/src/com/example/android/apis/app/
DForwardingTest.java87 Forwarding activity = startActivity(mStartIntent, null, null); in testSubLaunch() local
88 mButton = (Button) activity.findViewById(R.id.go); in testSubLaunch()
103 Forwarding activity = startActivity(mStartIntent, null, null); in testLifeCycleCreate() local
107 getInstrumentation().callActivityOnStart(activity); in testLifeCycleCreate()
108 getInstrumentation().callActivityOnResume(activity); in testLifeCycleCreate()
114 getInstrumentation().callActivityOnPause(activity); in testLifeCycleCreate()
119 getInstrumentation().callActivityOnStop(activity); in testLifeCycleCreate()
/development/samples/SupportAppNavigation/src/com/example/android/support/appnavigation/app/
DActionBarCompat.java32 static void setDisplayHomeAsUpEnabled(Activity activity, boolean enable) { in setDisplayHomeAsUpEnabled() argument
33 activity.getActionBar().setDisplayHomeAsUpEnabled(enable); in setDisplayHomeAsUpEnabled()
37 public static void setDisplayHomeAsUpEnabled(Activity activity, boolean enable) { in setDisplayHomeAsUpEnabled() argument
39 ActionBarCompatImpl.setDisplayHomeAsUpEnabled(activity, enable); in setDisplayHomeAsUpEnabled()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelper.java41 protected TabHelper(FragmentActivity activity) { in TabHelper() argument
42 mActivity = activity; in TabHelper()
51 public static TabHelper createInstance(FragmentActivity activity) { in createInstance() argument
53 return new TabHelperHoneycomb(activity); in createInstance()
55 return new TabHelperEclair(activity); in createInstance()
DCompatTab.java32 protected CompatTab(FragmentActivity activity, String tag) { in CompatTab() argument
33 mActivity = activity; in CompatTab()
DCompatTabHoneycomb.java38 protected CompatTabHoneycomb(FragmentActivity activity, String tag) { in CompatTabHoneycomb() argument
39 super(activity, tag); in CompatTabHoneycomb()
40 mTab = activity.getActionBar().newTab(); in CompatTabHoneycomb()
DCompatTabEclair.java32 protected CompatTabEclair(FragmentActivity activity, String tag) { in CompatTabEclair() argument
33 super(activity, tag); in CompatTabEclair()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/
DInjector.java52 private Injector(Activity activity) { in Injector() argument
53 mActivity = activity; in Injector()
59 public static Injector get(Activity activity) { in get() argument
60 return new Injector(activity); in get()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiDirectBroadcastReceiver.java38 private Activity activity; field in WiFiDirectBroadcastReceiver
46 Activity activity) { in WiFiDirectBroadcastReceiver() argument
50 this.activity = activity; in WiFiDirectBroadcastReceiver()
78 (ConnectionInfoListener) activity); in onReceive()
/development/samples/training/basic/FragmentBasics/src/com/example/fragments/
DHeadlinesFragment.java58 public void onAttach(Activity activity) { in onAttach() argument
59 super.onAttach(activity); in onAttach()
64 mCallback = (OnHeadlineSelectedListener) activity; in onAttach()
66 throw new ClassCastException(activity.toString() in onAttach()
/development/ndk/platforms/android-9/samples/native-activity/
DAndroid.mk48 LOCAL_MODULE := libnative-activity
65 LOCAL_JNI_SHARED_LIBRARIES := libnative-activity
/development/samples/SampleSyncAdapter/tests/src/com/example/android/samplesync/authenticator/
DAuthenticatorActivityTest.java73 Activity activity = mInstrumentation.waitForMonitorWithTimeout(monitor, ACTIVITY_WAIT); in testLoginOffered() local
74 View loginbutton = activity.findViewById(R.id.ok_button); in testLoginOffered()
/development/samples/Support13Demos/src/com/example/android/supportv13/app/
DActionBarTabsPager.java100 public TabsAdapter(Activity activity, ViewPager pager) { in TabsAdapter() argument
101 super(activity.getFragmentManager()); in TabsAdapter()
102 mContext = activity; in TabsAdapter()
103 mActionBar = activity.getActionBar(); in TabsAdapter()
DFragmentNestingStatePagerSupport.java98 public TabsAdapter(Activity activity, ViewPager pager) { in TabsAdapter() argument
99 super(activity.getFragmentManager()); in TabsAdapter()
100 mContext = activity; in TabsAdapter()
101 mActionBar = activity.getActionBar(); in TabsAdapter()
DFragmentNestingPagerSupport.java98 public TabsAdapter(Activity activity, ViewPager pager) { in TabsAdapter() argument
99 super(activity.getFragmentManager()); in TabsAdapter()
100 mContext = activity; in TabsAdapter()
101 mActionBar = activity.getActionBar(); in TabsAdapter()

12