/cts/tests/src/android/widget/cts/ |
GalleryStubActivity.java | 46 mContext = c; 62 ImageView i = new ImageView(mContext); 72 private Context mContext;
|
/cts/tests/tests/app/src/android/app/cts/ |
NotificationManagerTest.java | 37 mNotificationManager = (NotificationManager) mContext.getSystemService( 75 final PendingIntent pendingIntent = PendingIntent.getActivity(mContext, 0, intent, 0); 76 notification.setLatestEventInfo(mContext, "notify#" + id, "This is #" + id
|
/cts/tests/tests/os/src/android/os/cts/ |
CountDownTimerTest.java | 27 private Context mContext; 35 mContext = getInstrumentation().getTargetContext(); 36 Intent intent = new Intent(mContext, CountDownTimerTestStub.class);
|
RecoverySystemTest.java | 42 mAssets = mContext.getAssets(); 47 FileOutputStream fos = mContext.openFileOutput(name, 0); 56 return mContext.getFileStreamPath(name);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoWakeLockPermissionTest.java | 39 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 50 final WifiManager wifiManager = (WifiManager) mContext.getSystemService( 69 mediaPlayer.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK);
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_StreamItemPhotosTest.java | 38 mResolver = mContext.getContentResolver(); 48 byte[] photoData = PhotoUtil.getTestPhotoData(mContext); 63 byte[] photoData = PhotoUtil.getTestPhotoData(mContext);
|
/cts/tests/tests/security/src/android/security/cts/ |
BrowserTest.java | 45 mWebServer = new CtsTestServer(mContext); 76 mContext.startActivity(i); 77 mContext.startActivity(i); 121 mContext.startActivity(i); 168 FileOutputStream out = mContext.openFileOutput(filename, 169 mContext.MODE_WORLD_READABLE); 175 String filepath = mContext.getFileStreamPath(filename).getAbsolutePath(); 179 mContext.startActivity(intent); 203 FileOutputStream out = mContext.openFileOutput("target.txt", 204 mContext.MODE_WORLD_READABLE) [all...] |
/cts/tests/tests/view/src/android/view/animation/cts/ |
AlphaAnimationTest.java | 33 XmlResourceParser parser = mContext.getResources().getAnimation(R.anim.alpha); 35 new AlphaAnimation(mContext, attrs); 41 AlphaAnimation animation = new AlphaAnimation(mContext, null);
|
/cts/tests/tests/view/src/android/view/cts/ |
ViewGroup_LayoutParamsTest.java | 40 XmlResourceParser parser = mContext.getResources().getLayout( 44 new ViewGroup.LayoutParams(mContext, parser); 55 TypedArray array = mContext.getTheme().obtainStyledAttributes(R.style.Whatever, attrs);
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
List5.java | 45 mContext = context; 73 tv = (TextView) LayoutInflater.from(mContext).inflate( 82 private Context mContext;
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
AwContentsClientGetDefaultVideoPosterTest.java | 31 private Context mContext; 34 mContext = context; 52 mContext.getAssets().open("asset_icon.png"));
|
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
ResourceExtractor.java | 62 deleteFiles(mContext); 65 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); 101 AssetManager manager = mContext.getResources().getAssets(); 157 deleteFiles(mContext); 187 PackageManager pm = mContext.getPackageManager(); 191 pi = pm.getPackageInfo(mContext.getPackageName(), 0); 224 private final Context mContext; 265 mContext = context; 266 mOutputDir = getOutputDirFromContext(mContext); 280 deleteFiles(mContext); [all...] |
/frameworks/base/core/java/android/speech/tts/ |
AudioPlaybackQueueItem.java | 28 private final Context mContext; 41 mContext = context; 54 mPlayer = MediaPlayer.create(mContext, mUri);
|
/frameworks/base/core/java/android/transition/ |
TransitionInflater.java | 44 private Context mContext; 47 mContext = context; 66 XmlResourceParser parser = mContext.getResources().getXml(resource); 95 XmlResourceParser parser = mContext.getResources().getXml(resource); 138 TypedArray a = mContext.obtainStyledAttributes(attrs, 158 TypedArray a = mContext.obtainStyledAttributes(attrs, 208 TypedArray a = mContext.obtainStyledAttributes(attrs, 231 mContext.obtainStyledAttributes(attrs, com.android.internal.R.styleable.Transition); 243 transition.setInterpolator(AnimationUtils.loadInterpolator(mContext, resID)); 283 TypedArray a = mContext.obtainStyledAttributes(attrs [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
ListWithFooterViewAndNewLabels.java | 74 private final Context mContext; 78 mContext = context; 97 mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
|
/frameworks/base/services/java/com/android/server/am/ |
BatteryStatsService.java | 53 Context mContext; 62 mContext = context; 64 mStats.setNumSpeedSteps(new PowerProfile(mContext).getNumSpeedSteps()); 65 mStats.setRadioScanningTimeout(mContext.getResources().getInteger( 96 mContext.enforceCallingPermission( 313 adapter.getProfileProxy(mContext, mBluetoothProfileServiceListener, 477 mContext.enforceCallingOrSelfPermission( 483 mContext.enforceCallingOrSelfPermission( 492 mContext.enforcePermission(android.Manifest.permission.UPDATE_DEVICE_STATS, 509 if (mContext.checkCallingOrSelfPermission(android.Manifest.permission.DUMP [all...] |
/frameworks/base/services/java/com/android/server/location/ |
FusedLocationHardwareSecure.java | 31 private final Context mContext; 39 mContext = context; 44 mContext.enforceCallingPermission(
|
GeocoderProxy.java | 39 private final Context mContext; 57 mContext = context; 59 mServiceWatcher = new ServiceWatcher(mContext, TAG, SERVICE_ACTION, overlaySwitchResId,
|
/frameworks/compile/libbcc/include/bcc/ |
Source.h | 32 BCCContext &mContext; 63 { return mContext; } 65 { return mContext; }
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/ |
GSMTestHandler.java | 42 private Context mContext; 49 mContext = context; 55 mGSMPhone = new GSMPhone(mContext, sc, new TestPhoneNotifier(), true);
|
/packages/apps/Contacts/src/com/android/contacts/detail/ |
PhotoSelectionHandler.java | 67 protected final Context mContext; 79 mContext = context; 83 mCroppedPhotoUri = ContactPhotoUtils.generateTempCroppedImageUri(mContext); 101 mContext, mPhotoView, listener, mPhotoMode); 136 mContext.getContentResolver().delete(mTempPhotoUri, null, null); 164 ContactPhotoUtils.savePhotoFromUriToUri(mContext, uri, 186 return mState.indexOfFirstWritableRawContact(mContext); 218 final AccountType accountType = AccountTypeManager.getInstance(mContext).getAccountType( 244 Toast.makeText(mContext, R.string.photoPickerNotFoundText, Toast.LENGTH_LONG).show(); 276 Cursor c = mContext.getContentResolver().query(DisplayPhoto.CONTENT_MAX_DIMENSIONS_URI [all...] |
/packages/apps/Email/src/com/android/email/ |
ResourceHelper.java | 31 private final Context mContext; 39 mContext = context.getApplicationContext(); 40 mResources = mContext.getResources();
|
/packages/apps/Email/src/com/android/email/mail/store/ |
ServiceStore.java | 41 mContext = context; 42 mHostAuth = account.getOrCreateHostAuthRecv(mContext); 53 return EmailServiceUtils.getService(mContext, mHostAuth.mProtocol);
|
/packages/apps/Email/src/com/android/email/service/ |
PolicyService.java | 34 private Context mContext; 51 SecurityPolicy.setAccountHoldFlag(mContext, accountId, newState); 83 mContext = this;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
ProcessingTaskController.java | 30 private Context mContext; 66 mContext = context; 86 return mContext;
|