/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
FindP2pPrintersFragment.java | 69 getContext().bindService(new Intent(getContext(), BuiltInPrintService.class), this, 81 getContext().unbindService(this); 94 if (getContext().checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) 114 if (getContext().checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) 151 pref = new PrinterPreference(getContext(), mPrintService, printer, true);
|
/packages/services/Telephony/src/com/android/phone/ |
CdmaSystemSelectListPreference.java | 71 Settings.Global.getInt(mPhone.getContext().getContentResolver(), 84 Settings.Global.putInt(mPhone.getContext().getContentResolver(), 121 mPhone.getContext().getContentResolver(), 131 mPhone.getContext().getContentResolver(), 150 Settings.Global.putInt(mPhone.getContext().getContentResolver(), 162 Settings.Global.putInt(mPhone.getContext().getContentResolver(),
|
/external/clang/lib/CodeGen/ |
CGDebugInfo.cpp | 127 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); 135 SourceManager &SM = CGM.getContext().getSourceManager(); 177 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), 263 RD->getNameForDiagnostic(OS, CGM.getContext().getPrintingPolicy(), 289 ASTContext &Context = CGM.getContext(); 318 SourceManager &SM = CGM.getContext().getSourceManager(); 358 SourceManager &SM = CGM.getContext().getSourceManager(); 371 SourceManager &SM = CGM.getContext().getSourceManager(); 397 SourceManager &SM = CGM.getContext().getSourceManager(); 496 unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy) [all...] |
/external/swiftshader/src/OpenGL/libGLESv2/ |
libGLESv3.cpp | 217 es2::Context *context = es2::getContext(); 321 es2::Context *context = es2::getContext(); 367 es2::Context *context = es2::getContext(); 421 es2::Context *context = es2::getContext(); 468 es2::Context *context = es2::getContext(); 542 es2::Context *context = es2::getContext(); 629 es2::Context *context = es2::getContext(); 669 es2::Context *context = es2::getContext(); 689 es2::Context *context = es2::getContext(); 709 es2::Context *context = es2::getContext(); [all...] |
/external/llvm/lib/MC/ |
MCObjectStreamer.cpp | 146 Frame.Begin = getContext().createTempSymbol(); 151 Frame.End = getContext().createTempSymbol(); 315 MCContext &Context = OS.getContext(); 383 getContext().getCVContext().emitLineTableForFunction(*this, FunctionId, Begin, 392 getContext().getCVContext().emitInlineLineTableForFunction( 403 getContext().getCVContext().emitDefRange(*this, Ranges, FixedSizePortion); 408 getContext().getCVContext().emitStringTable(*this); 411 getContext().getCVContext().emitFileChecksums(*this); 488 MCSymbolRefExpr::create(getContext().createTempSymbol(), getContext()); [all...] |
MCStreamer.cpp | 125 EmitValueImpl(MCSymbolRefExpr::create(Sym, getContext()), Size); 163 return getContext().getDwarfFile(Directory, Filename, FileNo, CUID); 171 getContext().setCurrentDwarfLoc(FileNo, Line, Column, Flags, Isa, 176 MCDwarfLineTable &Table = getContext().getMCDwarfLineTable(CUID); 203 return getContext().getCVFile(Filename, FileNo); 210 getContext().setCurrentCVLoc(FunctionId, FileNo, Line, Column, PrologueEnd, 232 SwitchSection(getContext().getObjectFileInfo()->getTextSection()); 297 MCSymbol *Label = getContext().createTempSymbol(); 458 MCSymbol *StartProc = getContext().createTempSymbol(); 471 MCSymbol *Label = getContext().createTempSymbol() [all...] |
/packages/apps/Contacts/src/com/android/contacts/group/ |
GroupMembersFragment.java | 208 Toast.makeText(getContext(), R.string.groupLoadErrorToast, Toast.LENGTH_SHORT) 273 setVisible(getContext(), menu, R.id.menu_multi_send_email, !mIsEditMode && !isGroupEmpty()); 274 setVisible(getContext(), menu, R.id.menu_multi_send_message, 276 setVisible(getContext(), menu, R.id.menu_add, isGroupEditable && !isSelectionMode); 277 setVisible(getContext(), menu, R.id.menu_rename_group, 279 setVisible(getContext(), menu, R.id.menu_delete_group, 281 setVisible(getContext(), menu, R.id.menu_edit_group, 283 setVisible(getContext(), menu, R.id.menu_remove_from_group, 383 final ContentResolver contentResolver = getContext().getContentResolver(); 437 Toast.makeText(getContext(), ContactsUtils.SCHEME_MAILTO.equals(sendScheme [all...] |
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/app/ |
MediaRouteChooserDialog.java | 104 context = getContext(); 190 setContentView(ApiHelper.inflateLibLayout(getContext(), ApiHelper.getLibTheme(getContext(), 191 MediaRouterThemeHelper.getRouterThemeId(getContext())), 195 mAdapter = new RouteAdapter(getContext(), mRoutes); 209 getWindow().setLayout(MediaRouteDialogHelper.getDialogWidth(getContext()), 296 view = ApiHelper.inflateLibLayout(getContext(), 297 ApiHelper.getLibTheme(getContext(), 298 MediaRouterThemeHelper.getRouterThemeId(getContext())), 341 InputStream is = getContext().getContentResolver().openInputStream(iconUri) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
CarrierServiceStateTracker.java | 68 phone.getContext().registerReceiver(mBroadcastReceiver, new IntentFilter( 71 SubscriptionManager.from(mPhone.getContext()).addOnSubscriptionsChangedListener( 106 mPhone.getContext().getContentResolver().registerContentObserver( 114 mPhone.getContext().getContentResolver().unregisterContentObserver( 178 Context context = mPhone.getContext(); 194 Context context = mPhone.getContext(); 289 Context context = mPhone.getContext(); 305 Context context = mPhone.getContext(); 400 Context context = mPhone.getContext(); 470 Context context = mPhone.getContext(); [all...] |
/packages/apps/Contacts/src/com/android/contacts/preference/ |
DisplayOptionsPreferenceFragment.java | 151 final CursorLoader loader = createCursorLoader(getContext()); 153 loader.setProjection(getProjection(getContext())); 298 (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE)); 300 && BlockedNumberContract.canCurrentUserBlockNumbers(getContext()); 319 public Context getContext() { 370 ImplicitIntentsUtil.startActivityOutsideApp(getContext(), 375 (TelecomManager) getContext().getSystemService(Context.TELECOM_SERVICE)); 380 ContactListFilterController.getInstance(getContext()).getFilter(); 392 ContactListFilterController.getInstance(getContext()), resultCode, data); 403 ContactListFilterController.getInstance(getContext()).getPersistedFilter() [all...] |
/packages/apps/Messaging/tests/src/com/android/messaging/util/ |
ContactUtilTest.java | 112 getContext().getContentResolver().update(Contacts.CONTENT_URI, values, 142 final Cursor cur = ContactUtil.getPhones(getContext()) 159 final Cursor cur = ContactUtil.filterPhones(getContext(), TEST_NAME_PREFIX) 181 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) 203 final Cursor cur = ContactUtil.filterPhones(getContext(), filter) 223 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) 243 final Cursor cur = ContactUtil.lookupPhone(getContext(), filter) 256 final Cursor cur = ContactUtil.getFrequentContacts(getContext()) 270 final Cursor cur = ContactUtil.filterEmails(getContext(), "john@") 283 final Cursor cur = ContactUtil.lookupEmail(getContext(), "john@gmail.com" [all...] |
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/ |
AllAppPermissionsFragment.java | 122 PackageManager pm = getContext().getPackageManager(); 129 IconDrawableFactory.newInstance(getContext()).getBadgedIcon(appInfo); 230 pref = new PreferenceCategory(getContext()); 244 final boolean mutable = Utils.isPermissionIndividuallyControlled(getContext(), perm.name); 246 pref = new MyMultiTargetSwitchPreference(getContext(), perm.name, 249 pref = new Preference(getContext()); 258 icon = getContext().getDrawable(R.drawable.ic_perm_device_info); 260 pref.setIcon(Utils.applyTint(getContext(), icon, android.R.attr.colorControlNormal)); 266 new AlertDialog.Builder(getContext()) 291 getContext(), packageInfo, permission) [all...] |
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
MapMceTestFragment.java | 110 Toast.makeText(getContext(), "sending msg to " + s, Toast.LENGTH_SHORT).show(); 145 getContext().registerReceiver(mPickerReceiver, filter); 149 getContext().startActivity(intent); 161 mBluetoothAdapter.getProfileProxy(getContext(), new MapServiceListener(), 169 getContext().registerReceiver(mTransmissionStatusReceiver, intentFilter); 175 getContext().unregisterReceiver(mTransmissionStatusReceiver); 202 Toast.makeText(getContext(), "Try again after granting SEND_SMS perm!", 228 mSentIntent = PendingIntent.getBroadcast(getContext(), 0, mSendIntent, 230 mDeliveredIntent = PendingIntent.getBroadcast(getContext(), 0, mDeliveryIntent, 329 getContext().unregisterReceiver(mPickerReceiver) [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
DefaultContactBrowseListFragment.java | 214 final Context context = getContext(); 241 AccountFilterUtil.startEditorIntent(getContext(), mActivity.getIntent(), getFilter()); 295 && SharedPreferenceUtil.getShouldShowHamburgerPromo(getContext())) { 297 SharedPreferenceUtil.setHamburgerPromoDisplayedBefore(getContext()); 305 return ((AccessibilityManager) getContext().getSystemService(Context.ACCESSIBILITY_SERVICE)) 324 hideHeaderAndAddPadding(getContext(), getListView(), mAccountFilterContainer); 330 bindListHeader(getContext(), getListView(), mAccountFilterContainer, 333 hideHeaderAndAddPadding(getContext(), getListView(), mAccountFilterContainer); 350 AccountTypeManager.getInstance(getContext()).getWritableGoogleAccounts(); 404 DefaultContactListAdapter adapter = new DefaultContactListAdapter(getContext()); [all...] |
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
AccessPermissionWithDiffSigTest.java | 94 getContext().getContentResolver().query(uri, null, null, null, null); 103 getContext().getContentResolver().query(uri, null, null, null, null); 135 getContext().getContentResolver().openFileDescriptor(uri, mode).close(); 145 final ContentResolver resolver = getContext().getContentResolver(); 168 getContext().getContentResolver().openOutputStream(uri).close(); 184 final ContentResolver resolver = getContext().getContentResolver(); 342 grantIntent.setClass(getContext(), ReceiveUriActivity.class); 345 getContext().startActivity(grantIntent); 353 grantIntent.setClass(getContext(), ReceiveUriActivity.class); 356 getContext().startActivity(grantIntent) [all...] |
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
AtomTests.java | 74 Context context = InstrumentationRegistry.getContext(); 144 waitForReceiver(InstrumentationRegistry.getContext(), 59_000, resultsLatch, null); 158 Context context = InstrumentationRegistry.getContext(); 200 Context context = InstrumentationRegistry.getContext(); 221 Context context = InstrumentationRegistry.getContext(); 231 Context context = InstrumentationRegistry.getContext(); 272 Context context = InstrumentationRegistry.getContext(); 293 Context context = InstrumentationRegistry.getContext(); 324 Context context = InstrumentationRegistry.getContext(); 340 Context context = InstrumentationRegistry.getContext(); [all...] |
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
TriggerContentTest.java | 117 getContext().getContentResolver().delete(mActiveUris[which], null, null); 186 boolean success = scanner.scan(getContext(), destFile.toString(), "image/jpeg"); 255 getContext().getContentResolver().notifyChange(uribase, null, 0); 256 getContext().getContentResolver().notifyChange(uri1, null, 0); 272 getContext().getContentResolver().notifyChange(uribase, null, 274 getContext().getContentResolver().notifyChange(uri2, null, 0); 302 getContext().getContentResolver().notifyChange(uribase, null, 0); 303 getContext().getContentResolver().notifyChange(uri1, null, 0); 318 getContext().getContentResolver().notifyChange(uribase, null, 320 getContext().getContentResolver().notifyChange(uri2, null, 0) [all...] |
/external/llvm/lib/Target/AArch64/MCTargetDesc/ |
AArch64MachObjectWriter.cpp | 94 Asm.getContext().reportError(Fixup.getLoc(), 175 Asm.getContext().reportError(Fixup.getLoc(), 186 Asm.getContext().reportError(Fixup.getLoc(), 193 Asm.getContext().reportError(Fixup.getLoc(), "unknown AArch64 fixup kind!"); 205 Asm.getContext().reportError(Fixup.getLoc(), 237 Asm.getContext().reportError(Fixup.getLoc(), 244 Asm.getContext().reportError(Fixup.getLoc(), 257 Asm.getContext().reportError( 264 Asm.getContext().reportError( 272 Asm.getContext().reportError [all...] |
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 249 result = String.format(getContext().getResources().getQuantityString(past 257 result = String.format(getContext().getResources().getQuantityString(past 267 result = String.format(getContext().getResources().getQuantityString(past 281 result = String.format(getContext().getResources().getQuantityString(past 324 mNowText = getContext().getResources().getString( 336 return android.text.format.DateFormat.getTimeFormat(getContext()); 359 result = String.format(getContext().getResources().getQuantityString(past 368 result = String.format(getContext().getResources().getQuantityString(past 379 result = String.format(getContext().getResources().getQuantityString(past 389 result = String.format(getContext().getResources().getQuantityString(pas [all...] |
/frameworks/base/services/core/java/com/android/server/storage/ |
DeviceStorageMonitorService.java | 178 final StorageManager storage = getContext().getSystemService(StorageManager.class); 276 final Context context = getContext(); 317 return getContext().getSystemService(StorageManager.class) 325 if (!DumpUtils.checkDumpPermission(getContext(), TAG, pw)) return; 371 getContext().enforceCallingOrSelfPermission( 383 getContext().enforceCallingOrSelfPermission( 395 getContext().enforceCallingOrSelfPermission( 460 final Context context = getContext(); 526 getContext().sendStickyBroadcastAsUser(lowIntent, UserHandle.ALL); 528 getContext().removeStickyBroadcastAsUser(lowIntent, UserHandle.ALL) [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
LabeledEditorView.java | 296 mEditTypeAdapter = new EditTypeAdapter(getContext()); 302 getContext().getString(R.string.editor_delete_view_description, 304 getContext().getString(mKind.titleRes))); 309 getContext().getString(R.string.editor_delete_view_description, 310 getContext().getString(mType.labelRes), 311 getContext().getString(mKind.titleRes))); 314 getContext().getString(R.string.editor_delete_view_description_short, 315 getContext().getString(mKind.titleRes))); 424 mLabel.setContentDescription(getContext().getResources().getString(mKind.titleRes)); 442 final AlertDialog.Builder builder = new AlertDialog.Builder(getContext()); [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
RunningProcessesView.java | 178 PackageManager pm = rootView.getContext().getPackageManager(); 196 description.setText(rootView.getContext().getText(R.string.cached)); 201 icon.setImageDrawable(item.loadIcon(rootView.getContext(), state)); 203 ai.updateTime(rootView.getContext(), builder); 219 mInflater = (LayoutInflater)getContext().getSystemService( 379 Formatter.formatShortFileSize(getContext(), lowRam)); 383 Formatter.formatShortFileSize(getContext(), medRam)); 387 Formatter.formatShortFileSize(getContext(), highRam)); 416 new SubSettingLauncher(getContext()) 435 mAm = (ActivityManager)getContext().getSystemService(Context.ACTIVITY_SERVICE) [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
PowerUsageSummary.java | 123 return new BatteryInfoLoader(getContext(), mStatsHelper); 143 return new DebugEstimatesLoader(getContext(), mStatsHelper); 172 Formatter.formatShortElapsedTime(getContext(), 177 Formatter.formatShortElapsedTime(getContext(), 189 return new BatteryTipLoader(getContext(), mStatsHelper); 216 mBatteryUtils = BatteryUtils.getInstance(getContext()); 285 new SubSettingLauncher(getContext()) 297 final Context context = getContext(); 313 mScreenUsagePref.setSubtitle(StringUtil.formatElapsedTime(getContext(), 329 return new AnomalyDetectionPolicy(getContext()); [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
TestResultsProvider.java | 94 final String authority = getContext().getPackageName() + ".testresultsprovider"; 100 mOpenHelper = new TestResultsOpenHelper(getContext()); 101 mBackupManager = new BackupManager(getContext()); 168 getContext().getContentResolver().notifyChange(uri, null); 170 return Uri.withAppendedPath(getResultContentUri(getContext()), "" + id); 206 getContext().getContentResolver().notifyChange(uri, null); 217 getContext().getContentResolver().notifyChange(uri, null);
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
RSACipherTest.java | 43 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 76 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 104 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 132 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 162 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 194 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(), 225 for (ImportedKey key : RSASignatureTest.importKatKeyPairs(getContext(),
|