/frameworks/base/core/java/android/view/ |
OrientationListener.java | 19 import android.content.Context; 43 * @param context for the OrientationListener. 45 public OrientationListener(Context context) { 46 mOrientationEventLis = new OrientationEventListenerInternal(context); 52 * @param context for the OrientationListener. 58 public OrientationListener(Context context, int rate) { 59 mOrientationEventLis = new OrientationEventListenerInternal(context, rate); 63 OrientationEventListenerInternal(Context context) [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
CompatTextView.java | 19 import android.content.Context; 35 public CompatTextView(Context context) { 36 this(context, null); 39 public CompatTextView(Context context, AttributeSet attrs) { 40 this(context, attrs, 0); 43 public CompatTextView(Context context, AttributeSet attrs, int defStyle) { 44 super(context, attrs, defStyle) [all...] |
/packages/apps/Browser/src/com/android/browser/preferences/ |
WebViewPreview.java | 19 import android.content.Context; 37 Context context, AttributeSet attrs, int defStyle) { 38 super(context, attrs, defStyle); 39 init(context); 42 public WebViewPreview(Context context, AttributeSet attrs) { 43 super(context, attrs); 44 init(context); 47 public WebViewPreview(Context context) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerReceiver.java | 21 import android.content.Context; 35 public void onReceive(Context context, Intent intent) { 40 scan(context, MediaProvider.INTERNAL_VOLUME); 41 scan(context, MediaProvider.EXTERNAL_VOLUME); 63 scan(context, MediaProvider.EXTERNAL_VOLUME); 66 scanFile(context, path); 72 private void scan(Context context, String volume) { 75 context.startService [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestViewDrawText.java | 19 import android.content.Context; 33 public BiDiTestViewDrawText(Context context) { 34 this(context, null); 37 public BiDiTestViewDrawText(Context context, AttributeSet attrs) { 38 this(context, attrs, 0); 41 public BiDiTestViewDrawText(Context context, AttributeSet attrs, int defStyle) { 42 super(context, attrs, defStyle) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
CountDownTimerPreference.java | 19 import android.content.Context; 26 * initCountDownTimeChoices(Context context), rather than reading the entries 31 public CountDownTimerPreference(Context context, AttributeSet attrs) { 32 super(context, attrs); 33 initCountDownDurationChoices(context); 36 private void initCountDownDurationChoices(Context context) { 42 entries[0] = context.getString(R.string.setting_off); // Of [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 19 import android.content.Context; 39 public static String getCurrentCountryIso(Context context) { 41 (CountryDetector) context.getSystemService(Context.COUNTRY_DETECTOR); 52 public static String getGeocodedLocationFor(Context context, String phoneNumber) { 56 (CountryDetector) context.getSystemService(Context.COUNTRY_DETECTOR); 59 phoneNumberUtil.parse(phoneNumber, getCurrentCountryIso(context)); [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
DrawableStateProxyView.java | 19 import android.content.Context; 33 public DrawableStateProxyView(Context context) { 34 this(context, null); 37 public DrawableStateProxyView(Context context, AttributeSet attrs) { 38 this(context, attrs, 0); 42 public DrawableStateProxyView(Context context, AttributeSet attrs, int defStyle) { 43 super(context, attrs, defStyle) [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
DrawableStateProxyView.java | 19 import android.content.Context; 33 public DrawableStateProxyView(Context context) { 34 this(context, null); 37 public DrawableStateProxyView(Context context, AttributeSet attrs) { 38 this(context, attrs, 0); 42 public DrawableStateProxyView(Context context, AttributeSet attrs, int defStyle) { 43 super(context, attrs, defStyle) [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
RotationPolicy.java | 19 import android.content.Context; 48 * @param context Context for accessing system resources. 51 public static boolean isRotationSupported(Context context) { 52 PackageManager pm = context.getPackageManager(); 66 public static boolean isRotationLockToggleSupported(Context context) { 67 return isRotationSupported(context) 68 && context.getResources().getConfiguration().smallestScreenWidthDp >= 600 [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadReceiver.java | 26 import android.content.Context; 59 public void onReceive(final Context context, final Intent intent) { 61 mSystemFacade = new RealSystemFacade(context); 70 startService(context); 76 startService(context); 78 final ConnectivityManager connManager = (ConnectivityManager) context 79 .getSystemService(Context.CONNECTIVITY_SERVICE); 82 startService(context); 85 startService(context); [all...] |
/external/chromium_org/chrome/renderer/extensions/ |
chrome_v8_context_set.cc | 37 void ChromeV8ContextSet::Add(ChromeV8Context* context) { 39 // It's OK to insert the same context twice, but we should only ever have 40 // one ChromeV8Context per v8::Context. 44 if (candidate != context) 45 DCHECK(candidate->v8_context() != context->v8_context()); 48 contexts_.insert(context); 51 void ChromeV8ContextSet::Remove(ChromeV8Context* context) { 52 if (contexts_.erase(context)) { 53 context->Invalidate(); 54 base::MessageLoop::current()->DeleteSoon(FROM_HERE, context); 93 ChromeV8Context* context = *it; local [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
MffContext.java | 22 import android.content.Context; 43 * halting any processing in the context, and releasing resources while the activity is paused. 52 * Set to true, if this context will make use of the camera. 53 * If your application does not require the camera, the context does not guarantee that 55 * the context's {@link #isCameraStreamingSupported()} returns true. 60 * Set to true, if this context requires OpenGL. 61 * If your application does not require OpenGL, the context does not guarantee that OpenGL 62 * is available. That is, you may only use OpenGL (within filters running in this context) 63 * if the context's {@link #isOpenGLSupported()} method returns true. 69 * function. You may specify a dummy SurfaceView here if you do not want the context t [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
OrientationEventListenerTest.java | 20 import android.content.Context; 43 SensorManager sm = (SensorManager)mContext.getSystemService(Context.SENSOR_SERVICE); 52 public MockOrientationEventListener(Context context) { 53 super(context); 56 public MockOrientationEventListener(Context context, int rate) { 57 super(context, rate);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/contextMenus/event_page/ |
manifest.json | 2 "name": "Context Menus Sample (with Event Page)",
3 "description": "Shows some of the features of the Context Menus API using an event page",
|
/external/chromium_org/components/user_prefs/ |
user_prefs.cc | 26 PrefService* UserPrefs::Get(content::BrowserContext* context) { 27 DCHECK(context); 28 DCHECK(context->GetUserData(UserDataKey())); 30 context->GetUserData(UserDataKey()))->prefs_; 34 void UserPrefs::Set(content::BrowserContext* context, PrefService* prefs) { 35 DCHECK(context); 37 DCHECK(!context->GetUserData(UserDataKey())); 38 context->SetUserData(UserDataKey(), new UserPrefs(prefs));
|
/external/clang/test/Sema/ |
freemain.c | 7 void* main(void* context, long size) { 8 if (context) return allocate(size);
|
heinous-extensions-off.c | 6 asm("nop" : : "m"((int)(a))); // expected-error {{cast in a inline asm context requiring an l-value}} 8 asm("nop" : "=r"((unsigned)a)); // expected-error {{cast in a inline asm context requiring an l-value}}
|
heinous-extensions-on.c | 6 asm("nop" : : "m"((int)(a))); // expected-warning {{cast in an inline asm context requiring an l-value}} 8 asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in an inline asm context requiring an l-value}}
|
/external/libsepol/include/sepol/policydb/ |
sidtab.h | 8 * of security context structures indexed by SID value. 14 #include <sepol/policydb/context.h> 18 context_struct_t context; /* security context structure */ member in struct:sidtab_node 41 context_struct_t * context); 48 context_struct_t * context, 55 context, void *args), 59 context_struct_t * context, /* IN */
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContextThemeWrapper.java | 3 import android.content.Context; 10 public void __constructor__(Context baseContext, int themesres) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
CurrentUserTracker.java | 21 import android.content.Context; 28 private Context mContext; 31 public CurrentUserTracker(Context context) { 33 context.registerReceiver(this, filter); 35 mContext = context; 43 public void onReceive(Context context, Intent intent) {
|
/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/chromium_org/chrome/app/ |
metro_driver_win.cc | 16 typedef int (*InitMetro)(LPTHREAD_START_ROUTINE thread_proc, void* context); 18 struct Context { 24 Context* context = reinterpret_cast<Context*>(param); local 25 int rv = context->fn(context->instance); 26 delete context; 65 Context* context = new Context local [all...] |
/external/chromium_org/ppapi/host/ |
dispatch_host_message.h | 24 HostMessageContext* context, 26 return (obj->*method)(context); 31 HostMessageContext* context, 33 return (obj->*method)(context, arg.a); 38 HostMessageContext* context, 40 return (obj->*method)(context, arg.a, arg.b); 45 HostMessageContext* context, 47 return (obj->*method)(context, arg.a, arg.b, arg.c); 52 HostMessageContext* context, 54 return (obj->*method)(context, arg.a, arg.b, arg.c, arg.d) [all...] |