Home
last modified time | relevance | path

Searched refs:MainActivity (Results 1 – 25 of 152) sorted by relevance

1234567

/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/
DMyJobService.java30 import static com.example.android.jobscheduler.MainActivity.MESSENGER_INTENT_KEY;
31 import static com.example.android.jobscheduler.MainActivity.MSG_COLOR_START;
32 import static com.example.android.jobscheduler.MainActivity.MSG_COLOR_STOP;
33 import static com.example.android.jobscheduler.MainActivity.WORK_DURATION_KEY;
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSampleMediaButtonReceiver.java33 private static MainActivity mActivity;
35 public static void setActivity(MainActivity activity) { in setActivity()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
DMainActivity.java53 public class MainActivity extends Activity { class
55 private static final String TAG = MainActivity.class.getSimpleName();
166 Toast.makeText(MainActivity.this, R.string.all_jobs_cancelled, Toast.LENGTH_SHORT).show(); in cancelAllJobs()
180 MainActivity.this, String.format(getString(R.string.cancelled_job), jobId), in finishJob()
184 MainActivity.this, getString(R.string.no_jobs_to_cancel), in finishJob()
197 private WeakReference<MainActivity> mActivity;
199 IncomingMessageHandler(MainActivity activity) { in IncomingMessageHandler()
206 MainActivity mainActivity = mActivity.get(); in handleMessage()
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/
DBigTextMainActivity.java23 import com.example.android.wearable.wear.wearnotifications.MainActivity;
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DBigPictureSocialMainActivity.java23 import com.example.android.wearable.wear.wearnotifications.MainActivity;
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DInboxMainActivity.java23 import com.example.android.wearable.wear.wearnotifications.MainActivity;
41 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DMessagingMainActivity.java23 import com.example.android.wearable.wear.wearnotifications.MainActivity;
43 notificationManager.cancel(MainActivity.NOTIFICATION_ID); in onCreate()
DBigTextIntentService.java29 import com.example.android.wearable.wear.wearnotifications.MainActivity;
76 notificationManagerCompat.cancel(MainActivity.NOTIFICATION_ID); in handleActionDismiss()
106 notificationManagerCompat.cancel(MainActivity.NOTIFICATION_ID); in handleActionSnooze()
113 notificationManagerCompat.notify(MainActivity.NOTIFICATION_ID, notification); in handleActionSnooze()
/development/samples/browseable/TextSwitcher/src/com.example.android.textswitcher/
DMainActivity.java36 public class MainActivity extends Activity { class
97 TextView t = new TextView(MainActivity.this);
99 t.setTextAppearance(MainActivity.this, android.R.style.TextAppearance_Large);
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/fragments/
DSettingsFragment.java19 import com.example.android.wearable.jumpingjack.MainActivity;
42 ((MainActivity) getActivity()).resetCounter(); in onCreateView()
/development/samples/browseable/AlwaysOn/src/com.example.android.wearable.wear.alwayson/
DMainActivity.java67 public class MainActivity extends WearableActivity { class
119 Intent ambientStateIntent = new Intent(getApplicationContext(), MainActivity.class); in onCreate()
317 private final WeakReference<MainActivity> mMainActivityWeakReference;
319 public UpdateHandler(MainActivity reference) { in UpdateHandler()
320 mMainActivityWeakReference = new WeakReference<MainActivity>(reference); in UpdateHandler()
325 MainActivity mainActivity = mMainActivityWeakReference.get(); in handleMessage()
/development/samples/browseable/BorderlessButtons/src/com.example.android.borderlessbuttons/
DMainActivity.java38 public class MainActivity extends ListActivity { class
92 Toast.makeText(MainActivity.this,
102 Toast.makeText(MainActivity.this,
/development/samples/browseable/MidiSynth/src/com.example.android.midisynth/
DMainActivity.java39 public class MainActivity extends Activity { class
115 Toast.makeText(MainActivity.this, in onPortsConnected()
120 Toast.makeText(MainActivity.this, in onPortsConnected()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DMainActivity.java31 public class MainActivity extends ListActivity { class
80 startActivity(new Intent(MainActivity.this, mSamples[position].activityClass)); in onListItemClick()
/development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/
DMainActivity.java35 public class MainActivity extends Activity { class
73 mPrefs = PreferenceManager.getDefaultSharedPreferences(MainActivity.this); in onCreate()
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/
DMainActivity.java29 public class MainActivity extends Activity { class
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DMainActivity.java33 public class MainActivity extends Activity { class
/development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/
DMainActivity.java31 public class MainActivity extends ActionBarActivity { class
/development/samples/browseable/AutoBackupForApps/src/com.example.android.autobackupsample/
DMainActivity.java25 public class MainActivity extends Activity { class
/development/samples/browseable/MessagingService/src/com.example.android.messagingservice/
DMainActivity.java22 public class MainActivity extends Activity { class
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/
DMainActivity.java32 public class MainActivity extends Activity { class
51 Intent i = new Intent(this, MainActivity.class); in createNotification()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/
DMainActivity.java25 public class MainActivity extends AppCompatActivity { class
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DResponderService.java84 } else if (action.equals(MainActivity.ACTION_GET_CONVERSATION)) { in onStartCommand()
134 Intent intent = new Intent(MainActivity.ACTION_NOTIFY); in broadcastMessage()
135 intent.putExtra(MainActivity.EXTRA_MESSAGE, message); in broadcastMessage()
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/
DMainActivity.java47 public class MainActivity extends AppCompatActivity { class
118 mInflater = LayoutInflater.from(MainActivity.this);
161 Intent shareIntent = item.getShareIntent(MainActivity.this); in setShareIntent()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DMainActivity.java25 public class MainActivity extends AppCompatActivity { class

1234567