/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
H A D | BasicGLSurfaceView.java | 25 public BasicGLSurfaceView(Context context) { argument 26 super(context); 28 setRenderer(new GLES20TriangleRenderer(context));
|
/development/apps/Development/src/com/android/development/ |
H A D | LogTextBox.java | 41 public LogTextBox(Context context) { argument 42 this(context, null); 45 public LogTextBox(Context context, AttributeSet attrs) { argument 46 this(context, attrs, android.R.attr.textViewStyle); 49 public LogTextBox(Context context, AttributeSet attrs, int defStyle) { argument 50 super(context, attrs, defStyle);
|
/development/samples/ApiDemos/src/com/example/android/apis/text/ |
H A D | LogTextBox.java | 38 public LogTextBox(Context context) { argument 39 this(context, null); 42 public LogTextBox(Context context, AttributeSet attrs) { argument 43 this(context, attrs, android.R.attr.textViewStyle); 46 public LogTextBox(Context context, AttributeSet attrs, int defStyle) { argument 47 super(context, attrs, defStyle);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
H A D | CheckableFrameLayout.java | 28 public CheckableFrameLayout(Context context) { argument 29 super(context); 32 public CheckableFrameLayout(Context context, AttributeSet attrs) { argument 33 super(context, attrs);
|
H A D | GridLayout3.java | 39 public static View create(Context context) { argument 40 GridLayout p = new GridLayout(context); 43 Configuration configuration = context.getResources().getConfiguration(); 65 TextView c = new TextView(context); 71 TextView c = new TextView(context); 77 TextView c = new TextView(context); 82 EditText c = new EditText(context); 88 TextView c = new TextView(context); 93 TextView c = new EditText(context); 99 Button c = new Button(context); [all...] |
H A D | List4.java | 51 public SpeechListAdapter(Context context) { argument 52 mContext = context; 107 * Remember our context so we can use it when constructing views. 118 public SpeechView(Context context, String title, String words) { argument 119 super(context); 126 mTitle = new TextView(context); 131 mDialogue = new TextView(context);
|
/development/samples/StackWidget/src/com/example/android/stackwidget/ |
H A D | StackWidgetProvider.java | 33 public void onDeleted(Context context, int[] appWidgetIds) { argument 34 super.onDeleted(context, appWidgetIds); 38 public void onDisabled(Context context) { argument 39 super.onDisabled(context); 43 public void onEnabled(Context context) { argument 44 super.onEnabled(context); 48 public void onReceive(Context context, Intent intent) { argument 49 AppWidgetManager mgr = AppWidgetManager.getInstance(context); 54 Toast.makeText(context, "Touched view " + viewIndex, Toast.LENGTH_SHORT).show(); 56 super.onReceive(context, inten 60 onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) argument [all...] |
/development/samples/Support13Demos/src/com/example/android/supportv13/view/ |
H A D | CheckableFrameLayout.java | 28 public CheckableFrameLayout(Context context) { argument 29 super(context); 32 public CheckableFrameLayout(Context context, AttributeSet attrs) { argument 33 super(context, attrs);
|
/development/samples/Support4Demos/src/com/example/android/supportv4/view/ |
H A D | CheckableFrameLayout.java | 28 public CheckableFrameLayout(Context context) { argument 29 super(context); 32 public CheckableFrameLayout(Context context, AttributeSet attrs) { argument 33 super(context, attrs);
|
/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/ |
H A D | MusicIntentReceiver.java | 34 public void onReceive(Context context, Intent intent) { argument 36 Toast.makeText(context, "Headphones disconnected.", Toast.LENGTH_SHORT).show(); 39 context.startService(new Intent(MusicService.ACTION_PAUSE)); 49 context.startService(new Intent(MusicService.ACTION_TOGGLE_PLAYBACK)); 52 context.startService(new Intent(MusicService.ACTION_PLAY)); 55 context.startService(new Intent(MusicService.ACTION_PAUSE)); 58 context.startService(new Intent(MusicService.ACTION_STOP)); 61 context.startService(new Intent(MusicService.ACTION_SKIP)); 66 context.startService(new Intent(MusicService.ACTION_REWIND));
|
/development/samples/BrowserPlugin/src/com/android/sampleplugin/ |
H A D | AnimationSurface.java | 10 public AnimationSurface(Context context) { argument 11 super(context);
|
H A D | BackgroundSurface.java | 9 public BackgroundSurface(Context context) { argument 10 super(context);
|
H A D | VideoSurface.java | 38 public VideoSurface(Context context) { argument 39 super(context); 44 // VideoView video = new VideoView(context); 48 GLSurfaceView gl = new GLSurfaceView(context); 61 // video.setMediaController(new MediaController(context));
|
/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
H A D | TouchExampleView.java | 33 public TouchExampleView(Context context) { argument 34 this(context, null, 0); 37 public TouchExampleView(Context context, AttributeSet attrs) { argument 38 this(context, attrs, 0); 41 public TouchExampleView(Context context, AttributeSet attrs, int defStyle) { argument 42 super(context, attrs, defStyle); 43 mIcon = context.getResources().getDrawable(R.drawable.icon); 46 mDetector = VersionedGestureDetector.newInstance(context, new GestureCallback());
|
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
H A D | ExampleAppWidgetProvider.java | 52 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { argument 61 String titlePrefix = ExampleAppWidgetConfigure.loadTitlePref(context, appWidgetId); 62 updateAppWidget(context, appWidgetManager, appWidgetId, titlePrefix); 67 public void onDeleted(Context context, int[] appWidgetIds) { argument 72 ExampleAppWidgetConfigure.deleteTitlePref(context, appWidgetIds[i]); 77 public void onEnabled(Context context) { argument 83 PackageManager pm = context.getPackageManager(); 91 public void onDisabled(Context context) { argument 95 PackageManager pm = context.getPackageManager(); 102 static void updateAppWidget(Context context, AppWidgetManage argument [all...] |
H A D | ExampleAppWidgetConfigure.java | 86 final Context context = ExampleAppWidgetConfigure.this; 91 saveTitlePref(context, mAppWidgetId, titlePrefix); 94 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context); 95 ExampleAppWidgetProvider.updateAppWidget(context, appWidgetManager, 107 static void saveTitlePref(Context context, int appWidgetId, String text) { argument 108 SharedPreferences.Editor prefs = context.getSharedPreferences(PREFS_NAME, 0).edit(); 115 static String loadTitlePref(Context context, int appWidgetId) { argument 116 SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, 0); 121 return context.getString(R.string.appwidget_prefix_default); 125 static void deleteTitlePref(Context context, in argument 128 loadAllTitlePrefs(Context context, ArrayList<Integer> appWidgetIds, ArrayList<String> texts) argument [all...] |
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
H A D | LatinKeyboardView.java | 30 public LatinKeyboardView(Context context, AttributeSet attrs) { argument 31 super(context, attrs); 34 public LatinKeyboardView(Context context, AttributeSet attrs, int defStyle) { argument 35 super(context, attrs, defStyle);
|
/development/apps/BuildWidget/src/com/android/buildwidget/ |
H A D | BuildWidget.java | 43 public void onUpdate(Context context, AppWidgetManager appWidgetManager, argument 46 context.startService(new Intent(context, UpdateService.class)); 61 public RemoteViews buildUpdate(Context context) { argument 63 Resources res = context.getResources(); 65 context.getPackageName(), R.layout.widget); 67 PendingIntent pendingIntent = PendingIntent.getActivity(context, 75 DateUtils.formatDateTime(context, android.os.Build.TIME,
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
H A D | AppUpdateReceiver.java | 31 public void onReceive(Context context, Intent intent) { argument 32 Toast.makeText(context, R.string.app_update_received, Toast.LENGTH_SHORT).show();
|
H A D | OneShotAlarm.java | 37 public void onReceive(Context context, Intent intent) argument 39 Toast.makeText(context, R.string.one_shot_received, Toast.LENGTH_SHORT).show();
|
H A D | RepeatingAlarm.java | 35 public void onReceive(Context context, Intent intent) argument 37 Toast.makeText(context, R.string.repeating_received, Toast.LENGTH_SHORT).show();
|
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
H A D | TouchHighlightImageButton.java | 44 public TouchHighlightImageButton(Context context) { argument 45 super(context); 49 public TouchHighlightImageButton(Context context, AttributeSet attrs) { argument 50 super(context, attrs); 54 public TouchHighlightImageButton(Context context, AttributeSet attrs, int defStyle) { argument 55 super(context, attrs, defStyle);
|
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/ |
H A D | InputMethodSettingsImpl.java | 53 * @param context the context for this application. 57 public boolean init(final Context context, final PreferenceScreen prefScreen) { argument 58 mContext = context; 59 mImm = (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE); 60 mImi = getMyImi(context, mImm); 64 mSubtypeEnablerPreference = new Preference(context); 69 final CharSequence title = getSubtypeEnablerTitle(context); 79 context.startActivity(intent); 88 private static InputMethodInfo getMyImi(Context context, InputMethodManage argument 99 getEnabledSubtypesLabel( Context context, InputMethodManager imm, InputMethodInfo imi) argument 172 getSubtypeEnablerTitle(Context context) argument [all...] |
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
H A D | WeatherWidgetProvider.java | 88 public void onEnabled(Context context) { argument 93 final ContentResolver r = context.getContentResolver(); 95 final AppWidgetManager mgr = AppWidgetManager.getInstance(context); 96 final ComponentName cn = new ComponentName(context, WeatherWidgetProvider.class); 110 final Context context = ctx; 115 final ContentResolver r = context.getContentResolver(); 132 final AppWidgetManager mgr = AppWidgetManager.getInstance(context); 133 final ComponentName cn = new ComponentName(context, WeatherWidgetProvider.class); 152 private RemoteViews buildLayout(Context context, int appWidgetId, boolean largeLayout) { argument 157 final Intent intent = new Intent(context, WeatherWidgetServic 207 onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) argument 217 onAppWidgetOptionsChanged(Context context, AppWidgetManager appWidgetManager, int appWidgetId, Bundle newOptions) argument [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/preference/ |
H A D | DefaultValues.java | 56 static SharedPreferences getPrefs(Context context) { argument 57 PreferenceManager.setDefaultValues(context, PREFS_NAME, MODE_PRIVATE, 59 return context.getSharedPreferences(PREFS_NAME, MODE_PRIVATE);
|