HomeSort by relevance Sort by last modified time
    Searched defs:context (Results 426 - 450 of 5241) sorted by null

<<11121314151617181920>>

  /packages/apps/Settings/src/com/android/settings/accessibility/
AccessibilityServiceWarning.java 23 import android.content.Context;
96 * @param context A valid context
100 private static View createEnableDialogContentView(Context context,
102 LayoutInflater inflater = (LayoutInflater) context.getSystemService(
103 Context.LAYOUT_INFLATER_SERVICE);
111 String text = context.getString(R.string.enable_service_encryption_warning,
112 getServiceName(context, info));
121 capabilitiesHeaderView.setText(context.getString(R.string.capabilities_list_title
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/
SwipeToNotificationPreferenceControllerTest.java 23 import android.content.Context;
44 private Context mContext;
58 when(mContext.getSystemService(Context.FINGERPRINT_SERVICE))
100 final Context context = RuntimeEnvironment.application; local
101 Settings.System.putInt(context.getContentResolver(), SYSTEM_NAVIGATION_KEYS_ENABLED, 1);
102 mController = new SwipeToNotificationPreferenceController(context, KEY_SWIPE_DOWN);
112 final Context context = RuntimeEnvironment.application; local
113 Settings.System.putInt(context.getContentResolver(), SYSTEM_NAVIGATION_KEYS_ENABLED, 0)
140 final Context context = RuntimeEnvironment.application; local
156 final Context context = RuntimeEnvironment.application; local
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/inputmethod/
InputMethodHelper.java 19 import android.content.Context;
42 public static List<InputMethodInfo> getEnabledSystemInputMethodList(Context context) {
44 (InputMethodManager) context.getSystemService(Context.INPUT_METHOD_SERVICE);
55 public static String getDefaultInputMethodId(Context context) {
56 return Settings.Secure.getString(context.getContentResolver(),
63 public static void setDefaultInputMethodId(Context context, String imid)
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
CorrectionSettingsFragment.java 21 import android.content.Context;
70 final Context context = getActivity(); local
71 final PackageManager pm = context.getPackageManager();
75 intent.setClassName(context.getPackageName(), DictionarySettingsActivity.class.getName());
131 getActivity() /* context */, Manifest.permission.READ_CONTACTS)) {
135 PermissionsManager.get(getActivity() /* context */).requestPermissions(
  /external/guice/extensions/struts2/lib/
ognl-3.0.jar 
  /cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
BlockUninstallDelegateTest.java 22 import android.content.Context;
42 Context context = getInstrumentation().getContext(); local
43 mDpm = context.getSystemService(DevicePolicyManager.class);
PackageAccessDelegateTest.java 22 import android.content.Context;
44 Context context = getInstrumentation().getContext(); local
45 mDpm = context.getSystemService(DevicePolicyManager.class);
PermissionGrantDelegateTest.java 26 import android.content.Context;
48 Context context = getInstrumentation().getContext(); local
49 mDpm = context.getSystemService(DevicePolicyManager.class);
  /cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
OwnerChangedBroadcastTest.java 20 import android.content.Context;
37 Context context = getInstrumentation().getTargetContext(); local
38 mPreferences = context.getSharedPreferences(
39 BroadcastIntentReceiver.PREFERENCES_NAME, Context.MODE_PRIVATE);
  /cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
MyService.java 26 import android.content.Context;
56 final Context context = getApplicationContext();
58 context.registerReceiver(mReceiver, new IntentFilter(ACTION_RECEIVER_READY));
59 context.registerReceiver(mReceiver,
93 final Context context = getApplicationContext(); local
94 ((NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE))
101 final Context context = getApplicationContext() local
    [all...]
  /cts/tests/app/src/android/app/cts/
SearchManagerTest.java 23 import android.content.Context;
65 Context context = getInstrumentation().getTargetContext(); local
66 UiModeManager uiModeManager = context.getSystemService(UiModeManager.class);
71 (SearchManager) context.getSystemService(Context.SEARCH_SERVICE);
  /cts/tests/tests/bluetooth/src/android/bluetooth/cts/
TestUtils.java 20 import android.content.Context;
61 static int getLocationMode(Context context) {
62 return Settings.Secure.getInt(context.getContentResolver(),
69 static void setLocationMode(Context context, int mode) {
70 Settings.Secure.putInt(context.getContentResolver(), Settings.Secure.LOCATION_MODE,
77 static boolean isLocationOn(Context context) {
78 return getLocationMode(context) != Settings.Secure.LOCATION_MODE_OFF
    [all...]
  /cts/tests/tests/graphics/src/android/graphics/drawable/cts/
Drawable_ConstantStateTest.java 26 import android.content.Context;
42 Context context = InstrumentationRegistry.getTargetContext(); local
43 Resources resources = context.getResources();
56 assertEquals(null, cs.newDrawable(resources, context.getTheme()));
  /cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
BgService.java 22 import android.content.Context;
34 public static void start(Context context, String replyAction) {
36 new Intent().setComponent(new ComponentName(context, BgService.class))
38 context.startService(i);
43 final Context context = getApplicationContext(); local
44 final ShortcutManager manager = context.getSystemService(ShortcutManager.class);
50 ReplyUtil.runTestAndReply(context, replyAction, () -> {
52 context, () -> manager.setDynamicShortcuts(list()))
    [all...]
  /cts/tests/tests/telephony2/src/android/telephony2/cts/
PhoneNumberTest.java 19 import android.content.Context;
53 Context context = getInstrumentation().getContext(); local
54 PackageManager packageManager = context.getPackageManager();
59 TelephonyManager tm = context.getSystemService(TelephonyManager.class);
  /developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
AppItem.java 19 import android.content.Context;
54 public void launchActivity(Context context) {
55 context.startActivity(new Intent(context, mClass));
  /developers/samples/android/common/src/java/com/example/android/common/play/
PlayHelper.java 47 * @param context The context to be associated with the request. For compatibility with 1.6+,
55 FragmentActivity context, int requestCode, int versionCode) {
59 .isGooglePlayServicesAvailable(context);
67 context, requestCode);
77 context.getSupportFragmentManager(),
91 * @param context The context to be associated with the request. For compatibility with 1.6+,
95 public static boolean checkGooglePlayServiceAvailability(FragmentActivity context,
97 return checkGooglePlayServiceAvailability(context, requestCode, -1)
    [all...]
  /developers/samples/android/ui/transition/AdapterTransition/Application/src/main/java/com/example/android/adaptertransition/
MeatAdapter.java 19 import android.content.Context;
90 Context context = view.getContext(); local
91 if (null != holder && null != holder.title && null != context) {
92 Toast.makeText(context, context.getString(R.string.item_clicked,
  /developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
AppItem.java 19 import android.content.Context;
54 public void launchActivity(Context context) {
55 context.startActivity(new Intent(context, mClass));
  /development/samples/ApiDemos/tests/src/com/example/android/apis/view/
Focus2AndroidTest.java 21 import android.content.Context;
43 * Even as a lighter weight test, this test still needs access to a {@link Context}
46 * If you ever need a context to do your work in tests, you can extend
48 * the context will be injected for you.
72 final Context context = getContext(); local
73 final LayoutInflater inflater = LayoutInflater.from(context);
  /development/samples/SoftKeyboard/src/com/android/inputmethodcommon/
InputMethodSettingsFragment.java 25 import android.content.Context;
40 final Context context = getActivity(); local
41 setPreferenceScreen(getPreferenceManager().createPreferenceScreen(context));
42 mSettings.init(context, getPreferenceScreen());
  /external/ImageMagick/coders/
url.c 195 *context;
198 context=xmlNanoFTPNewCtxt(filename);
199 if (context != (void *) NULL)
201 if (xmlNanoFTPConnect(context) >= 0)
202 (void) xmlNanoFTPGet(context,GetFTPData,(void *) file,
204 (void) xmlNanoFTPClose(context);
219 *context;
222 context=xmlNanoHTTPMethod(filename,(const char *) NULL,
224 if (context != (void *) NULL)
229 while ((bytes=xmlNanoHTTPRead(context,buffer,MaxBufferExtent)) > 0
193 *context; local
217 *context; local
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
NFAConfiguration.java 32 /** An NFA state, predicted alt, and syntactic/semantic context.
33 * The syntactic context is a pointer into the rule invocation
34 * chain used to arrive at the state. The semantic context is
46 public NFAContext context; field in class:NFAConfiguration
50 * the associated NFA state in this syntactic context.
91 NFAContext context,
96 this.context = context;
114 this.context.equals(other.context)&
    [all...]
  /external/apache-xml/src/main/java/org/apache/xalan/templates/
ElemExsltFuncResult.java 55 XPathContext context = transformer.getXPathContext(); local
64 int sourceNode = context.getCurrentNode();
  /external/apache-xml/src/main/java/org/apache/xpath/patterns/
ContextMatchStepPattern.java 31 * Special context node pattern matcher.
50 * @param xctxt XPath runtime context.
74 * @param xctxt The XPath runtime context.
91 int context = xctxt.getCurrentNode(); local
92 DTM dtm = xctxt.getDTM(context);
112 for (int relative = traverser.first(context); DTM.NULL != relative;
113 relative = traverser.next(context, relative))
125 if (executePredicates(xctxt, dtm, context))

Completed in 1177 milliseconds

<<11121314151617181920>>