Searched refs:getContext (Results 26 - 50 of 751) sorted by relevance

1234567891011>>

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationOverflowIconsView.java47 mNotificationColorUtil = NotificationColorUtil.getInstance(getContext());
48 mTintColor = getContext().getColor(R.color.keyguard_overflow_content_color);
58 StatusBarIconView v = new StatusBarIconView(getContext(), "",
/frameworks/base/core/java/android/test/
H A DAndroidTestCase.java56 public Context getContext() { method in class:AndroidTestCase
98 getContext().startActivity(intent);
117 getContext().getContentResolver().query(uri, null, null, null, null);
136 getContext().getContentResolver().insert(uri, new ContentValues());
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemFocusableAboveUnfocusable.java43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
H A DListItemFocusablesClose.java52 position, parent.getContext(), desiredHeight);
H A DAdjacentListsWithAdjacentISVsInside.java90 final LinearLayout ll = new LinearLayout(views[0].getContext());
123 parent.getContext(), 5, "isv left");
126 parent.getContext(), 5, "isv right");
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
H A DExternalSharedPermsFLTest.java33 LocationManager locationManager = (LocationManager)getInstrumentation().getContext(
/frameworks/base/media/mca/filterfw/java/android/filterfw/
H A DFilterFunctionEnvironment.java68 return new FilterFunction(getContext(), filter);
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DGraphRunner.java55 public FilterContext getContext() { method in class:GraphRunner
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java81 mOpenHelper = new DatabaseHelper(getContext());
89 getContext().getContentResolver().notifyChange(uri, null);
104 getContext().getContentResolver().notifyChange(addedUri, null);
117 getContext().getContentResolver().notifyChange(uri, null);
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DView_Delegate.java41 Context baseContext = BridgeContext.getBaseContext(thisView.getContext());
/frameworks/support/v7/palette/src/androidTest/java/android/support/v7/graphics/
H A DMaxColorsTest.java34 mSource = BitmapFactory.decodeResource(getInstrumentation().getContext().getResources(),
/frameworks/base/core/java/android/widget/
H A DDigitalClock.java65 getContext().getContentResolver().registerContentObserver(
101 mFormat = DateFormat.getTimeFormatString(getContext());
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsLoader.java40 getContext().getContentResolver()
86 getContext().getContentResolver().unregisterContentObserver(mObserver);
/frameworks/base/test-runner/src/android/test/
H A DApplicationTestCase.java89 mSystemContext = getContext();
98 mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());
H A DProviderTestCase2.java82 return getContext().getResources();
89 return getContext().getDir("mockcontext2_" + name, mode);
139 getContext(), // The context that file methods are delegated to
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DRotationActivity.java54 canvas.translate(dipToPx(getContext(), 400), dipToPx(getContext(), 200));
/frameworks/compile/libbcc/include/bcc/
H A DSource.h67 inline BCCContext &getContext() function in class:bcc::Source
69 inline const BCCContext &getContext() const function in class:bcc::Source
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/omadm/
H A DOMAScalar.java56 if (getContext() != null) {
57 sb.append(" (").append(getContext()).append(')');
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
H A DIllustrationTest.java33 final Illustration illustration = new Illustration(getContext());
39 final Context context = getContext();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDcTesterDeactivateAll.java81 phone.getContext().registerReceiver(sIntentReceiver, filter, null, handler);
87 mPhone.getContext().unregisterReceiver(sIntentReceiver);
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DDialogPreference.java114 setDialogTitle(getContext().getString(dialogTitleResId));
144 setDialogMessage(getContext().getString(dialogMessageResId));
171 mDialogIcon = ContextCompat.getDrawable(getContext(), dialogIconRes);
197 setPositiveButtonText(getContext().getString(positiveButtonTextResId));
225 setNegativeButtonText(getContext().getString(negativeButtonTextResId));
/frameworks/base/core/java/com/android/internal/widget/
H A DSwipeDismissLayout.java86 if (mUseDynamicTranslucency && getContext() instanceof Activity) {
87 ((Activity) getContext()).convertFromTranslucent();
143 if (getContext() instanceof Activity) {
147 getContext().registerReceiver(mScreenOffReceiver, mScreenOffFilter);
152 getContext().unregisterReceiver(mScreenOffReceiver);
153 if (getContext() instanceof Activity) {
247 if (mUseDynamicTranslucency && getContext() instanceof Activity) {
248 ((Activity) getContext()).convertToTranslucent(null, null);
271 if (mUseDynamicTranslucency && getContext() instanceof Activity) {
272 ((Activity) getContext())
[all...]
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSGlobalInfoPass.cpp126 llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(M.getContext());
129 llvm::Type *Int32Ty = llvm::Type::getInt32Ty(M.getContext());
132 llvm::Type *SizeTy = llvm::Type::getIntNTy(M.getContext(),
165 llvm::ConstantDataArray::getString(M.getContext(), GVN);
234 GlobalSizesInit = llvm::ConstantDataArray::get(M.getContext(), GVSizes32);
236 GlobalSizesInit = llvm::ConstantDataArray::get(M.getContext(), GVSizes64);
246 llvm::ConstantDataArray::get(M.getContext(), GVProperties);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDateView.java74 mDatePattern = getContext().getString(R.string.system_ui_date_pattern);
87 getContext().registerReceiver(mIntentReceiver, filter, null, null);
97 getContext().unregisterReceiver(mIntentReceiver);
H A DSplitClockView.java78 getContext().registerReceiverAsUser(mIntentReceiver, UserHandle.ALL, filter, null, null);
86 getContext().unregisterReceiver(mIntentReceiver);
90 String formatString = DateFormat.getTimeFormatString(getContext(),

Completed in 664 milliseconds

1234567891011>>