/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | OtaDexoptService.java | 61 private final Context mContext; field in class:OtaDexoptService 93 this.mContext = context; 228 long lowThreshold = StorageManager.from(mContext).getStorageLowBytes(dataDir); 281 Installer collectingInstaller = new Installer(mContext, collectingConnection); 285 collectingInstaller, mPackageManagerService.mInstallLock, mContext); 381 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_before_mb", 383 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_after_bulk_delete_mb", 385 MetricsLogger.histogram(mContext, "ota_dexopt_available_space_after_dexopt_mb", 388 MetricsLogger.histogram(mContext, "ota_dexopt_num_important_packages", 390 MetricsLogger.histogram(mContext, "ota_dexopt_num_other_package [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FilterGraph.java | 51 private MffContext mContext; field in class:FilterGraph 71 private MffContext mContext; field in class:FilterGraph.Builder 81 mContext = context; 119 VariableSource valueSource = new VariableSource(mContext, name); 128 FrameSlotSource filter = new FrameSlotSource(mContext, name, slotName); 134 FrameSlotTarget filter = new FrameSlotTarget(mContext, name, slotName); 222 VariableSource valueSource = new VariableSource(mContext, valueSourceName); 272 FilterGraph graph = new FilterGraph(mContext, parent); 295 branch = new BranchFilter(mContext, branchName, false); 365 return mContext; [all...] |
H A D | RenderTarget.java | 66 private EGLContext mContext; field in class:RenderTarget 115 return new RenderTarget(mDisplay, mContext, surface(), fbo, false, false); 130 RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true); 149 RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true); 168 RenderTarget result = new RenderTarget(mDisplay, mContext, eglSurf, 0, false, true); 194 EGLSurface currentSurface = mDisplaySurfaces.get(mContext); 198 mDisplaySurfaces.put(mContext, mSurface); 205 mDisplaySurfaces.put(mContext, null); 214 mEgl.eglMakeCurrent(mDisplay, surface(), surface(), mContext); 238 return mContext; [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationGuts.java | 117 TunerService.get(mContext).addTunable(this, SHOW_SLIDER); 122 TunerService.get(mContext).removeTunable(this); 148 mBackground = mContext.getDrawable(R.drawable.notification_guts_bg); 228 MetricsLogger.action(mContext, MetricsEvent.ACTION_SAVE_IMPORTANCE, 269 mReset.setText(mContext.getString(R.string.do_not_silence)); 271 mReset.setText(mContext.getString(R.string.do_not_silence_block)); 273 mBlock.setText(mContext.getString(R.string.block)); 274 mSilent.setText(mContext.getString(R.string.show_silently)); 283 mActiveSliderTint = ColorStateList.valueOf(Utils.getColorAccent(mContext)); 304 MetricsLogger.action(mContext, MetricsEven [all...] |
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
H A D | WifiNetworkAdapter.java | 41 private final Context mContext; field in class:WifiNetworkAdapter 76 mContext = context; 89 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 131 mContext.startActivity(intent); 135 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 142 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 147 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 152 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 161 WifiManager wifiManager = (WifiManager) mContext.getSystemService(Context.WIFI_SERVICE); 171 WifiManager wifiManager = (WifiManager) mContext [all...] |
/frameworks/base/core/java/android/app/backup/ |
H A D | RestoreSession.java | 38 final Context mContext; field in class:RestoreSession 54 RestoreObserverWrapper obsWrapper = new RestoreObserverWrapper(mContext, observer); 82 mObserver = new RestoreObserverWrapper(mContext, observer); 116 mObserver = new RestoreObserverWrapper(mContext, observer); 146 mObserver = new RestoreObserverWrapper(mContext, observer); 177 mContext = context;
|
H A D | FileBackupHelperBase.java | 33 Context mContext; field in class:FileBackupHelperBase 38 mContext = context; 96 + mContext.getPackageName() + "\' result=0x"
|
/frameworks/base/core/tests/notificationtests/src/android/app/ |
H A D | NotificationStressTest.java | 61 private Context mContext; field in class:NotificationStressTest 70 mContext = getInstrumentation().getContext(); 71 mNotificationManager = (NotificationManager) mContext.getSystemService( 114 PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); 118 Notification notification = new Notification.Builder(mContext) 133 KeyguardManager myKM = (KeyguardManager) mContext
|
/frameworks/base/keystore/java/android/security/ |
H A D | KeyPairGeneratorSpec.java | 63 private final Context mContext; field in class:KeyPairGeneratorSpec 138 mContext = context; 154 return mContext; 268 * new KeyPairGeneratorSpec.Builder(mContext).setAlias("myKey") 277 private final Context mContext; field in class:KeyPairGeneratorSpec.Builder 307 mContext = context; 449 return new KeyPairGeneratorSpec(mContext,
|
/frameworks/base/libs/hwui/ |
H A D | AnimatorManager.cpp | 99 : mInfo(info), mContext(context), mDirtyMask(outDirtyMask) {} 103 bool remove = animator->animate(mContext); 119 AnimationContext& mContext; member in class:android::uirenderer::AnimateFunctor 171 EndActiveAnimatorsFunctor(AnimationContext& context) : mContext(context) {} 174 animator->forceEndNow(mContext); 178 AnimationContext& mContext; member in class:android::uirenderer::EndActiveAnimatorsFunctor
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DocumentClipper.java | 48 private Context mContext; field in class:DocumentClipper 52 mContext = context; 74 return uri != null && DocumentsContract.isDocumentUri(mContext, uri); 99 ContentResolver resolver = mContext.getContentResolver(); 103 if (itemUri != null && DocumentsContract.isDocumentUri(mContext, itemUri)) { 129 final ContentResolver resolver = mContext.getContentResolver();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
H A D | FlashlightTile.java | 85 MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); 93 return mContext.getString(R.string.quick_settings_flashlight_label); 113 state.contentDescription = mContext.getString( 128 state.contentDescription = mContext.getString(R.string.quick_settings_flashlight_label); 141 return mContext.getString(R.string.accessibility_quick_settings_flashlight_changed_on); 143 return mContext.getString(R.string.accessibility_quick_settings_flashlight_changed_off);
|
H A D | HotspotTile.java | 57 mAirplaneMode = new GlobalSetting(mContext, mHandler, Global.AIRPLANE_MODE_ON) { 106 MetricsLogger.action(mContext, getMetricsCategory(), !isEnabled); 112 return mContext.getString(R.string.quick_settings_hotspot_label); 117 state.label = mContext.getString(R.string.quick_settings_hotspot_label); 150 return mContext.getString(R.string.accessibility_quick_settings_hotspot_changed_on); 152 return mContext.getString(R.string.accessibility_quick_settings_hotspot_changed_off);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | HybridGroupManager.java | 42 private final Context mContext; field in class:HybridGroupManager 47 mContext = ctx; 52 LayoutInflater inflater = mContext.getSystemService(LayoutInflater.class); 60 LayoutInflater inflater = mContext.getSystemService(LayoutInflater.class); 110 String text = mContext.getResources().getString( 115 String contentDescription = String.format(mContext.getResources().getQuantityString(
|
/frameworks/base/services/print/java/com/android/server/print/ |
H A D | RemotePrintServiceRecommendationService.java | 53 private @NonNull final Context mContext; field in class:RemotePrintServiceRecommendationService 84 List<ResolveInfo> installedServices = mContext.getPackageManager() 100 ApplicationInfo appInfo = mContext.getPackageManager() 135 mContext = context; 142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, 171 mContext.unbindService(mConnection);
|
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/ |
H A D | PreloadAppsInstaller.java | 52 private final Context mContext; field in class:PreloadAppsInstaller 62 mContext = context; 70 AppInstallCounter counter = new AppInstallCounter(mContext, userId); 151 private final Context mContext; field in class:PreloadAppsInstaller.AppInstallCounter 155 mContext = context; 172 Settings.Secure.putStringForUser(mContext.getContentResolver(),
|
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/ |
H A D | NotificationTests.java | 251 (NotificationManager) mContext.getSystemService(Context.NOTIFICATION_SERVICE); 257 final Notification n = makeBigTextNotification(mContext, 0, bigtextId, System.currentTimeMillis()); 266 mNotifications.add(makeUploadNotification(mContext, 0, uploadWhen)); 272 = FullScreenActivity.getPendingIntent(mContext, phoneId); 274 Notification phoneCall = new Notification.Builder(mContext) 277 .setLargeIcon(getBitmap(mContext, R.drawable.matias_hed)) 284 ToastService.getPendingIntent(mContext, "Clicked on Answer")) 286 ToastService.getPendingIntent(mContext, "Clicked on Ignore")) 296 final Notification n = new Notification.Builder(mContext) 299 .setContentIntent(ToastService.getPendingIntent(mContext, "Clicke [all...] |
/frameworks/base/tools/aapt2/test/ |
H A D | Context.h | 76 std::unique_ptr<Context> mContext = std::unique_ptr<Context>(new Context()); member in class:aapt::test::ContextBuilder 80 mContext->mCompilationPackage = package.toString(); 85 mContext->mPackageId = id; 90 mContext->mNameMangler = NameMangler(policy); 95 mContext->getExternalSymbols()->appendSource(std::move(src)); 100 return std::move(mContext);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | WifiApConfigStoreTest.java | 53 @Mock Context mContext; field in class:WifiApConfigStoreTest 70 when(mContext.getResources()).thenReturn(resources); 120 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 138 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 158 mContext, mBackupManagerProxy, mApConfigFile.getPath()); 173 mContext, mBackupManagerProxy, mApConfigFile.getPath());
|
/frameworks/opt/setupwizard/library/eclair-mr1/test/src/com/android/setupwizardlib/test/ |
H A D | SwitchItemTest.java | 166 ViewGroup root = new FrameLayout(mContext); 168 TextView titleView = new TextView(mContext); 172 TextView summaryView = new TextView(mContext); 176 FrameLayout iconContainer = new FrameLayout(mContext); 180 ImageView iconView = new ImageView(mContext); 184 mSwitch = new SwitchCompat(mContext);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
H A D | GSMTestHandler.java.broken | 42 private Context mContext; 49 mContext = context; 55 mGSMPhone = new GSMPhone(mContext, sc, new TestPhoneNotifier(), true);
|
/frameworks/support/documents-archive/tests/src/android/support/provider/ |
H A D | IntegrationTest.java | 66 final Cursor cursor = mContext.getContentResolver().query( 75 final Cursor cursor = mContext.getContentResolver().query( 87 final Cursor cursor = mContext.getContentResolver().query( 111 mContext.getContentResolver().query( 124 assertEquals("text/plain", mContext.getContentResolver().getType( 130 final ParcelFileDescriptor descriptor = mContext.getContentResolver().openFileDescriptor(
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AccountViewAdapter.java | 30 private Context mContext; field in class:AccountViewAdapter 40 mContext = context; 68 view = new AccountItemView(mContext);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
H A D | ActionBarContainerTest.java | 34 mActionBarContainer = new ActionBarContainer(mContext); 38 TestViewGroup viewGroup = new TestViewGroup(mContext); 58 TestViewGroup viewGroup = new TestViewGroup(mContext);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
H A D | MediaMimeTest.java | 50 private Context mContext; field in class:MediaMimeTest 60 mContext = getActivity(); 121 return mContext.getPackageManager().resolveActivity(
|