/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/identity/ |
D | UuidBasedUniqueIdentificationGeneratorTest.java | 18 private AdvancedMockContext mContext; field in UuidBasedUniqueIdentificationGeneratorTest 23 mContext = new AdvancedMockContext(getInstrumentation().getTargetContext()); in setUp() 31 TestGenerator generator = new TestGenerator(mContext, preferenceKey, expectedUniqueId); in testGenerationAndRestorationOfUuid() 37 mContext.clearFlag(FLAG_UUID); in testGenerationAndRestorationOfUuid() 39 assertFalse(mContext.isFlagSet(FLAG_UUID)); in testGenerationAndRestorationOfUuid() 43 mContext.clearFlag(FLAG_UUID); in testGenerationAndRestorationOfUuid() 44 generator = new TestGenerator(mContext, preferenceKey, null); in testGenerationAndRestorationOfUuid() 46 assertFalse(mContext.isFlagSet(FLAG_UUID)); in testGenerationAndRestorationOfUuid() 56 TestGenerator generator1 = new TestGenerator(mContext, preferenceKey1, expectedUniqueId1); in testTwoDifferentGeneratorsShouldUseDifferentPreferences() 57 TestGenerator generator2 = new TestGenerator(mContext, preferenceKey2, expectedUniqueId2); in testTwoDifferentGeneratorsShouldUseDifferentPreferences() [all …]
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLX509CRLEntry.java | 31 private final long mContext; field in OpenSSLX509CRLEntry 34 mContext = ctx; in OpenSSLX509CRLEntry() 40 NativeCrypto.get_X509_REVOKED_ext_oids(mContext, in getCriticalExtensionOIDs() 49 && (NativeCrypto.get_X509_REVOKED_ext_oids(mContext, in getCriticalExtensionOIDs() 59 return NativeCrypto.X509_REVOKED_get_ext_oid(mContext, oid); in getExtensionValue() 65 NativeCrypto.get_X509_REVOKED_ext_oids(mContext, in getNonCriticalExtensionOIDs() 74 && (NativeCrypto.get_X509_REVOKED_ext_oids(mContext, in getNonCriticalExtensionOIDs() 85 NativeCrypto.get_X509_REVOKED_ext_oids(mContext, in hasUnsupportedCriticalExtension() 88 final long extensionRef = NativeCrypto.X509_REVOKED_get_ext(mContext, oid); in hasUnsupportedCriticalExtension() 99 return NativeCrypto.i2d_X509_REVOKED(mContext); in getEncoded() [all …]
|
D | OpenSSLX509Certificate.java | 55 private transient final long mContext; field in OpenSSLX509Certificate 58 mContext = ctx; in OpenSSLX509Certificate() 174 NativeCrypto.get_X509_ext_oids(mContext, NativeCrypto.EXTENSION_TYPE_CRITICAL); in getCriticalExtensionOIDs() 182 && (NativeCrypto.get_X509_ext_oids(mContext, in getCriticalExtensionOIDs() 192 return NativeCrypto.X509_get_ext_oid(mContext, oid); in getExtensionValue() 198 NativeCrypto.get_X509_ext_oids(mContext, NativeCrypto.EXTENSION_TYPE_NON_CRITICAL); in getNonCriticalExtensionOIDs() 206 && (NativeCrypto.get_X509_ext_oids(mContext, in getNonCriticalExtensionOIDs() 216 return (NativeCrypto.get_X509_ex_flags(mContext) & NativeCrypto.EXFLAG_CRITICAL) != 0; in hasUnsupportedCriticalExtension() 241 return (int) NativeCrypto.X509_get_version(mContext) + 1; in getVersion() 246 return new BigInteger(NativeCrypto.X509_get_serialNumber(mContext)); in getSerialNumber() [all …]
|
D | OpenSSLX509CRL.java | 48 private final long mContext; field in OpenSSLX509CRL 51 mContext = ctx; in OpenSSLX509CRL() 136 NativeCrypto.get_X509_CRL_ext_oids(mContext, NativeCrypto.EXTENSION_TYPE_CRITICAL); in getCriticalExtensionOIDs() 144 && (NativeCrypto.get_X509_CRL_ext_oids(mContext, in getCriticalExtensionOIDs() 154 return NativeCrypto.X509_CRL_get_ext_oid(mContext, oid); in getExtensionValue() 160 NativeCrypto.get_X509_CRL_ext_oids(mContext, in getNonCriticalExtensionOIDs() 169 && (NativeCrypto.get_X509_CRL_ext_oids(mContext, in getNonCriticalExtensionOIDs() 180 NativeCrypto.get_X509_CRL_ext_oids(mContext, NativeCrypto.EXTENSION_TYPE_CRITICAL); in hasUnsupportedCriticalExtension() 182 final long extensionRef = NativeCrypto.X509_CRL_get_ext(mContext, oid); in hasUnsupportedCriticalExtension() 193 return NativeCrypto.i2d_X509_CRL(mContext); in getEncoded() [all …]
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ |
D | InvalidationControllerTest.java | 44 private IntentSavingContext mContext; field in InvalidationControllerTest 49 mContext = new IntentSavingContext(getInstrumentation().getTargetContext()); in setUp() 50 mController = InvalidationController.get(mContext); in setUp() 55 SyncStatusHelper.overrideSyncStatusHelperForTests(mContext, delegate); in setUp() 62 assertEquals(1, mContext.getNumStartedIntents()); in testStart() 63 Intent intent = mContext.getStartedIntent(0); in testStart() 71 assertEquals(1, mContext.getNumStartedIntents()); in testStop() 72 Intent intent = mContext.getStartedIntent(0); in testStop() 85 assertEquals(1, mContext.getNumStartedIntents()); in testResumingMainActivity() 86 Intent intent = mContext.getStartedIntent(0); in testResumingMainActivity() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/ |
D | InvalidationController.java | 33 private final Context mContext; field in InvalidationController 45 registerIntent.setClass(mContext, InvalidationService.class); in setRegisteredTypes() 46 mContext.startService(registerIntent); in setRegisteredTypes() 57 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); in refreshRegisteredTypes() 74 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); in setRegisteredObjectIds() 79 registerIntent.setClass(mContext, InvalidationService.class); in setRegisteredObjectIds() 80 mContext.startService(registerIntent); in setRegisteredObjectIds() 87 Intent intent = new Intent(mContext, InvalidationService.class); in start() 88 mContext.startService(intent); in start() 95 Intent intent = new Intent(mContext, InvalidationService.class); in stop() [all …]
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/ |
D | OAuth2TokenServiceIntegrationTest.java | 39 private AdvancedMockContext mContext; field in OAuth2TokenServiceIntegrationTest 52 mContext = new AdvancedMockContext(getInstrumentation().getTargetContext()); in setUp() 53 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp() 54 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp() 57 mChromeSigninController = ChromeSigninController.get(mContext); in setUp() 164 mOAuth2TokenService.validateAccounts(mContext, false); in testValidateAccountsNoAccountsRegisteredAndNoSignedInUser() 179 mOAuth2TokenService.validateAccounts(mContext, false); in testValidateAccountsOneAccountsRegisteredAndNoSignedInUser() 197 mOAuth2TokenService.validateAccounts(mContext, false); in testValidateAccountsOneAccountsRegisteredSignedIn() 205 mOAuth2TokenService.validateAccounts(mContext, false); in testValidateAccountsOneAccountsRegisteredSignedIn() 211 mOAuth2TokenService.validateAccounts(mContext, true); in testValidateAccountsOneAccountsRegisteredSignedIn() [all …]
|
D | OAuth2TokenServiceTest.java | 22 private AdvancedMockContext mContext; field in OAuth2TokenServiceTest 30 mContext = new AdvancedMockContext(getInstrumentation().getTargetContext()); in setUp() 31 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp() 32 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp() 38 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsNoAccountsRegistered() 49 String[] sysAccounts = OAuth2TokenService.getSystemAccounts(mContext); in testGetAccountsOneAccountRegistered() 53 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsOneAccountRegistered() 67 String[] sysAccounts = OAuth2TokenService.getSystemAccounts(mContext); in testGetAccountsTwoAccountsRegistered() 74 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsTwoAccountsRegistered() 109 mContext, null, account, scope, 5, TimeUnit.SECONDS); in runTestOfGetOAuth2AccessTokenWithTimeout()
|
/external/chromium_org/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/ |
D | SyncTest.java | 42 private SyncTestUtil.SyncTestContext mContext; field in SyncTest 53 mContext = new SyncTestUtil.SyncTestContext(getInstrumentation().getTargetContext()); in setUp() 54 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp() 55 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp() 59 SyncStatusHelper.overrideSyncStatusHelperForTests(mContext, syncContentResolverDelegate); in setUp() 61 ChromeSigninController.get(mContext); in setUp() 66 mSyncController = SyncController.get(mContext); in setUp() 157 SyncStatusHelper.get(mContext).disableAndroidSync(account); in testDisableAndEnableSync() 158 SyncTestUtil.verifySyncIsDisabled(mContext, account); in testDisableAndEnableSync() 161 SyncStatusHelper.get(mContext).enableAndroidSync(account); in testDisableAndEnableSync() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | WebsiteSettingsPopup.java | 40 private final Context mContext; field in WebsiteSettingsPopup 52 mContext = context; in WebsiteSettingsPopup() 55 mContainer = new LinearLayout(mContext); in WebsiteSettingsPopup() 65 mDialog = new Dialog(mContext); in WebsiteSettingsPopup() 116 View section = LayoutInflater.from(mContext).inflate(R.layout.website_settings, null); in addSection() 136 mCertificateViewer = new TextView(mContext); in setCertificateViewer() 139 mContext.getResources().getColor(R.color.website_settings_popup_text_link)); in setCertificateViewer() 151 mResetCertDecisionsButton = new Button(mContext); in addResetCertDecisionsButton() 154 mContext.getResources().getDrawable( in addResetCertDecisionsButton() 157 mContext.getResources().getColor( in addResetCertDecisionsButton() [all …]
|
D | CertificateViewer.java | 37 private final Context mContext; field in CertificateViewer 55 mContext = context; in CertificateViewer() 68 ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(mContext, in showCertificateChain() 73 Spinner spinner = new Spinner(mContext); in showCertificateChain() 77 LinearLayout container = new LinearLayout(mContext); in showCertificateChain() 94 Dialog dialog = new Dialog(mContext); in showDialogForView() 96 ScrollView scrollView = new ScrollView(mContext); in showDialogForView() 118 LinearLayout certificateView = new LinearLayout(mContext); in addCertificateDetails() 146 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); in addCertificateDetails() 172 TextView t = new TextView(mContext); in addLabel() [all …]
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
D | PastePopupMenu.java | 24 private final Context mContext; field in PastePopupMenu 49 mContext = parent.getContext(); in PastePopupMenu() 50 mContainer = new PopupWindow(mContext, null, in PastePopupMenu() 62 TypedArray attrs = mContext.getTheme().obtainStyledAttributes(popupLayoutAttrs); in PastePopupMenu() 69 5.0f, mContext.getResources().getDisplayMetrics()); in PastePopupMenu() 71 30.0f, mContext.getResources().getDisplayMetrics()); in PastePopupMenu() 74 mContext.getResources().getIdentifier("status_bar_height", "dimen", "android"); in PastePopupMenu() 77 mContext.getResources().getDimensionPixelSize(statusBarHeightResourceId); in PastePopupMenu() 131 final int screenWidth = mContext.getResources().getDisplayMetrics().widthPixels; in positionAt() 167 LayoutInflater inflater = (LayoutInflater) mContext. in updateContent()
|
D | SelectPopupDialog.java | 34 private final Context mContext; field in SelectPopupDialog 41 mContext = mContentViewCore.getContext(); in SelectPopupDialog() 43 final ListView listView = new ListView(mContext); in SelectPopupDialog() 45 AlertDialog.Builder b = new AlertDialog.Builder(mContext) in SelectPopupDialog() 67 mContext, getSelectDialogLayout(multiple), items); in SelectPopupDialog() 101 TypedArray styledAttributes = mContext.obtainStyledAttributes( in getSelectDialogLayout()
|
/external/chromium_org/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/ |
D | GCMDriver.java | 42 private final Context mContext; field in GCMDriver 46 mContext = context; in GCMDriver() 84 GCMRegistrar.checkDevice(mContext); in register() 89 GCMRegistrar.checkManifest(mContext); in register() 90 String existingRegistrationId = GCMRegistrar.getRegistrationId(mContext); in register() 95 GCMRegistrar.register(mContext, senderIds); in register() 121 GCMRegistrar.checkDevice(mContext); in unregister() 125 if (!GCMRegistrar.isRegistered(mContext)) { in unregister() 129 GCMRegistrar.unregister(mContext); in unregister() 230 sInstance.mContext); in getLastAppId() [all …]
|
/external/chromium_org/chrome/android/shell/java/src/org/chromium/chrome/shell/sync/ |
D | SyncController.java | 38 private final Context mContext; field in SyncController 44 mContext = context; in SyncController() 45 mChromeSigninController = ChromeSigninController.get(mContext); in SyncController() 48 mProfileSyncService = ProfileSyncService.get(mContext); in SyncController() 103 SigninManager signinManager = SigninManager.get(mContext); in signIn() 109 SigninManager.get(mContext).logInSignedInUser(); in signIn() 130 new UuidBasedUniqueIdentificationGenerator(mContext, SESSIONS_UUID_PREF_KEY); in setupSessionSyncId() 151 InvalidationController.get(mContext).start(); in start() 165 InvalidationController.get(mContext).stop(); in stop()
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/picker/ |
D | InputDialogContainer.java | 47 private final Context mContext; field in InputDialogContainer 74 mContext = context; in InputDialogContainer() 140 ListView suggestionListView = new ListView(mContext); in showSuggestionDialog() 142 new DateTimeSuggestionListAdapter(mContext, Arrays.asList(suggestions)); in showSuggestionDialog() 171 mDialog = new AlertDialog.Builder(mContext) in showSuggestionDialog() 174 .setNegativeButton(mContext.getText(android.R.string.cancel), in showSuggestionDialog() 218 ChromeDatePickerDialog dialog = new ChromeDatePickerDialog(mContext, in showPickerDialog() 226 dialog.setTitle(mContext.getText(R.string.date_picker_dialog_title)); in showPickerDialog() 230 mContext, 0 /* theme */ , in showPickerDialog() 233 DateFormat.is24HourFormat(mContext), in showPickerDialog() [all …]
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/ |
D | DropdownAdapter.java | 27 private Context mContext; field in DropdownAdapter 34 mContext = context; in DropdownAdapter() 41 mContext = context; in DropdownAdapter() 60 (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in getView() 78 int height = mContext.getResources().getDimensionPixelSize(R.dimen.dropdown_item_height); in getView() 82 int dividerHeight = mContext.getResources().getDimensionPixelSize( in getView() 87 divider.setColor(mContext.getResources().getColor( in getView() 90 divider.setColor(mContext.getResources().getColor( in getView()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | BrowserStartupController.java | 89 private final Context mContext; field in BrowserStartupController 103 mContext = context; in BrowserStartupController() 255 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); in prepareToStartBrowserProcess() 260 LibraryLoader.ensureInitialized(mContext, true); in prepareToStartBrowserProcess() 263 DeviceUtils.addDeviceSpecificUserAgentSwitch(mContext); in prepareToStartBrowserProcess() 265 Context appContext = mContext.getApplicationContext(); in prepareToStartBrowserProcess() 277 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); in initChromiumBrowserProcessForTests() 284 return PepperPluginManager.getPlugins(mContext); in getPlugins()
|
D | TracingControllerAndroid.java | 61 private final Context mContext; field in TracingControllerAndroid 73 mContext = context; in TracingControllerAndroid() 155 mContext.getString(R.string.profiler_no_storage_toast)); in startTracing() 195 logAndToastError(mContext.getString(R.string.profiler_error_toast)); in startTracing() 200 showToast(mContext.getString(R.string.profiler_started_toast) + ": " + categories); in startTracing() 227 showToast(mContext.getString(R.string.profiler_stopped_toast, mFilename)); in onTracingStopped() 262 if (mShowToasts) Toast.makeText(mContext, str, Toast.LENGTH_SHORT).show(); in logAndToastError() 271 if (mShowToasts) Toast.makeText(mContext, str, Toast.LENGTH_SHORT).show(); in showToast()
|
/external/chromium_org/third_party/angle/util/ |
D | EGLWindow.cpp | 22 mContext(EGL_NO_CONTEXT), in EGLWindow() 66 return mContext; in getContext() 155 mContext = eglCreateContext(mDisplay, mConfig, NULL, contextAttibutes); in initializeGL() 162 eglMakeCurrent(mDisplay, mSurface, mSurface, mContext); in initializeGL() 186 if (mContext != EGL_NO_CONTEXT) in destroyGL() 189 eglDestroyContext(mDisplay, mContext); in destroyGL() 190 mContext = EGL_NO_CONTEXT; in destroyGL()
|
/external/chromium_org/components/cronet/android/java/src/org/chromium/net/ |
D | HttpUrlConnectionUrlRequestFactory.java | 17 private final Context mContext; field in HttpUrlConnectionUrlRequestFactory 21 mContext = context.getApplicationContext(); in HttpUrlConnectionUrlRequestFactory() 37 return new HttpUrlConnectionUrlRequest(mContext, url, requestPriority, in createRequest() 45 return new HttpUrlConnectionUrlRequest(mContext, url, requestPriority, in createRequest()
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/ |
D | Clipboard.java | 25 private final Context mContext; field in Clipboard 35 mContext = context; in Clipboard() 72 final CharSequence sequence = clip.getItemAt(0).coerceToText(mContext); in getCoercedText() 161 String text = mContext.getString(R.string.copy_to_clipboard_failure_message); in setPrimaryClipNoException() 162 Toast.makeText(mContext, text, Toast.LENGTH_SHORT).show(); in setPrimaryClipNoException()
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/ |
D | InvalidationPreferences.java | 46 mEditor = PreferenceManager.getDefaultSharedPreferences(mContext).edit(); in EditContext() 79 private final Context mContext; field in InvalidationPreferences 84 mContext = appContext; in InvalidationPreferences() 108 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedSyncedTypes() 122 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedObjectIds() 149 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedSyncedAccount() 166 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getInternalNotificationClientState()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/ |
D | SigninManager.java | 47 private final Context mContext; field in SigninManager 141 mContext = context.getApplicationContext(); in SigninManager() 166 ChromeSigninController.get(mContext).getSignedInUser() == null; in isSignInAllowed() 276 builder.setMessage(mContext.getResources().getString(R.string.policy_dialog_message, in onPolicyCheckedBeforeSignIn() 326 ChromeSigninController.get(mContext).setSignedInAccountName(mSignInAccount.name); in doSignIn() 332 InvalidationController invalidationController = InvalidationController.get(mContext); in doSignIn() 336 ProfileSyncService profileSyncService = ProfileSyncService.get(mContext); in doSignIn() 337 if (SyncStatusHelper.get(mContext).isSyncEnabled(mSignInAccount) && in doSignIn() 375 ChromeSigninController.get(mContext).clearSignedInUser(); in signOut() 376 ProfileSyncService.get(mContext).signOut(); in signOut()
|
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/ |
D | AddressWidgetUiComponentProvider.java | 40 protected Context mContext; field in AddressWidgetUiComponentProvider 44 mContext = context; in AddressWidgetUiComponentProvider() 90 new ArrayAdapter<String>(mContext, android.R.layout.simple_spinner_item); in createUiPickerAdapter() 97 return new ProgressDialog(mContext); in getUiActivityIndicatorView()
|