/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
CurrentUserTracker.java | 21 import android.content.Context; 27 private Context mContext; 30 public CurrentUserTracker(Context context) { 32 context.registerReceiver(this, filter); 34 mContext = context; 42 public void onReceive(Context context, Intent intent) {
|
/packages/apps/Email/src/com/android/email/ |
RequireManualSyncDialog.java | 22 import android.content.Context; 29 public RequireManualSyncDialog(Context context, Account account) { 30 super(context); 31 setMessage(context.getResources().getString(R.string.require_manual_sync_message)); 32 setButton(DialogInterface.BUTTON_POSITIVE, context.getString(android.R.string.ok), this); 33 Preferences.getPreferences(context).setHasShownRequireManualSync(context, account, true);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CorporaUpdateReceiver.java | 21 import android.content.Context; 34 public void onReceive(Context context, Intent intent) { 39 updateCorpora(context); 40 SearchWidgetProvider.updateSearchWidgets(context); 44 private void updateCorpora(Context context) { 45 QsbApplication.get(context).updateCorpora();
|
/cts/tests/tests/text/src/android/text/cts/ |
BidiFormatterTest.java | 27 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */); 28 private static final BidiFormatter RTL_FMT = BidiFormatter.getInstance(true /* RTL context */); 31 new BidiFormatter.Builder(false /* LTR context */).stereoReset(false).build(); 33 new BidiFormatter.Builder(true /* RTL context */).stereoReset(false).build(); 66 assertEquals("uniform dir matches LTR context", 68 assertEquals("uniform dir matches RTL context", 71 assertEquals("exit dir opposite to LTR context", 73 assertEquals("exit dir opposite to RTL context", 76 assertEquals("overall dir (but not exit dir) opposite to LTR context", 78 assertEquals("overall dir (but not exit dir) opposite to RTL context", [all...] |
/external/webkit/Source/WebCore/rendering/svg/ |
RenderSVGResourceSolidColor.cpp | 45 bool RenderSVGResourceSolidColor::applyResource(RenderObject* object, RenderStyle* style, GraphicsContext*& context, unsigned short resourceMode) 50 ASSERT(context); 57 context->setAlpha(svgStyle ? svgStyle->fillOpacity() : 1.0f); 58 context->setFillColor(m_color, colorSpace); 59 context->setFillRule(svgStyle ? svgStyle->fillRule() : RULE_NONZERO); 62 context->setTextDrawingMode(TextModeFill); 64 context->setAlpha(svgStyle ? svgStyle->strokeOpacity() : 1.0f); 65 context->setStrokeColor(m_color, colorSpace); 68 SVGRenderSupport::applyStrokeStyleToContext(context, style, object); 71 context->setTextDrawingMode(TextModeStroke) [all...] |
/frameworks/base/core/java/com/android/internal/view/menu/ |
ContextMenuBuilder.java | 19 import android.content.Context; 33 * context menus, it will use this class. 35 * To use this class, instantiate it via {@link #ContextMenuBuilder(Context)}, 38 * with a view's context menu items and show the context menu. 42 public ContextMenuBuilder(Context context) { 43 super(context); 67 * Shows this context menu, allowing the optional original view (and its 71 * context menu [all...] |
/packages/apps/Browser/src/com/android/browser/preferences/ |
FontSizePreview.java | 19 import android.content.Context; 36 Context context, AttributeSet attrs, int defStyle) { 37 super(context, attrs, defStyle); 40 public FontSizePreview(Context context, AttributeSet attrs) { 41 super(context, attrs); 44 public FontSizePreview(Context context) { 45 super(context); [all...] |
/packages/apps/Mms/src/com/android/mms/ui/ |
AttachmentTypeSelectorAdapter.java | 23 import android.content.Context; 43 public AttachmentTypeSelectorAdapter(Context context, int mode) { 44 super(context, getData(mode, context)); 52 protected static List<IconListItem> getData(int mode, Context context) { 54 addItem(data, context.getString(R.string.attach_image), 57 addItem(data, context.getString(R.string.attach_take_photo), 60 addItem(data, context.getString(R.string.attach_video) [all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
CacheManager.java | 23 import android.content.Context; 40 public static BlobCache getCache(Context context, String filename, 44 removeOldFilesIfNecessary(context); 49 File cacheDir = PUT_CACHE_ON_SDCARD ? context.getExternalCacheDir() 50 : context.getCacheDir(); 66 private static void removeOldFilesIfNecessary(Context context) { 68 .getDefaultSharedPreferences(context); 78 clear(context); [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MtpReceiver.java | 20 import android.content.Context; 31 public void onReceive(Context context, Intent intent) { 34 final Intent usbState = context.registerReceiver( 37 handleUsbState(context, usbState); 40 handleUsbState(context, intent); 44 private void handleUsbState(Context context, Intent intent) { 51 intent = new Intent(context, MtpService.class); 55 context.startService(intent) [all...] |
/external/libsepol/src/ |
context.c | 10 #include "context.h" 21 int sepol_check_context(const char *context) 24 return sepol_context_to_sid((const sepol_security_context_t)context, 25 strlen(context) + 1, NULL); 31 * Return 1 if the fields in the security context 81 * Write the security context string representation of 82 * the context structure `context' into a dynamically 89 const context_struct_t * context, 97 /* Compute the size of the context. * [all...] |
/development/samples/BasicGLSurfaceView/src/com/example/android/basicglsurfaceview/ |
BasicGLSurfaceView.java | 19 import android.content.Context; 25 public BasicGLSurfaceView(Context context) { 26 super(context); 28 setRenderer(new GLES20TriangleRenderer(context));
|
/external/icu4c/samples/ucnv/ |
flagcb.h | 12 /* The structure of a FromU Flag context. 13 (conceivably there could be a ToU Flag Context) */ 23 * open the context 32 const void *context, 50 U_CAPI void debugCB_fromU(const void *context,
|
/external/libselinux/include/selinux/ |
context.h | 18 /* Return a new context initialized to a context string */ 30 /* Free the storage used by a context */ 33 /* Get a pointer to the string value of a context component */ 40 /* Set a context component. Returns nonzero if unsuccessful */
|
/external/linux-tools-perf/scripts/perl/Perf-Trace-Util/ |
Context.c | 3 * contents of Context.xs. Do not edit this file, edit Context.xs instead. 9 #line 1 "Context.xs" 11 * Context.xs. XS interfaces for perf script. 41 #line 42 "Context.c" 52 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_pc", "context"); 55 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); local 59 RETVAL = common_pc(context); 75 Perl_croak(aTHX_ "Usage: %s(%s)", "Perf::Trace::Context::common_flags", "context") 78 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); local 101 struct scripting_context * context = INT2PTR(struct scripting_context *,SvIV(ST(0))); local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPreferenceManager.java | 4 import android.content.Context; 20 public static SharedPreferences getDefaultSharedPreferences(Context context) { 21 ShadowApplication shadowApplication = shadowOf((Application) context.getApplicationContext()); 22 return new TestSharedPreferences(shadowApplication.getSharedPreferenceMap(), "__default__", Context.MODE_PRIVATE);
|
ShadowResourceCursorAdapter.java | 22 import android.content.Context; 45 * @param context The context where the ListView associated with this 51 public void __constructor__(Context context, int layout, Cursor c) { 52 super.__constructor__(context, c); 54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 60 * @param context The context where the ListView associated with thi [all...] |
/frameworks/support/v4/honeycomb/android/support/v4/content/ |
ContextCompatHoneycomb.java | 19 import android.content.Context; 23 * Implementation of context compatibility that can call Honeycomb APIs. 27 static void startActivities(Context context, Intent[] intents) { 28 context.startActivities(intents);
|
/packages/apps/Camera/src/com/android/camera/ |
CameraBackupAgent.java | 21 import android.content.Context; 27 Context context = getApplicationContext(); local 28 String prefNames[] = ComboPreferences.getSharedPreferencesNames(context); 30 addHelper(CAMERA_BACKUP_KEY, new SharedPreferencesBackupHelper(context, prefNames));
|
/packages/apps/Dialer/src/com/android/dialer/util/ |
OrientationUtil.java | 19 import android.content.Context; 28 * @return if the context is in landscape orientation. 30 public static boolean isLandscape(Context context) { 31 return context.getResources().getConfiguration().orientation
|
/packages/apps/Email/src/com/android/email/service/ |
EmailServiceUtils.java | 20 import android.content.Context; 40 public static void startService(Context context, String intentAction) { 41 context.startService(new Intent(intentAction)); 48 * @param context 51 public static IEmailService getService(Context context, String intentAction, 53 return new EmailServiceProxy(context, intentAction, callback); 59 public static boolean isServiceAvailable(Context context, String intentAction) [all...] |
/packages/apps/Gallery2/src/com/android/camera/ |
CameraBackupAgent.java | 21 import android.content.Context; 27 Context context = getApplicationContext(); local 28 String prefNames[] = ComboPreferences.getSharedPreferencesNames(context); 30 addHelper(CAMERA_BACKUP_KEY, new SharedPreferencesBackupHelper(context, prefNames));
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
Config.java | 19 import android.content.Context; 36 public static synchronized AlbumSetPage get(Context context) { 38 sInstance = new AlbumSetPage(context); 43 private AlbumSetPage(Context context) { 44 Resources r = context.getResources(); 87 public static synchronized AlbumPage get(Context context) { 89 sInstance = new AlbumPage(context); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
FeedbackUtils.java | 19 import android.content.Context; 27 public static void showFeedbackForm(Context context) { 34 public static Intent getAboutKeyboardIntent(Context context) {
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
CameraPreviewView.java | 4 import android.content.Context; 21 public CameraPreviewView(Context context) { 22 super(context); 26 public CameraPreviewView(Context context, AttributeSet attrs) { 27 super(context, attrs); 32 Context context, AttributeSet attrs, int defStyle) { 33 super(context, attrs, defStyle) [all...] |