HomeSort by relevance Sort by last modified time
    Searched defs:context (Results 201 - 225 of 1921) sorted by null

1 2 3 4 5 6 7 891011>>

  /packages/apps/Exchange/tests/src/com/android/exchange/
ExchangeServiceTest.java 19 import android.content.Context;
30 public MyContext(Context base) {
42 final MyContext context = new MyContext(getContext()); local
44 final String id = ExchangeService.getDeviceId(context);
52 context.isGetFileStreamPathCalled = false;
53 final String cachedId = ExchangeService.getDeviceId(context);
58 assertFalse(context.isGetFileStreamPathCalled);
  /packages/apps/Launcher3/src/com/android/launcher3/
PackageChangedReceiver.java 4 import android.content.Context;
9 public void onReceive(final Context context, Intent intent) {
17 LauncherAppState.setApplicationContext(context.getApplicationContext());
  /packages/apps/Mms/src/com/android/mms/transaction/
MmsPushOutboxMessages.java 20 import android.content.Context;
36 public void onReceive(Context context, Intent intent) {
43 context.startService(new Intent(context, TransactionService.class));
  /packages/apps/Mms/tests/src/com/android/mms/util/
VerifyRecipientUnitTests.java 19 import android.content.Context;
42 Context context = getContext(); local
43 mThreadId1 = Threads.getOrCreateThreadId(context, "232-4567");
44 mThreadId2 = Threads.getOrCreateThreadId(context, "flintstone_fred@goofball.org");
45 mThreadId3 = Threads.getOrCreateThreadId(context, "(801) 123-4567");
  /packages/apps/Settings/src/com/android/settings/fuelgauge/
Utils.java 19 import android.content.Context;
34 * @param context the application context
38 public static String formatElapsedTime(Context context, double millis, boolean inclSeconds) {
61 sb.append(context.getString(R.string.battery_history_days,
64 sb.append(context.getString(R.string.battery_history_hours,
67 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds));
69 sb.append(context.getString(R.string.battery_history_seconds, seconds));
73 sb.append(context.getString(R.string.battery_history_days_no_seconds
    [all...]
  /packages/apps/Stk/src/com/android/stk/
BootCompletedReceiver.java 20 import android.content.Context;
31 public void onReceive(Context context, Intent intent) {
38 context.startService(new Intent(context, StkAppService.class)
StkCmdReceiver.java 22 import android.content.Context;
33 public void onReceive(Context context, Intent intent) {
37 handleCommandMessage(context, intent);
39 handleSessionEnd(context, intent);
43 private void handleCommandMessage(Context context, Intent intent) {
48 context.startService(new Intent(context, StkAppService.class)
52 private void handleSessionEnd(Context context, Intent intent)
    [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...]
  /system/core/init/
parser.h 30 void *context; member in struct:parse_state
  /external/jsilver/src/com/google/clearsilver/jsilver/data/
DefaultHdfParser.java 42 List<String> context = new ArrayList<String>(initialContextSize); local
45 parseLine(line, output, context, lineReader, dataFileName, errorHandler);
49 private void parseLine(String line, Data output, List<String> context,
57 output.setValue(createFullPath(context, split.left), split.right);
63 output.setValue(createFullPath(context, split.left), readToToken(lineReader, split.right));
67 context.add(split.left);
71 context.remove(context.size() - 1);
74 output.setSymlink(createFullPath(context, split.left), split.right);
106 * Creates the full path, based on the current context
    [all...]
  /frameworks/base/tests/CoreTests/android/core/
TestHttpClient.java 66 private final HttpContext context; field in class:TestHttpClient
88 this.context = new BasicHttpContext(null);
99 this.context.setAttribute(ExecutionContext.HTTP_REQUEST, request);
100 this.context.setAttribute(ExecutionContext.HTTP_TARGET_HOST, targetHost);
101 this.context.setAttribute(ExecutionContext.HTTP_CONNECTION, conn);
104 this.httpexecutor.preProcess(request, this.httpproc, this.context);
105 HttpResponse response = this.httpexecutor.execute(request, conn, this.context);
108 this.httpexecutor.postProcess(response, this.httpproc, this.context);
113 return this.connStrategy.keepAlive(response, this.context);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
AccountFilterUtil.java 21 import android.content.Context;
64 final Context context = filterContainer.getContext(); local
77 headerTextView.setText(context.getString(
93 headerTextView.setText(context.getString(
  /packages/apps/Settings/src/com/android/settings/
ApnPreference.java 20 import android.content.Context;
38 public ApnPreference(Context context, AttributeSet attrs, int defStyle) {
39 super(context, attrs, defStyle);
42 public ApnPreference(Context context, AttributeSet attrs) {
43 this(context, attrs, R.attr.apnPreferenceStyle);
46 public ApnPreference(Context context) {
47 this(context, null)
116 Context context = getContext(); local
    [all...]
  /packages/apps/VideoEditor/src/com/android/videoeditor/
ExportOptionsDialog.java 21 import android.content.Context;
48 * @param context The context
56 public static Dialog create(Context context, final ExportOptionsListener positiveListener,
59 AlertDialog.Builder builder = new AlertDialog.Builder(context);
63 builder.setTitle(context.getString(R.string.editor_export_movie));
66 final LayoutInflater vi = (LayoutInflater)context
67 .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
75 builder.setPositiveButton(context.getString(R.string.export_dialog_export)
109 final Context context = view.getContext(); local
    [all...]
  /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...]
  /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/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-harmony/security/src/test/api/java/tests/api/java/security/
AccessControlContextTest.java 76 AccessControlContext context = AccessController.getContext(); local
78 new AccessControlContext(context, null);
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/
SSLServerSocketFactoryTest.java 55 SSLContext context = DefaultSSLContext.getContext(); local
56 if (context != null) {
57 customServerSocketFactory = context.getServerSocketFactory();
SSLSocketFactoryTest.java 55 SSLContext context = DefaultSSLContext.getContext(); local
56 if (context != null) {
57 customSocketFactory = context.getSocketFactory();
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
SSLSessionContextImplTest.java 42 SSLSessionContextImpl context = new SSLSessionContextImpl(); local
43 context.putSession(ses1);
44 context.putSession(ses2);
45 context.putSession(ses3);
47 for (Enumeration en = context.getIds(); en.hasMoreElements();) {
49 assertTrue(context.getSession(id) != null);
52 SSLSession ses = context.getSession(ses1.getId());
55 ses = context.getSession(ses3.getId());
60 SSLSessionContextImpl context = new SSLSessionContextImpl(); local
61 assertEquals(0, context.getSessionCacheSize())
74 SSLSessionContextImpl context = new SSLSessionContextImpl(); local
    [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))
  /external/chromium/net/base/
network_config_watcher_mac.cc 91 SCDynamicStoreContext context = { local
99 NULL, CFSTR("org.chromium"), DynamicStoreCallback, &context));

Completed in 2528 milliseconds

1 2 3 4 5 6 7 891011>>