HomeSort by relevance Sort by last modified time
    Searched defs:context (Results 176 - 200 of 2558) sorted by null

1 2 3 4 5 6 78 91011>>

  /packages/apps/Messaging/src/com/android/messaging/datamodel/
MmsFileProvider.java 19 import android.content.Context;
62 final Context context = Factory.get().getApplicationContext(); local
63 return new File(getDirectory(context), path + ".dat");
66 private static File getDirectory(final Context context) {
67 return new File(context.getCacheDir(), RAW_MMS_DIR);
  /packages/apps/Nfc/src/com/android/nfc/
NfcPermissions.java 4 import android.content.Context;
27 public static void enforceAdminPermissions(Context context) {
28 context.enforceCallingOrSelfPermission(ADMIN_PERM, ADMIN_PERM_ERROR);
32 public static void enforceUserPermissions(Context context) {
33 context.enforceCallingOrSelfPermission(NFC_PERMISSION, NFC_PERM_ERROR);
  /packages/apps/Settings/src/com/android/settings/applications/
AppDomainsPreference.java 19 import android.content.Context;
30 public AppDomainsPreference(Context context, AttributeSet attrs) {
31 super(context, attrs);
45 final Context context = getContext(); local
47 return context.getString(R.string.domain_urls_summary_none);
55 return context.getString(whichVersion, summary);
  /packages/apps/Stk/src/com/android/stk/
BootCompletedReceiver.java 20 import android.content.Context;
36 public void onReceive(Context context, Intent intent) {
43 context.startService(new Intent(context, StkAppService.class)
50 context.getPackageManager().setApplicationEnabledSetting(context.getPackageName(),
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/name/
DeviceManager.java 20 import android.content.Context;
27 * @param context A context that can access Settings.Global
30 public static String getDeviceName(Context context) {
31 return Settings.Global.getString(context.getContentResolver(), Settings.Global.DEVICE_NAME);
40 * @param context A context that can access Settings.Global
43 public static void setDeviceName(Context context, String name)
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/components/
TelecomService.java 21 import android.content.Context;
60 * @param context
62 static void initializeTelecomSystem(Context context) {
66 context,
67 new MissedCallNotifierImpl(context.getApplicationContext()),
70 public CallerInfoAsyncQuery startQuery(int token, Context context,
78 token, context, number, listener, cookie);
84 Context context
    [all...]
  /packages/services/Telephony/src/com/android/services/telephony/
DisconnectCauseUtil.java 19 import android.content.Context;
34 * @param context The context.
46 * @param context The context.
52 Context context = PhoneGlobals.getInstance(); local
55 toTelecomDisconnectCauseLabel(context, telephonyDisconnectCause),
56 toTelecomDisconnectCauseDescription(context, telephonyDisconnectCause),
148 Context context, int telephonyDisconnectCause)
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/include/cloog/
program.h 59 CloogDomain * context ; /**< The context of the program. */ member in struct:cloogprogram
102 CloogProgram * cloog_program_alloc(CloogDomain *context, CloogUnionDomain *ud,
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/include/cloog/
program.h 59 CloogDomain * context ; /**< The context of the program. */ member in struct:cloogprogram
102 CloogProgram * cloog_program_alloc(CloogDomain *context, CloogUnionDomain *ud,
  /system/core/init/
parser.h 30 void *context; member in struct:parse_state
  /external/droiddriver/src/io/appium/droiddriver/uiautomation/
UiAutomationDriver.java 22 import android.content.Context;
54 private final UiAutomationContext context; field in class:UiAutomationDriver
61 context = new UiAutomationContext(instrumentation, this);
62 injector = new UiAutomationInputInjector(context);
63 uiDevice = new UiAutomationUiDevice(context);
73 return context.newRootElement(getRootNode());
79 return new UiAutomationElement(context, rawElement, parent);
84 context.callUiAutomation(new UiAutomationCallable<Void>() {
99 context.callUiAutomation(new UiAutomationCallable<AccessibilityNodeInfo>() {
151 (AccessibilityManager) driver.context.getInstrumentation().getTargetContext(
    [all...]
  /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/services/tests/servicestests/src/com/android/server/devicepolicy/
ApplicationRestrictionsTest.java 23 import android.content.Context;
50 public void onDisabled(Context context, Intent intent) {
56 super.onDisabled(context, intent);
62 final Context context = getContext(); local
65 sDpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
66 Settings.Secure.putInt(context.getContentResolver(),
69 Settings.Secure.putInt(context.getContentResolver()
    [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/Email/emailcommon/src/com/android/emailcommon/utility/
SSLSocketFactoryWrapper.java 97 final SSLContext context = SSLContext.getInstance("TLS"); local
98 context.init(keyManagers, null, null);
99 return new SSLSocketFactoryWrapper(context.getSocketFactory(), true, handshakeTimeout);
106 final SSLContext context = SSLContext.getInstance("TLS"); local
107 context.init(keyManagers, trustManagers, null);
108 return new SSLSocketFactoryWrapper(context.getSocketFactory(), false, handshakeTimeout);
  /packages/apps/Email/src/com/android/email/activity/setup/
AccountSetupABFragment.java 19 import android.content.Context;
80 final Context context = inflater.getContext(); local
83 EmailServiceUtils.getServiceInfo(context, mUserProtocol).name;
85 EmailServiceUtils.getServiceInfo(context, mProviderProtocol).name;
91 abInstructions.setText(context.getString(R.string.account_setup_ab_instructions_format,
AccountSetupNoteDialogFragment.java 22 import android.content.Context;
55 final Context context = getActivity(); local
60 return new AlertDialog.Builder(context)
75 context.getString(android.R.string.cancel),
  /packages/apps/Nfc/src/com/android/nfc/beam/
BeamManager.java 22 import android.content.Context;
72 public boolean startBeamReceive(Context context,
86 Intent receiveIntent = new Intent(context.getApplicationContext(),
91 whitelistOppDevice(context, handoverData.device);
92 context.startServiceAsUser(receiveIntent, UserHandle.CURRENT);
96 public boolean startBeamSend(Context context,
110 Intent sendIntent = new Intent(context.getApplicationContext(),
115 context.startServiceAsUser(sendIntent, userHandle)
    [all...]
  /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)
117 Context context = getContext(); local
    [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(
  /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);
  /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,
  /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);

Completed in 1276 milliseconds

1 2 3 4 5 6 78 91011>>