/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
MailboxUtilities.java | 69 // An example of a mailbox with a null serverId would be an Outbox that we create locally 71 if (parentServerId != null) { 75 accountSelector, selectionArgs, null); 76 if (childCursor == null) return; 84 childValues, null, null); local 92 LogUtils.w(Logging.LOG_TAG, "Mailbox with null serverId: " + 99 parentValues, null, null); local 113 new String[] {serverId}, null); 172 ContentUris.withAppendedId(Account.CONTENT_URI, account.mId), cv, null, null); local 271 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null, local 272 null); local [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
MtpClient.java | 82 if (mtpDevice == null) { 85 if (mtpDevice != null) { 91 if (mtpDevice != null) { 105 if (mtpDevice == null) { 108 if (mtpDevice != null) { 197 if (connection != null) { 212 return null; 252 * @return the MtpDevice, or null if it does not exist 265 * @return the MtpDevice, or null if it does not exist 283 if (mDevices.get(usbDevice.getDeviceName()) == null) { [all...] |
DecodeUtils.java | 62 if (options == null) options = new Options(); 66 BitmapFactory.decodeFileDescriptor(fd, null, options)); 71 Utils.assertTrue(options != null); 74 BitmapFactory.decodeFileDescriptor(fd, null, options); 84 if (options == null) options = new Options(); 93 Utils.assertTrue(options != null); 102 FileInputStream fis = null; 109 return null; 117 if (options == null) options = new Options(); 121 BitmapFactory.decodeFileDescriptor(fd, null, options) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
UserDictionarySettings.java | 60 UserDictionary.Words.LOCALE + " is null"; 65 + "=? AND " + UserDictionary.Words.SHORTCUT + " is null OR " 93 null == intent ? null : intent.getStringExtra("locale"); 97 null == arguments ? null : arguments.getString("locale"); 100 if (null != localeFromArguments) { 102 } else if (null != localeFromIntent) { 105 locale = null; 128 // - null. This means we want a cursor for the current locale, whatever this is 199 args, R.string.user_dict_settings_add_dialog_title, null, null, 0); local [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
AttachmentsView.java | 60 this(context, null); 82 if (imm != null) { 136 if (mChangeListener != null) { 146 if (mChangeListener != null) { 218 if (contentUri == null || TextUtils.isEmpty(contentUri.getPath())) { 222 if (contentType == null) contentType = ""; 225 attachment.uri = null; // URI will be assigned by the provider upon send/save 226 attachment.setName(null); 231 Cursor metadataCursor = null; 235 null, null, null) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
ElementTest.java | 29 DataKind.PIXEL_A) != null); 32 DataKind.PIXEL_RGB) != null); 35 DataKind.PIXEL_RGB) != null); 38 DataKind.PIXEL_RGBA) != null); 41 DataKind.PIXEL_RGBA) != null); 44 DataKind.PIXEL_RGBA) != null); 49 Element e = null; 51 assertTrue(Element.createVector(mRS, DataType.FLOAT_32, len) != null); 52 assertTrue(Element.createVector(mRS, DataType.FLOAT_64, len) != null); 53 assertTrue(Element.createVector(mRS, DataType.SIGNED_8, len) != null); [all...] |
/libcore/luni/src/test/java/tests/api/java/util/ |
VectorTest.java | 125 new Vector(null); 145 tVector.add(50, null); 146 assertNull("Failed to add null", tVector.get(50)); 147 assertTrue("Failed to fix-up existing indices after adding null", 152 tVector.add(-5, null); 159 tVector.add(tVector.size() + 1, null); local 176 tVector.add(null); 177 assertNull("Failed to add null", tVector.lastElement()); 207 l.add(null); 209 l.add(null); 233 tVector.addAll(tVector.size() \/ 2, null); local 271 tVector.addAll(tVector.size() \/ 2, null); local [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
SimpleCursorAdapterTest.java | 110 TextView listItem = (TextView) mSimpleCursorAdapter.newView(mContext, null, null); 114 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 118 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 127 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 135 mSimpleCursorAdapter.bindView(listItem, null, mCursor); 142 LinearLayout illegalView = (LinearLayout)mSimpleCursorAdapter.newView(mContext, null, null); 145 mSimpleCursorAdapter.bindView(illegalView, null, mCursor); 163 mSimpleCursorAdapter.setViewBinder(null); [all...] |
/frameworks/base/media/java/android/media/ |
ThumbnailUtils.java | 86 * @return Bitmap, or null on failures 99 Bitmap bitmap = null; 101 if (fileType != null && fileType.fileType == MediaFile.FILE_TYPE_JPEG) { 106 if (bitmap == null) { 107 FileInputStream stream = null; 114 BitmapFactory.decodeFileDescriptor(fd, null, options); 117 return null; 125 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); 132 if (stream != null) { 152 * Create a video thumbnail for a video. May return null if the video i [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardViewManager.java | 88 mKeyguardHost.setCustomBackground(bmp != null ? 89 new BitmapDrawable(mContext.getResources(), bmp) : null); 90 updateShowWallpaper(bmp == null); 163 if (mCustomBackground != null) { 199 if (d != null) { 207 if (mCustomBackground == null) return; // Nothing to do 236 maybeCreateKeyguardLocked(shouldEnableScreenRotation(), true, null); local 244 if (mKeyguardView != null) { 267 if (mKeyguardHost != null) { 271 if (mKeyguardHost == null) { [all...] |
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
ParserAdapter.java | 118 * is null. 131 * is null. 135 if (parser == null) { 137 NullPointerException("Parser argument must not be null"); 284 * @return The current entity resolver, or null if none was supplied. 308 * @return the current DTD handler, or null if none was supplied 332 * @return The current content handler, or null if none was supplied. 356 * @return The current error handler, or null if none was supplied. 427 if (contentHandler != null) { 444 if (contentHandler != null) { [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetService.java | 86 if (mStateMachine != null) { 127 mService = null; 134 return null; 137 if (mService != null && mService.isAvailable()) { 140 return null; 145 if (service == null) return false; 151 if (service == null) return false; 157 if (service == null) return new ArrayList<BluetoothDevice>(0); 163 if (service == null) return new ArrayList<BluetoothDevice>(0); 169 if (service == null) return BluetoothProfile.STATE_DISCONNECTED [all...] |
/packages/apps/Camera2/src/com/android/camera/crop/ |
ImageLoader.java | 67 String ret = null; 68 if (postfix != null) { 76 new String[]{MediaStore.Images.Media.DATA}, null, null, null); 77 if (cursor == null) { 78 return null; 90 if (uri == null || context == null) { 95 Cursor cursor = null; [all...] |
/frameworks/base/core/java/android/app/ |
Activity.java | [all...] |
/frameworks/base/core/java/android/view/ |
ViewPropertyAnimator.java | 98 private Animator.AnimatorListener mListener = null; 103 private ValueAnimator.AnimatorUpdateListener mUpdateListener = null; 191 if ((mPropertyMask & propertyConstant) != 0 && mNameValuesHolder != null) { 282 if (mTempValueAnimator == null) { 350 if (mTempValueAnimator == null) { 364 * <code>null</code> removes any existing listener. 383 * <code>null</code> removes any existing listener. 704 mView.setLayerType(View.LAYER_TYPE_HARDWARE, null); 714 mView.setLayerType(currentLayerType, null); 717 if (mAnimatorSetupMap == null) { [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
KeySetManager.java | 86 if (pkg == null) { 89 if (pkg.keySetData == null) { 104 if ((packageName == null) || (keys == null) || (alias == null)) { 105 //Log.d(TAG, "Got null argument for a defined keyset, ignoring!"); 111 if (pkg == null) { 125 if ((packageName == null) || (signingKeys == null)) { 126 //Log.d(TAG, "Got null argument for a signing keyset, ignoring!") [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
GcSnapshot.java | 68 private AffineTransform mTransform = null; 70 private Area mClip = null; 74 * If this is null, this does not mean there's no layer, just that the snapshot is not the 128 mBitmap = null; 133 /** The Graphics2D, guaranteed to be non null */ 138 /** The BufferedImage, guaranteed to be non null */ 153 if (mBitmap != null) { 170 if (mBitmap != null) { 185 mGraphics.setClip(null); 202 * If <var>bitmap</var> is null, then {@link GcSnapshot#setBitmap(Bitmap_Delegate)} must b 272 assert previous != null; local 337 null); local 503 assert area != null; local 693 null); local 725 assert shaderPaint != null; local 759 assert composite != null; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
RichInputConnection.java | 83 mIC = null; 98 if (null == et || null == beforeCursor) return; 122 if (null != mIC) { 138 if (--mNestLevel == 0 && null != mIC) { 167 final CharSequence textBeforeCursor = null == mIC ? null : 169 if (null == textBeforeCursor) { 187 if (null != mIC && shouldFinishComposition) { 209 if (null != mIC) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
ViewHierarchy.java | 73 * This <em>can</em> be null to indicate we're dealing with an empty document with 74 * no root node. Null here does not mean the result was invalid, merely that the XML 86 * Note that an empty document (with a null {@link #mLastValidViewInfoRoot}) is considered 130 if (mSession != null) { 132 mSession = null; 155 if (mSession != null) { 160 mIsResultValid = (session != null && session.getResult().isSuccess()); 163 if (mIsResultValid && session != null) { 166 Pair<CanvasViewInfo,List<Rectangle>> infos = null; 168 if (rootList == null || rootList.size() == 0) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
VectorTest.java | 137 tVector.add(50, null); 138 assertNull("Failed to add null", tVector.get(50)); 139 assertTrue("Failed to fix-up existing indices after adding null", 154 tVector.add(null); 155 assertNull("Failed to add null", tVector.lastElement()); 185 l.add(null); 187 l.add(null); 189 assertNull("Wrong element at position 50--wanted null", 193 assertNull("Wrong element at position 52--wanted null", 197 v.addAll(0, null); 1034 tVector.set(tVector.size(), null); local [all...] |
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
AbstractQueuedLongSynchronizer.java | 98 * updated "tail" when a node's successor appears to be null. 133 static final Node EXCLUSIVE = null; 202 * so seeing a null next field does not necessarily mean that 204 * to be null, we can scan prev's from the tail to 206 * point to the node itself instead of null, to make life 237 * Returns previous node, or throws NullPointerException if null. 238 * Use when predecessor cannot be null. The null check could 245 if (p == null) 335 if (t == null) { // Must initializ [all...] |
AbstractQueuedSynchronizer.java | 138 * non-null and not the current thread. Further variations are 201 * setExclusiveOwnerThread(null); 328 * updated "tail" when a node's successor appears to be null. 363 static final Node EXCLUSIVE = null; 432 * so seeing a null next field does not necessarily mean that 434 * to be null, we can scan prev's from the tail to 436 * point to the node itself instead of null, to make life 467 * Returns previous node, or throws NullPointerException if null. 468 * Use when predecessor cannot be null. The null check coul [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
AdapterService.java | 97 if (sAdapterService != null && !sAdapterService.mCleaningUp) { 102 if (sAdapterService == null) { 108 return null; 112 if (instance != null && !instance.mCleaningUp) { 117 if (sAdapterService == null) { 127 sAdapterService = null; 172 if (binder != null) { 195 if (prevState != null && prevState != state) { 326 if (mCallbacks !=null) { 349 if (mAdapterStateMachine != null) { [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseUtilsTest.java | 61 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 99 expected = "address=NULL"; 101 DatabaseUtils.appendValueToSql(sb, null); 117 null, null, null, null, null); 129 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null) [all...] |
/packages/apps/Calendar/src/com/android/calendar/event/ |
EditEventFragment.java | 163 if (cursor == null) { 170 if (activity == null || activity.isFinishing()) { 210 mHandler.startQuery(TOKEN_ATTENDEES, null, attUri, 213 whereArgs /* selection args */, null /* sort order */); 219 if (mModel.mHasAlarm && mReminders == null) { 224 mHandler.startQuery(TOKEN_REMINDERS, null, rUri, 227 remArgs /* selection args */, null /* sort order */); 229 if (mReminders == null) { 230 // mReminders should not be null. 245 mHandler.startQuery(TOKEN_CALENDARS, null, Calendars.CONTENT_URI [all...] |