/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
ContactLoader.java | 60 ContentResolver resolver = getContext().getContentResolver(); 148 getContext().getContentResolver().registerContentObserver(mLookupUri, true, mObserver); 171 getContext().getContentResolver().unregisterContentObserver(mObserver);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
KeyboardLayoutSetTestsBase.java | 72 final Context context = getContext(); 87 setContext(new ContextThemeWrapper(getContext(), keyboardTheme.mStyleId)); 156 final Context context = getContext();
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionaryTests.java | 116 getContext(), dummyLocale, testAccount); 162 dicts[i] = PersonalizationHelper.getUserHistoryDictionary(getContext(), 207 getContext(), dummyLocale, testAccount);
|
/packages/services/Car/car-support-lib/src/android/support/car/app/menu/ |
EmbeddedCarUiController.java | 48 Context carUiContext = mActivity.getContext().createPackageContext( 55 .newInstance(carUiContext, mActivity.getContext()); 68 PackageManager packageManager = mActivity.getContext().getPackageManager();
|
/packages/services/Car/tests/carservice_test/src/com/android/support/car/test/ |
CarPackageManagerTest.java | 44 mPm = getContext().getPackageManager(); 63 final String thisPackage = getContext().getPackageName(); 86 final String thisPackage = getContext().getPackageName();
|
/packages/services/Telephony/src/com/android/phone/settings/ |
VoicemailProviderListPreference.java | 105 VoicemailProviderSettingsUtil.delete(mPhone.getContext(), providerToIgnore); 115 mPhone.getContext().getResources().getString(R.string.voicemail_default); 122 PackageManager pm = mPhone.getContext().getPackageManager();
|
/platform_testing/tests/functional/settingstests/src/com/android/settings/functional/ |
MainSettingsTests.java | 59 mContext = getInstrumentation().getContext(); 91 SettingsHelper.launchSettingsPage(getInstrumentation().getContext(), 137 getInstrumentation().getContext().startActivity(settingIntent);
|
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/ |
ContactsJankTests.java | 79 PackageManager pm = getInstrumentation().getContext().getPackageManager(); 82 getInstrumentation().getContext().startActivity(appIntent); 94 Cursor cursor = getInstrumentation().getContext().getContentResolver().query(
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
UsageStatsService.java | 164 mAppOps = (AppOpsManager) getContext().getSystemService(Context.APP_OPS_SERVICE); 165 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); 166 mPackageManager = getContext().getPackageManager(); 179 getContext().registerReceiverAsUser(new UserActionsReceiver(), UserHandle.ALL, filter, 188 getContext().registerReceiverAsUser(new PackageReceiver(), UserHandle.ALL, packageFilter, 191 mAppIdleEnabled = getContext().getResources().getBoolean( 197 getContext().registerReceiver(new DeviceStateReceiver(), deviceStates); 220 mAppWidgetManager = getContext().getSystemService(AppWidgetManager.class); 225 mDisplayManager = (DisplayManager) getContext().getSystemService( 227 mPowerManager = getContext().getSystemService(PowerManager.class) [all...] |
/external/clang/lib/CodeGen/ |
CGExprCXX.cpp | 45 CallLoc, This, CGF.getContext().getRecordType(MD->getParent())); 48 Args.add(RValue::get(This), MD->getThisType(CGF.getContext())); 119 return EmitCall(getContext().getPointerType(MD->getType()), Callee, CE, 321 getContext().getPointerType(getContext().getTagDeclType(RD)); 358 const ASTRecordLayout &Layout = CGF.getContext().getASTRecordLayout(Base); 466 assert(getContext().hasSameUnqualifiedType(E->getType(), 468 if (E->getArg(0)->isTemporaryObject(getContext(), CD->getParent())) { 475 = getContext().getAsConstantArrayType(E->getType())) { 524 assert(!getContext().getAsConstantArrayType(E->getType() [all...] |
TargetInfo.cpp | 79 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), 85 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), 129 ASTContext &ABIInfo::getContext() const { 130 return CGT.getContext(); 266 /// computed with getContext().getTypeInfoInChars(ValueTy). 660 if (isEmptyRecord(getContext(), Ty, true)) 665 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) 679 if (isEmptyRecord(getContext(), RetTy, true)) 684 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) 846 return isX86VectorTypeForVectorCall(getContext(), Ty) [all...] |
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/ |
ConnectivityManagerLegacyTest.java | 65 mCm = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE); 66 mWifiManager = (WifiManager) getContext().getSystemService(Context.WIFI_SERVICE); 67 mPackageManager = getContext().getPackageManager(); 70 int resId = getContext().getResources().getIdentifier("config_protectedNetworks", "array", "android"); 71 int[] protectedNetworks = getContext().getResources().getIntArray(resId);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
CursorAdapterTest.java | 111 assertNull(cursorAdapter.getContext()); 119 assertSame(mContext, cursorAdapter.getContext()); 127 assertSame(mContext, cursorAdapter.getContext()); 135 assertSame(mContext, cursorAdapter.getContext()); 367 public Context getContext() {
|
/external/llvm/lib/Target/SystemZ/ |
SystemZAsmPrinter.cpp | 105 SystemZMCInstLower Lower(MF->getContext(), *this); 136 .addExpr(getTLSGetOffset(MF->getContext())) 143 .addExpr(getTLSGetOffset(MF->getContext())) 150 .addExpr(getGlobalOffsetTable(MF->getContext())); 306 SystemZMCInstLower Lower(MF->getContext(), *this);
|
/external/llvm/lib/Transforms/IPO/ |
ArgumentPromotion.cpp | 267 .removeAttribute(F->getContext(), ArgNo + 1, Attribute::StructRet) 268 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias)); 273 .removeAttribute(F->getContext(), ArgNo + 1, 275 .addAttribute(F->getContext(), ArgNo + 1, Attribute::NoAlias)); 642 AttributesVec.push_back(AttributeSet::get(F->getContext(), 662 push_back(AttributeSet::get(F->getContext(), Params.size(), B)); 721 AttributesVec.push_back(AttributeSet::get(FTy->getContext(), 742 NF->setAttributes(AttributeSet::get(F->getContext(), AttributesVec)); 767 AttributesVec.push_back(AttributeSet::get(F->getContext(), 782 push_back(AttributeSet::get(F->getContext(), Args.size(), B)) [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
ActionBarContextView.java | 120 getContext().getResources().getDisplayMetrics().widthPixels, true); 176 LayoutInflater inflater = LayoutInflater.from(getContext()); 234 getContext().getResources().getDisplayMetrics().widthPixels, true); 297 return new MarginLayoutParams(getContext(), attrs); 424 event.setPackageName(getContext().getPackageName());
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardSimPukView.java | 153 displayMessage = getContext().getString(R.string.kg_password_wrong_puk_code_dead); 155 displayMessage = getContext().getResources() 159 displayMessage = getContext().getString(R.string.kg_password_puk_failed); 333 KeyguardUpdateMonitor.getInstance(getContext()) 347 mSecurityMessageDisplay.setMessage(getContext().getString(
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
StatusBarIconView.java | 164 if (icon.number > 0 && getContext().getResources().getBoolean( 167 mNumberBackground = getContext().getResources().getDrawable( 204 return getIcon(getContext(), icon); 279 final int tooBig = getContext().getResources().getInteger( 282 str = getContext().getResources().getString(
|
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/ |
MemoryUsageTest.java | 113 ResolveInfo resolveInfo = getInstrumentation().getContext(). 156 PackageManager pm = getInstrumentation().getContext() 206 getInstrumentation().getContext().startActivity(homeIntent); 265 .getContext().getSystemService(Context.ACTIVITY_SERVICE); 286 .getContext().getSystemService(Context.ACTIVITY_SERVICE);
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
ClockProvider.java | 120 final Context context = getContext(); 178 ret.setNotificationUri(getContext().getContentResolver(), uri); 224 notifyChange(getContext().getContentResolver(), uri); 244 notifyChange(getContext().getContentResolver(), uriResult); 282 notifyChange(getContext().getContentResolver(), uri);
|
/packages/apps/Settings/src/com/android/settings/users/ |
EditUserPhotoController.java | 92 mContext = view.getContext(); 142 final Context context = mImageView.getContext(); 195 return mImageView.getContext().getPackageManager().queryIntentActivities( 203 return mImageView.getContext().getPackageManager().queryIntentActivities( 313 .getInstance(mImageView.getContext(), mNewUserPhotoBitmap);
|
/packages/apps/TV/src/com/android/tv/menu/ |
AppLinkCardView.java | 118 int linkType = mChannel.getAppLinkType(getContext()); 119 mIntent = mChannel.getAppLinkIntent(getContext()); 130 mChannel.loadBitmap(getContext(), Channel.LOAD_IMAGE_TYPE_APP_LINK_ICON, 141 setMetaViewText(getContext().getString( 161 mChannel.loadBitmap(getContext(), Channel.LOAD_IMAGE_TYPE_APP_LINK_POSTER_ART,
|
/developers/build/prebuilts/gradle/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
MyCloudProvider.java | 96 mBaseDir = getContext().getFilesDir(); 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); 308 Handler handler = new Handler(getContext().getMainLooper()); 579 InputStream ins = getContext().getResources().openRawResource(resId); 589 String filename = getContext().getResources().getResourceEntryName(resId) + extension; 590 FileOutputStream fos = getContext().openFileOutput(filename, Context.MODE_PRIVATE); 600 TypedArray ar = getContext().getResources().obtainTypedArray(arrayResId); 615 getContext().getSharedPreferences(getContext().getString(R.string.app_name) [all...] |
/developers/samples/android/content/documentsUi/StorageProvider/Application/src/main/java/com/example/android/storageprovider/ |
MyCloudProvider.java | 96 mBaseDir = getContext().getFilesDir(); 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); 308 Handler handler = new Handler(getContext().getMainLooper()); 579 InputStream ins = getContext().getResources().openRawResource(resId); 589 String filename = getContext().getResources().getResourceEntryName(resId) + extension; 590 FileOutputStream fos = getContext().openFileOutput(filename, Context.MODE_PRIVATE); 600 TypedArray ar = getContext().getResources().obtainTypedArray(arrayResId); 615 getContext().getSharedPreferences(getContext().getString(R.string.app_name) [all...] |
/development/samples/browseable/StorageProvider/src/com.example.android.storageprovider/ |
MyCloudProvider.java | 96 mBaseDir = getContext().getFilesDir(); 125 row.add(Root.COLUMN_SUMMARY, getContext().getString(R.string.root_summary)); 136 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.app_name)); 308 Handler handler = new Handler(getContext().getMainLooper()); 579 InputStream ins = getContext().getResources().openRawResource(resId); 589 String filename = getContext().getResources().getResourceEntryName(resId) + extension; 590 FileOutputStream fos = getContext().openFileOutput(filename, Context.MODE_PRIVATE); 600 TypedArray ar = getContext().getResources().obtainTypedArray(arrayResId); 615 getContext().getSharedPreferences(getContext().getString(R.string.app_name) [all...] |