/development/samples/SpinnerTest/src/com/android/example/spinner/test/ |
D | SpinnerActivityTest.java | 69 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/ |
D | IsolatedService.java | 107 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 …]
|
D | FragmentNestingTabs.java | 71 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()
|
D | FragmentTabs.java | 71 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()
|
D | DeviceAdminSample.java | 161 protected DeviceAdminSample mActivity; field in DeviceAdminSample.AdminSampleFragment 175 mActivity = (DeviceAdminSample) getActivity(); in onActivityCreated() 176 mDPM = mActivity.mDPM; in onActivityCreated() 177 mDeviceAdminSample = mActivity.mDeviceAdminSample; in onActivityCreated() 178 mAdminActive = mActivity.isActiveAdmin(); in onActivityCreated() 195 mAdminActive = mActivity.isActiveAdmin(); in onResume() 253 if (alertIfMonkey(mActivity, R.string.monkey_reset_password)) { in doResetPassword() 257 AlertDialog.Builder builder = new AlertDialog.Builder(mActivity); in doResetPassword() 258 String message = mActivity.getString(R.string.reset_password_warning, newPassword); in doResetPassword() 383 mActivity.getString(R.string.add_admin_extra_app_text)); in onPreferenceChange() [all …]
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/inject/ |
D | Injector.java | 50 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/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | SampleMediaButtonReceiver.java | 33 private static MainActivity mActivity; field in SampleMediaButtonReceiver 36 mActivity = activity; in setActivity() 41 if (mActivity != null && Intent.ACTION_MEDIA_BUTTON.equals(intent.getAction())) { in onReceive() 42 mActivity.handleMediaKey( in onReceive()
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | SecureViewOverlay.java | 34 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()
|
D | VideoPlayerActivity.java | 64 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()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
D | TabHelper.java | 39 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()
|
D | TabHelperEclair.java | 51 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()
|
D | TabHelperHoneycomb.java | 40 mActionBar = mActivity.getActionBar(); in setUp() 53 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); in addTab() 57 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in addTab()
|
D | CompatTab.java | 29 final FragmentActivity mActivity; field in CompatTab 33 mActivity = activity; in CompatTab()
|
D | CompatTabHoneycomb.java | 84 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabReselected() 92 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabSelected() 100 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabUnselected()
|
D | CompatTabEclair.java | 38 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/ |
D | DialogHelperImpl.java | 75 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/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/ |
D | FingerprintAuthenticationDialogFragment.java | 57 private MainActivity mActivity; field in FingerprintAuthenticationDialogFragment 105 mActivity.getSystemService(FingerprintManager.class), in onCreateView() 139 mActivity = (MainActivity) getActivity(); in onAttach() 184 mActivity.createKey(MainActivity.DEFAULT_KEY_NAME, true); in verifyPassword() 189 mActivity.onPurchased(false /* without Fingerprint */, null); in verifyPassword() 246 mActivity.onPurchased(true /* withFingerprint */, mCryptoObject); in onAuthenticated()
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | InlineAdapter.java | 47 private FragmentActivity mActivity; field in InlineAdapter 50 this.mActivity = activity; in InlineAdapter() 56 int currentTaskId = mActivity.getTaskId(); in indexOfRunningTask() 82 holder.setTask(mTasks.get(position), mActivity.getSupportFragmentManager(), in onBindViewHolder()
|
/development/samples/USB/AdbTest/src/com/android/adb/ |
D | AdbDevice.java | 31 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/training/TabCompat/src/com/example/android/tabcompat/ |
D | MainActivity.java | 61 private final TabCompatActivity mActivity; field in MainActivity.InstantiatingTabListener 71 mActivity = activity; in InstantiatingTabListener() 82 fragment = Fragment.instantiate(mActivity, mClass.getName()); in onTabSelected()
|
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/ |
D | ScopedDirectoryAccessFragment.java | 60 private Activity mActivity; field in ScopedDirectoryAccessFragment 81 mActivity = getActivity(); in onAttach() 82 mStorageManager = mActivity.getSystemService(StorageManager.class); in onAttach() 128 LinearLayout containerVolumes = (LinearLayout) mActivity in onViewCreated() 131 String volumeDescription = volume.getDescription(mActivity); in onViewCreated() 140 LinearLayout volumeArea = (LinearLayout) mActivity.getLayoutInflater() in onViewCreated()
|
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/ |
D | FingerprintAuthenticationDialogFragment.java | 74 private MainActivity mActivity; field in FingerprintAuthenticationDialogFragment 163 mActivity = (MainActivity) getActivity(); in onAttach() 233 mActivity.createKeyPair(); in verifyPassword() 238 mActivity.onPurchased(null); in verifyPassword() 296 mActivity.onPurchased(sigBytes); in onAuthenticated() 299 mActivity.onPurchaseFailed(); in onAuthenticated()
|
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/ |
D | MainActivity.java | 197 private WeakReference<MainActivity> mActivity; field in MainActivity.IncomingMessageHandler 201 this.mActivity = new WeakReference<>(activity); in IncomingMessageHandler() 206 MainActivity mainActivity = mActivity.get(); in handleMessage() 255 TextView paramsTextView = (TextView) mActivity.get().findViewById(R.id.task_params); in updateParamsTextView() 265 return mActivity.get().getResources().getColor(color); in getColor()
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | MidiPortSelector.java | 43 protected Activity mActivity; field in MidiPortSelector 57 mActivity = activity; in MidiPortSelector() 139 + ", activity = " + mActivity.getPackageName() in onDeviceStatusChanged()
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ColorFilters.java | 38 private Activity mActivity; field in ColorFilters.SampleView 60 mActivity = activity; in SampleView() 124 mActivity.setTitle(mModes[mModeIndex].toString()); in updateTitle()
|