/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/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/invalidation/ |
D | InvalidationControllerTest.java | 42 private IntentSavingContext mContext; field in InvalidationControllerTest 47 mContext = new IntentSavingContext(getInstrumentation().getTargetContext()); in setUp() 48 mController = InvalidationController.get(mContext); in setUp() 53 SyncStatusHelper.overrideSyncStatusHelperForTests(mContext, delegate); in setUp() 60 assertEquals(1, mContext.getNumStartedIntents()); in testStart() 61 Intent intent = mContext.getStartedIntent(0); in testStart() 69 assertEquals(1, mContext.getNumStartedIntents()); in testStop() 70 Intent intent = mContext.getStartedIntent(0); in testStop() 83 assertEquals(1, mContext.getNumStartedIntents()); in testResumingMainActivity() 84 Intent intent = mContext.getStartedIntent(0); in testResumingMainActivity() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/ |
D | InvalidationController.java | 34 private final Context mContext; field in InvalidationController 46 registerIntent.setClass(mContext, InvalidationService.class); in setRegisteredTypes() 47 mContext.startService(registerIntent); in setRegisteredTypes() 58 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); in refreshRegisteredTypes() 75 InvalidationPreferences invalidationPreferences = new InvalidationPreferences(mContext); in setRegisteredObjectIds() 80 registerIntent.setClass(mContext, InvalidationService.class); in setRegisteredObjectIds() 81 mContext.startService(registerIntent); in setRegisteredObjectIds() 88 Intent intent = new Intent(mContext, InvalidationService.class); in start() 89 mContext.startService(intent); in start() 96 Intent intent = new Intent(mContext, InvalidationService.class); in stop() [all …]
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/sync/ |
D | SyncTest.java | 43 private SyncTestUtil.SyncTestContext mContext; field in SyncTest 54 mContext = new SyncTestUtil.SyncTestContext(getInstrumentation().getTargetContext()); in setUp() 55 mAccountManager = new MockAccountManager(mContext, getInstrumentation().getContext()); in setUp() 56 AccountManagerHelper.overrideAccountManagerHelperForTests(mContext, mAccountManager); in setUp() 60 SyncStatusHelper.overrideSyncStatusHelperForTests(mContext, syncContentResolverDelegate); in setUp() 62 ChromeSigninController.get(mContext); in setUp() 67 mSyncController = SyncController.get(mContext); in setUp() 144 SyncStatusHelper.get(mContext).disableAndroidSync(account); in testDisableAndEnableSync() 145 SyncTestUtil.verifySyncIsDisabled(mContext, account); in testDisableAndEnableSync() 148 SyncStatusHelper.get(mContext).enableAndroidSync(account); in testDisableAndEnableSync() [all …]
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/ |
D | WebsiteSettingsPopup.java | 37 private final Context mContext; field in WebsiteSettingsPopup 47 mContext = context; in WebsiteSettingsPopup() 48 mDialog = new Dialog(mContext); in WebsiteSettingsPopup() 58 mContainer = new LinearLayout(mContext); in WebsiteSettingsPopup() 68 View section = LayoutInflater.from(mContext).inflate(R.layout.website_settings, null); in addSection() 87 View divider = new View(mContext); in addDivider() 88 final int dividerHeight = (int) (2 * mContext.getResources().getDisplayMetrics().density); in addDivider() 97 mCertificateViewer = new TextView(mContext); in setCertificateViewer() 111 mMoreInfoLink = new TextView(mContext); in addUrl() 122 ScrollView scrollView = new ScrollView(mContext); in show() [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 …]
|
D | NavigationPopup.java | 43 private final Context mContext; field in NavigationPopup 63 mContext = context; in NavigationPopup() 69 float density = mContext.getResources().getDisplayMetrics().density; in NavigationPopup() 140 faviconDrawable = new BitmapDrawable(mContext.getResources(), bitmap); in updateBitmapForTextView() 161 Context mContext; field in NavigationPopup.ListItemFactory 164 mContext = context; in ListItemFactory() 171 float density = mContext.getResources().getDisplayMetrics().density; in computeFadeDimensions() 181 TextView view = new TextView(mContext); in createListItem()
|
/external/chromium_org/chrome/android/testshell/java/src/org/chromium/chrome/testshell/sync/ |
D | SyncController.java | 37 private final Context mContext; field in SyncController 43 mContext = context; in SyncController() 44 mChromeSigninController = ChromeSigninController.get(mContext); in SyncController() 47 mProfileSyncService = ProfileSyncService.get(mContext); in SyncController() 102 SigninManager signinManager = SigninManager.get(mContext); in signIn() 108 SigninManager.get(mContext).logInSignedInUser(); in signIn() 129 new UuidBasedUniqueIdentificationGenerator(mContext, SESSIONS_UUID_PREF_KEY); in setupSessionSyncId() 150 InvalidationController.get(mContext).start(); in start() 161 InvalidationController.get(mContext).stop(); in stop()
|
/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/signin/ |
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[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsOneAccountRegistered() 64 String[] accounts = OAuth2TokenService.getAccounts(mContext); in testGetAccountsTwoAccountsRegistered() 103 mContext, null, account, scope, 5, TimeUnit.SECONDS); in runTestOfGetOAuth2AccessTokenWithTimeout()
|
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() 55 mChromeSigninController = ChromeSigninController.get(mContext); in setUp() 161 mOAuth2TokenService.validateAccounts(mContext); in testValidateAccountsNoAccountsRegisteredAndNoSignedInUser() 176 mOAuth2TokenService.validateAccounts(mContext); in testValidateAccountsOneAccountsRegisteredAndNoSignedInUser() 194 mOAuth2TokenService.validateAccounts(mContext); in testValidateAccountsOneAccountsRegisteredSignedIn() 213 mOAuth2TokenService.validateAccounts(mContext); in testValidateAccountsTwoAccountsRegisteredAndOneSignedIn() 229 mOAuth2TokenService.validateAccounts(mContext); in testValidateAccountsNoAccountsRegisteredButSignedIn()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
D | ResourceExtractor.java | 62 deleteFiles(mContext); in doInBackground() 65 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in doInBackground() 101 AssetManager manager = mContext.getResources().getAssets(); in doInBackground() 157 deleteFiles(mContext); in doInBackground() 187 PackageManager pm = mContext.getPackageManager(); in checkPakTimestamp() 191 pi = pm.getPackageInfo(mContext.getPackageName(), 0); in checkPakTimestamp() 224 private final Context mContext; field in ResourceExtractor 265 mContext = context; in ResourceExtractor() 266 mOutputDir = getOutputDirFromContext(mContext); in ResourceExtractor() 280 deleteFiles(mContext); in waitForCompletion() [all …]
|
D | TracingControllerAndroid.java | 56 private final Context mContext; field in TracingControllerAndroid 68 mContext = context; in TracingControllerAndroid() 128 mContext.getString(R.string.profiler_no_storage_toast)); in startTracing() 175 logAndToastError(mContext.getString(R.string.profiler_error_toast)); in startTracing() 179 logAndToastInfo(mContext.getString(R.string.profiler_started_toast) + ": " + categories); in startTracing() 207 mContext.getString(R.string.profiler_stopped_toast, mFilename)); in onTracingStopped() 223 if (mShowToasts) Toast.makeText(mContext, str, Toast.LENGTH_SHORT).show(); in logAndToastError() 228 if (mShowToasts) Toast.makeText(mContext, str, Toast.LENGTH_SHORT).show(); in logAndToastInfo()
|
D | BrowserStartupController.java | 86 private final Context mContext; field in BrowserStartupController 114 mContext = context; in BrowserStartupController() 266 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); in prepareToStartBrowserProcess() 274 DeviceUtils.addDeviceSpecificUserAgentSwitch(mContext); in prepareToStartBrowserProcess() 276 Context appContext = mContext.getApplicationContext(); in prepareToStartBrowserProcess() 289 ResourceExtractor resourceExtractor = ResourceExtractor.get(mContext); in initChromiumBrowserProcessForTests() 299 return PepperPluginManager.getPlugins(mContext); in getPlugins()
|
/external/chromium_org/ui/android/java/src/org/chromium/ui/autofill/ |
D | AutofillListAdapter.java | 27 private Context mContext; field in AutofillListAdapter 35 mContext = context; in AutofillListAdapter() 43 (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in getView() 51 int height = mContext.getResources().getDimensionPixelSize(R.dimen.autofill_text_height); in getView() 55 int dividerHeight = mContext.getResources().getDimensionPixelSize( in getView() 60 divider.setColor(mContext.getResources().getColor( in getView() 63 divider.setColor(mContext.getResources().getColor( in getView()
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/input/ |
D | InputDialogContainer.java | 48 private final Context mContext; field in InputDialogContainer 75 mContext = context; in InputDialogContainer() 141 ListView suggestionListView = new ListView(mContext); in showSuggestionDialog() 143 new DateTimeSuggestionListAdapter(mContext, Arrays.asList(suggestions)); in showSuggestionDialog() 172 mDialog = new AlertDialog.Builder(mContext) in showSuggestionDialog() 175 .setNegativeButton(mContext.getText(android.R.string.cancel), in showSuggestionDialog() 219 DatePickerDialog dialog = new DatePickerDialog(mContext, in showPickerDialog() 227 dialog.setTitle(mContext.getText(R.string.date_picker_dialog_title)); in showPickerDialog() 231 mContext, 0 /* theme */ , in showPickerDialog() 234 DateFormat.is24HourFormat(mContext), in showPickerDialog() [all …]
|
D | DateTimeSuggestionListAdapter.java | 22 private final Context mContext; field in DateTimeSuggestionListAdapter 26 mContext = context; in DateTimeSuggestionListAdapter() 33 LayoutInflater inflater = LayoutInflater.from(mContext); in getView() 40 labelView.setText(mContext.getText(R.string.date_picker_dialog_other_button_label)); in getView()
|
D | SelectPopupDialog.java | 38 private final Context mContext; field in SelectPopupDialog 43 mContext = mContentViewCore.getContext(); in SelectPopupDialog() 45 final ListView listView = new ListView(mContext); in SelectPopupDialog() 47 AlertDialog.Builder b = new AlertDialog.Builder(mContext) in SelectPopupDialog() 69 mContext, getSelectDialogLayout(multiple), items); in SelectPopupDialog() 110 TypedArray styledAttributes = mContext.obtainStyledAttributes( in getSelectDialogLayout()
|
D | InsertionHandleController.java | 40 private final Context mContext; field in InsertionHandleController 47 mContext = parent.getContext(); in InsertionHandleController() 178 return ((ClipboardManager) mContext.getSystemService( in canPaste() 207 mContainer = new PopupWindow(mContext, null, in PastePopupMenu() 225 TypedArray attrs = mContext.obtainStyledAttributes(POPUP_LAYOUT_ATTRS); in PastePopupMenu() 242 LayoutInflater inflater = (LayoutInflater) mContext. in updateContent() 301 final int screenWidth = mContext.getResources().getDisplayMetrics().widthPixels; in positionAtCursor()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/signin/ |
D | SigninManager.java | 44 private final Context mContext; field in SigninManager 112 mContext = context.getApplicationContext(); in SigninManager() 135 ChromeSigninController.get(mContext).getSignedInUser() == null; in isSignInAllowed() 223 builder.setMessage(mContext.getResources().getString(R.string.policy_dialog_message, in onPolicyCheckedBeforeSignIn() 273 ChromeSigninController.get(mContext).setSignedInAccountName(mSignInAccount.name); in doSignIn() 280 InvalidationController invalidationController = InvalidationController.get(mContext); in doSignIn() 284 ProfileSyncService profileSyncService = ProfileSyncService.get(mContext); in doSignIn() 285 if (SyncStatusHelper.get(mContext).isSyncEnabled(mSignInAccount) && in doSignIn() 319 ChromeSigninController.get(mContext).clearSignedInUser(); in signOut() 320 ProfileSyncService.get(mContext).signOut(); in signOut()
|
/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 this.editor = PreferenceManager.getDefaultSharedPreferences(mContext).edit(); in EditContext() 79 private final Context mContext; field in InvalidationPreferences 82 this.mContext = Preconditions.checkNotNull(context.getApplicationContext()); in InvalidationPreferences() 106 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedSyncedTypes() 120 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedObjectIds() 147 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getSavedSyncedAccount() 164 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(mContext); in getInternalNotificationClientState()
|
/external/chromium_org/third_party/eyesfree/src/android/java/src/com/googlecode/eyesfree/braille/selfbraille/ |
D | SelfBrailleClient.java | 76 private final Context mContext; field in SelfBrailleClient 97 mContext = context; in SelfBrailleClient() 125 if (!mContext.bindService(mServiceIntent, localConnection, in doBindService() 145 mContext.unbindService(mConnection); in doUnbindService() 159 PackageManager pm = mContext.getPackageManager(); in verifyPackage() 188 mContext.getPackageName())); in verifyPackage()
|
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/ |
D | InfoBar.java | 49 private Context mContext; field in InfoBar 133 mContext = context; in setContext() 141 return mContext; in getContext() 149 assert mContext != null; in createView() 150 return new InfoBarLayout(mContext, this, mBackgroundType, mIconDrawableId); in createView()
|
/external/chromium_org/third_party/angle/src/compiler/preprocessor/ |
D | Tokenizer.l | 274 mContext.diagnostics = diagnostics; 286 mContext.input = Input(count, string, length); 307 mContext.diagnostics->report(Diagnostics::TOKEN_TOO_LONG, 314 token->setAtStartOfLine(mContext.lineStart); 315 mContext.lineStart = token->type == '\n'; 317 token->setHasLeadingSpace(mContext.leadingSpace); 318 mContext.leadingSpace = false; 323 if ((mHandle == NULL) && yylex_init_extra(&mContext, &mHandle))
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
D | AudioManagerAndroid.java | 112 private final Context mContext; field in AudioManagerAndroid 147 mContext = context; in AudioManagerAndroid() 149 mAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); in AudioManagerAndroid() 150 mContentResolver = mContext.getContentResolver(); in AudioManagerAndroid() 360 return mContext.getPackageManager().hasSystemFeature( in isAudioLowLatencySupported() 408 return mContext.getPackageManager().hasSystemFeature( in hasEarpiece() 479 mContext.registerReceiver(mWiredHeadsetReceiver, filter); in registerForWiredHeadsetIntentBroadcast() 484 mContext.unregisterReceiver(mWiredHeadsetReceiver); in unregisterForWiredHeadsetIntentBroadcast() 495 mHasBluetoothPermission = mContext.checkPermission( in initBluetooth() 519 BluetoothManager btManager = (BluetoothManager) mContext.getSystemService( in initBluetooth()
|