Home
last modified time | relevance | path

Searched refs:mActivity (Results 1 – 24 of 24) sorted by relevance

/development/samples/SpinnerTest/src/com/android/example/spinner/test/
DSpinnerActivityTest.java69 private SpinnerActivity mActivity; field in SpinnerActivityTest
128 mActivity = getActivity(); in setUp()
135 mSpinner = (Spinner)mActivity.findViewById(com.android.example.spinner.R.id.Spinner01); in setUp()
183 mActivity.runOnUiThread( in testSpinnerUI()
223 (TextView) mActivity.findViewById(com.android.example.spinner.R.id.SpinnerResult); in testSpinnerUI()
253 mActivity.setSpinnerPosition(TEST_STATE_DESTROY_POSITION); in testStateDestroy()
255 mActivity.setSpinnerSelection(TEST_STATE_DESTROY_SELECTION); in testStateDestroy()
259 mActivity.finish(); in testStateDestroy()
263 mActivity = this.getActivity(); in testStateDestroy()
269 int currentPosition = mActivity.getSpinnerPosition(); in testStateDestroy()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DIsolatedService.java107 final Activity mActivity; field in IsolatedService.Controller.ServiceInfo
115 mActivity = activity; in ServiceInfo()
117 Button button = (Button)mActivity.findViewById(start); in ServiceInfo()
119 button = (Button)mActivity.findViewById(stop); in ServiceInfo()
121 CheckBox cb = (CheckBox)mActivity.findViewById(bind); in ServiceInfo()
123 mStatus = (TextView)mActivity.findViewById(status); in ServiceInfo()
128 mActivity.unbindService(mConnection); in destroy()
134 mActivity.startService(new Intent(mActivity, mClz));
140 mActivity.stopService(new Intent(mActivity, mClz));
148 if (mActivity.bindService(new Intent(mActivity, mClz),
[all …]
DFragmentNestingTabs.java71 private final Activity mActivity; field in FragmentNestingTabs.TabListener
82 mActivity = activity; in TabListener()
90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); in TabListener()
92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); in TabListener()
100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); in onTabSelected()
114 Toast.makeText(mActivity, "Reselected!", Toast.LENGTH_SHORT).show(); in onTabReselected()
DFragmentTabs.java71 private final Activity mActivity; field in FragmentTabs.TabListener
82 mActivity = activity; in TabListener()
90 mFragment = mActivity.getFragmentManager().findFragmentByTag(mTag); in TabListener()
92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); in TabListener()
100 mFragment = Fragment.instantiate(mActivity, mClass.getName(), mArgs); in onTabSelected()
114 Toast.makeText(mActivity, "Reselected!", Toast.LENGTH_SHORT).show(); in onTabReselected()
DDeviceAdminSample.java141 protected DeviceAdminSample mActivity; field in DeviceAdminSample.AdminSampleFragment
155 mActivity = (DeviceAdminSample) getActivity(); in onActivityCreated()
156 mDPM = mActivity.mDPM; in onActivityCreated()
157 mDeviceAdminSample = mActivity.mDeviceAdminSample; in onActivityCreated()
158 mAdminActive = mActivity.isActiveAdmin(); in onActivityCreated()
175 mAdminActive = mActivity.isActiveAdmin(); in onResume()
224 if (alertIfMonkey(mActivity, R.string.monkey_reset_password)) { in doResetPassword()
228 AlertDialog.Builder builder = new AlertDialog.Builder(mActivity); in doResetPassword()
229 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword()
306 mActivity.getString(R.string.add_admin_extra_app_text)); in onPreferenceChange()
[all …]
/development/samples/ActionBarCompat/src/com/example/android/actionbarcompat/
DActionBarHelperBase.java60 mActivity.requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); in onCreate()
66 mActivity.getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, in onPostCreate()
70 SimpleMenu menu = new SimpleMenu(mActivity); in onPostCreate()
71 mActivity.onCreatePanelMenu(Window.FEATURE_OPTIONS_PANEL, menu); in onPostCreate()
72 mActivity.onPrepareOptionsMenu(menu); in onPostCreate()
95 SimpleMenu tempMenu = new SimpleMenu(mActivity); in setupActionBar()
97 tempMenu, android.R.id.home, 0, mActivity.getString(R.string.app_name)); in setupActionBar()
102 TextView titleText = new TextView(mActivity, null, R.attr.actionbarCompatTitleStyle); in setupActionBar()
104 titleText.setText(mActivity.getTitle()); in setupActionBar()
111 View refreshButton = mActivity.findViewById(R.id.actionbar_compat_item_refresh); in setRefreshActionItemState()
[all …]
DActionBarHelper.java35 protected Activity mActivity; field in ActionBarHelper
53 mActivity = activity; in ActionBarHelper()
DActionBarHelperICS.java35 return mActivity.getActionBar().getThemedContext(); in getActionBarThemedContext()
DActionBarHelperHoneycomb.java78 return mActivity; in getActionBarThemedContext()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/
DInjector.java50 private final Activity mActivity; field in Injector
53 mActivity = activity; in Injector()
75 for (Field field : mActivity.getClass().getDeclaredFields()) { in inject()
82 Object injectedValue = fieldType.cast(mActivity.findViewById(idValue)); in inject()
88 field.set(mActivity, injectedValue); in inject()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DSecureViewOverlay.java34 private SecureView mActivity; field in SecureViewOverlay
41 this.mActivity = activity; in setActivityToSpoof()
54 mActivity.findViewById(R.id.secure_view_description)); in onLayout()
56 mActivity.findViewById(R.id.secure_view_unsecure_button)); in onLayout()
58 mActivity.findViewById(R.id.secure_view_builtin_secure_button)); in onLayout()
60 mActivity.findViewById(R.id.secure_view_custom_secure_button)); in onLayout()
DVideoPlayerActivity.java64 Activity mActivity; field in VideoPlayerActivity.Content
90 mActivity = activity; in init()
100 if (mActivity != null) { in onAttachedToWindow()
102 mActivity.getActionBar().addOnMenuVisibilityListener(this); in onAttachedToWindow()
109 mActivity.getActionBar().removeOnMenuVisibilityListener(this); in onDetachedFromWindow()
DOverscanActivity.java57 private OverscanActivity mActivity; field in OverscanActivity.IV
67 mActivity = act; in setActivity()
71 mActivity.refreshSizes(); in onSizeChanged()
75 mActivity.updateCheckControls(); in onSystemUiVisibilityChange()
76 mActivity.refreshSizes(); in onSystemUiVisibilityChange()
99 mActivity.clearActionMode(); in onDestroyActionMode()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DTabHelper.java39 protected FragmentActivity mActivity; field in TabHelper
42 mActivity = activity; in TabHelper()
67 return new CompatTabHoneycomb(mActivity, tag); in newTab()
69 return new CompatTabEclair(mActivity, tag); in newTab()
DTabHelperEclair.java51 mActivity = activity; in TabHelperEclair()
57 mTabHost = (TabHost) mActivity.findViewById(android.R.id.tabhost); in setUp()
74 spec.setContent(new DummyTabFactory(mActivity)); in addTab()
80 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); in addTab()
84 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in addTab()
100 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabChanged()
121 mActivity.getSupportFragmentManager().executePendingTransactions(); in onTabChanged()
DTabHelperHoneycomb.java40 mActionBar = mActivity.getActionBar(); in setUp()
53 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); in addTab()
57 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in addTab()
DCompatTab.java29 final FragmentActivity mActivity; field in CompatTab
33 mActivity = activity; in CompatTab()
DCompatTabHoneycomb.java84 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabReselected()
92 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabSelected()
100 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabUnselected()
DCompatTabEclair.java38 mText = mActivity.getResources().getText(resId); in setText()
44 mIcon = mActivity.getResources().getDrawable(resId); in setIcon()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/ui/
DDialogHelperImpl.java75 private final Activity mActivity; field in DialogHelperImpl
78 mActivity = activity; in DialogHelperImpl()
83 showErrorMessageDialog(mActivity.getString(titleId), exception); in showErrorMessageDialog()
91 mActivity.showDialog(DIALOG_ID_EXCEPTION, bundle); in showErrorMessageDialog()
101 return new AlertDialog.Builder(mActivity) in handleOnCreateDialog()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java61 private final TabCompatActivity mActivity; field in MainActivity.InstantiatingTabListener
71 mActivity = activity; in InstantiatingTabListener()
82 fragment = Fragment.instantiate(mActivity, mClass.getName()); in onTabSelected()
/development/samples/USB/AdbTest/src/com/android/adb/
DAdbDevice.java31 private final AdbTestActivity mActivity; field in AdbDevice
50 mActivity = activity; in AdbDevice()
154 mActivity.deviceOnline(this); in handleConnect()
189 mActivity.log(s); in log()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorFilters.java38 private Activity mActivity; field in ColorFilters.SampleView
60 mActivity = activity; in SampleView()
124 mActivity.setTitle(mModes[mModeIndex].toString()); in updateTitle()
/development/apps/Development/src/com/android/development/
DAccountsTester.java491 private final AccountsTester mActivity; field in AccountsTester.CallbackToDialog
495 mActivity = activity; in CallbackToDialog()
500 mActivity.getAndLogResult(future, mLabel); in run()