/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
ClientSessionContextTest.java | 37 ClientSessionContext context = new ClientSessionContext(); local 41 context.putSession(a); 42 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b }); 44 context.putSession(b); 45 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[0]); 49 ClientSessionContext context = new ClientSessionContext(); local 55 context.putSession(a); 56 assertSessionContextContents(context, new SSLSession[] { a }, new SSLSession[] { b, c, d }); 58 context.putSession(b); 59 assertSessionContextContents(context, new SSLSession[] { a, b }, new SSLSession[] { c, d }) 72 ClientSessionContext context = new ClientSessionContext(); local 106 ClientSessionContext context = new ClientSessionContext(); local [all...] |
/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...] |
/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
SmaliCodeFragmentFactoryTest.java | 111 PsiElement context = smaliFile.getPsiClass().getMethods()[0].getInstructions().get(0); local 112 assertCompletionContains("v", context, new String[] {"v2", "v3"}, new String[] {"v0", "v1", "p0", "p1"}); 113 assertCompletionContains("p", context, new String[] {"p0", "p1"}, new String[] {"v0", "v1", "v2", "v3"}); 115 context = smaliFile.getPsiClass().getMethods()[0].getInstructions().get(2); 116 assertCompletionContains("v", context, new String[] {"v1", "v2", "v3"}, new String[] {"v0", "p0", "p1"}); 117 assertCompletionContains("p", context, new String[] {"p0", "p1"}, new String[] {"v0", "v1", "v2", "v3"}); 119 context = smaliFile.getPsiClass().getMethods()[0].getInstructions().get(6); 120 assertCompletionContains("v", context, new String[] {"v0", "v1", "v2", "v3"}, new String[] {"p0", "p1"}); 121 assertCompletionContains("p", context, new String[] {"p0", "p1"}, new String[] {}); 209 PsiElement context = smaliFile.findElementAt(refOffset) local 221 PsiElement context = smaliFile.findElementAt(refOffset); local [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);
|
/frameworks/support/compat/java/android/support/v4/content/ |
ContextCompat.java | 19 import android.content.Context; 41 * Helper for accessing features in {@link android.content.Context} 79 * @param context Start activities using this activity as the starting context 84 public static boolean startActivities(Context context, Intent[] intents) { 85 return startActivities(context, intents, null); 108 * @param context Start activities using this activity as the starting context 112 * See {@link android.content.Context#startActivity(Intent, android.os.Bundle) [all...] |
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/ |
VerticalGridFragment.java | 16 import android.content.Context; 54 final Context context = getActivity(); local 55 setBadgeDrawable(ResourcesCompat.getDrawable(context.getResources(), 56 R.drawable.ic_title, context.getTheme()));
|
VerticalGridSupportFragment.java | 19 import android.content.Context; 57 final Context context = getActivity(); local 58 setBadgeDrawable(ResourcesCompat.getDrawable(context.getResources(), 59 R.drawable.ic_title, context.getTheme()));
|
/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/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
CrossProfileIntentFiltersSetter.java | 23 import android.content.Context; 253 public CrossProfileIntentFiltersSetter(Context context) { 254 this(context.getPackageManager(), 255 (UserManager) context.getSystemService(Context.USER_SERVICE));
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
EncryptDeviceActivityTest.java | 33 import android.content.Context; 88 // Stop the activity from rotating in order to keep hold of the context 89 Context context = InstrumentationRegistry.getTargetContext(); local 91 sRotationLocked = Settings.System.getInt(context.getContentResolver(), 93 Settings.System.putInt(context.getContentResolver(), 100 Context context = InstrumentationRegistry.getTargetContext(); local 102 Settings.System.putInt(context.getContentResolver(),
|
/packages/apps/Nfc/src/com/android/nfc/beam/ |
BeamManager.java | 22 import android.content.Context; 73 public boolean startBeamReceive(Context context, 87 Intent receiveIntent = new Intent(context.getApplicationContext(), 92 whitelistOppDevice(context, handoverData.device); 93 context.startServiceAsUser(receiveIntent, UserHandle.CURRENT); 97 public boolean startBeamSend(Context context, 111 Intent sendIntent = new Intent(context.getApplicationContext(), 116 context.startServiceAsUser(sendIntent, userHandle) [all...] |
/packages/apps/Settings/src/com/android/settings/accessibility/ |
AccessibilityServiceWarning.java | 23 import android.content.Context; 88 * @param context A valid context 92 private static View createEnableDialogContentView(Context context, 94 LayoutInflater inflater = (LayoutInflater) context.getSystemService( 95 Context.LAYOUT_INFLATER_SERVICE); 103 String text = context.getString(R.string.enable_service_encryption_warning, 104 getServiceName(context, info)); 113 capabilitiesHeaderView.setText(context.getString(R.string.capabilities_list_title [all...] |
/packages/apps/Settings/src/com/android/settings/display/ |
NightDisplayPreference.java | 17 import android.content.Context; 34 public NightDisplayPreference(Context context, AttributeSet attrs) { 35 super(context, attrs); 37 mController = new NightDisplayController(context); 38 mTimeFormatter = android.text.format.DateFormat.getTimeFormat(context); 72 final Context context = getContext(); local 81 autoModeSummary = context.getString(isActivated 87 autoModeSummary = context.getString [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
BuildNumberPreferenceControllerTest.java | 21 import android.content.Context; 62 private Context mContext; 83 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mUserManager); 114 final Context context = RuntimeEnvironment.application; local 115 Settings.Global.putInt(context.getContentResolver(), 119 context, mActivity, mFragment, mLifecycle); 120 ReflectionHelpers.setField(mController, "mContext", context); 125 any(Context.class), 131 final Context context = spy(RuntimeEnvironment.application) local 175 final Context context = RuntimeEnvironment.application; local [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/gestures/ |
DoubleTwistPreferenceControllerTest.java | 19 import android.content.Context; 55 private Context mContext; 64 when(mContext.getSystemService(Context.USER_SERVICE)).thenReturn(mock(UserManager.class)); 79 when(mContext.getSystemService(Context.SENSOR_SERVICE)).thenReturn(mSensorManager); 98 when(mContext.getSystemService(Context.SENSOR_SERVICE)).thenReturn(mSensorManager); 129 final Context context = ShadowApplication.getInstance().getApplicationContext(); local 130 Settings.System.putInt(context.getContentResolver(), 132 mController = new DoubleTwistPreferenceController(context, null, KEY_DOUBLE_TWIST); 140 final Context context = ShadowApplication.getInstance().getApplicationContext() local [all...] |
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
TestTvInputSetupActivity.java | 25 import android.content.Context; 60 TestTvInputSetupActivity context = this; local 61 registerChannels(context, mInputId, false, channelCount); 64 public static void registerChannels(Context context, String inputId, boolean updateBrowsable, 69 channels.add(ChannelInfo.create(context, i)); 71 ChannelUtils.updateChannels(context, inputId, channels); 73 updateChannelsBrowsable(context.getContentResolver(), inputId); 78 ChannelUtils.queryChannelInfoMapForTvInput(context, inputId); 82 ProgramUtils.populatePrograms(context, TvContract.buildChannelUri(channelId) [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 | 21 import android.content.Context; 41 Context context = getInstrumentation().getContext(); local 42 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);
|