/libcore/luni/src/main/java/java/net/ |
CookieStoreImpl.java | 31 /** this map may have null keys! */ 35 if (cookie == null) { 36 throw new NullPointerException("cookie == null"); 41 if (cookies == null) { 51 if (uri == null) { 52 return null; 55 return new URI("http", uri.getHost(), null, null); 62 if (uri == null) { 63 throw new NullPointerException("uri == null"); [all...] |
Inet6Address.java | 39 new Inet6Address(new byte[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, null, 0); 83 * if the address is null or has an invalid length. 87 if (addr == null || addr.length != 16) { 111 * if the address is {@code null} or has an invalid length or 120 // if nif is null, nothing needs to be set. 121 if (nif == null) { 235 * network interface, null otherwise. 239 return (scope_ifname_set && ifname != null) ? NetworkInterface.getByName(ifname) : null; 241 return null; [all...] |
MulticastSocket.java | 60 * {@code localAddress}, or an unbound {@code MulticastSocket} if {@code localAddress == null}. 79 if (setAddress != null) { 87 if (theInterface != null) { 89 if (addresses != null) { 178 * if {@code groupAddr} is {@code null}. 198 * if {@code groupAddress} is {@code null}. 207 if (groupAddress == null) { 208 throw new IllegalArgumentException("groupAddress == null"); 211 if (netInterface != null && !netInterface.getInetAddresses().hasMoreElements()) { 221 if (groupAddr == null) { [all...] |
/libcore/luni/src/main/java/java/security/ |
SecureRandom.java | 90 if (service == null) { 91 this.provider = null; 97 this.secureRandomSpi = (SecureRandomSpi)service.newInstance(null); 150 * if {@code algorithm} is {@code null}. 153 if (algorithm == null) { 154 throw new NullPointerException("algorithm == null"); 156 Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); 176 * if {@code algorithm} is {@code null}. 177 * @throws IllegalArgumentException if {@code provider == null || provider.isEmpty()} 181 if (provider == null || provider.isEmpty()) [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
CountedCompleter.java | 49 * will always return {@code null} as a result value. In other cases, 60 * one for which {@link #getCompleter} returns {@code null}) can be 109 * new ForEach<E>(null, array, op, 0, array.length).invoke(); 206 * while (result.get() == null && h >= l) { 215 * if (matches(x) && result.compareAndSet(null, x)) 225 * return new Searcher<E>(null, array, new AtomicReference<E>(), 0, array.length).invoke(); 232 * conditional ({@code if (result.get() == null) tryComplete();}) 283 * if (sib == null || sib.result == null) 292 * return new MapReducer<E>(null, array, mapper, reducer [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
SealedObject.java | 51 * or null if the cipher did not use any parameters. 77 * the object to seal, can be {@code null}. 87 * if the cipher is {@code null}. 91 if (c == null) { 92 throw new NullPointerException("c == null"); 100 this.encodedParams = (ap == null) ? null : ap.getEncoded(); 101 this.paramsAlg = (ap == null) ? null : ap.getAlgorithm(); 119 if (so == null) { [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
IssuingDistributionPoint.java | 104 if (encoding == null) { 112 if (distributionPoint != null) { 117 if (onlySomeReasons != null) { 151 if (values[1] != null) { 154 if (values[2] != null) { 157 if (values[4] != null) { 160 if (values[5] != null) { 169 values[1] = (idp.onlyContainsUserCerts) ? Boolean.TRUE : null; 170 values[2] = (idp.onlyContainsCACerts) ? Boolean.TRUE : null; 172 values[4] = (idp.indirectCRL) ? Boolean.TRUE : null; [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
TrustManagerFactorySpiTest.java | 59 KeyStore ks = null; 62 ks.load(null, null); 70 tmf.init((KeyStore) null); 86 Parameters pr = null; 89 ks.load(null, null); 98 tmf.init((ManagerFactoryParameters) null); 117 ks.load(null, null); [all...] |
/packages/apps/Browser/tests/src/com/android/browser/tests/ |
BP2ProviderTests.java | 60 doTestIsValidParent(null, null); 86 PROJECTION, null, null, null); 105 PROJECTION, null, null, null); 125 PROJECTION, null, null, null) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
LocationManager.java | 52 if (!mRecordLocation) return null; 57 if (l != null) return l; 60 return null; 75 if (mLocationManager == null) { 79 if (mLocationManager != null) { 97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); 108 if (mLocationManager != null) { 118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); 141 if (mListener != null && mRecordLocation && 168 if (mListener != null && mRecordLocation & [all...] |
/packages/apps/Camera2/src/com/android/camera/ |
LocationManager.java | 52 if (!mRecordLocation) return null; 57 if (l != null) return l; 60 return null; 75 if (mLocationManager == null) { 79 if (mLocationManager != null) { 97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); 108 if (mLocationManager != null) { 118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); 141 if (mListener != null && mRecordLocation && 168 if (mListener != null && mRecordLocation & [all...] |
/packages/apps/Contacts/src/com/android/contacts/list/ |
JoinContactListFragment.java | 60 new String[] { Contacts.DISPLAY_NAME }, null, null, null); 65 if (adapter != null) { 78 if (data != null && data.moveToFirst()) { 111 getLoaderManager().initLoader(DISPLAY_NAME_LOADER, null, mLoaderCallbacks); 116 null, mLoaderCallbacks); 153 return inflater.inflate(R.layout.join_contact_picker_list_content, null); 159 if (contactUri != null) mListener.onPickContactAction(contactUri); 165 if (contactUri != null) mListener.onPickContactAction(contactUri) [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
ImageViewDrawableSetter.java | 79 mCompressed = null; 80 mPreviousDrawable = null; 89 if (mPreviousDrawable == null) { 92 } else if (mPreviousDrawable != null && Arrays.equals(mCompressed, compressed)) { 100 final Drawable newDrawable = (compressed == null) 108 if (newDrawable == null) return previousBitmap(); 110 if (mPreviousDrawable == null || mDurationInMillis == 0) { 131 return (mPreviousDrawable == null) ? null 132 : mPreviousDrawable instanceof LetterTileDrawable ? null [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/list/ |
PhoneFavoritesTileAdapterTest.java | 116 mAdapter = new PhoneFavoritesTileAdapter(getContext(), null, null, 2, 2); 121 return new PhoneFavoritesTileAdapter(getContext(), null, 141 c.addRow(new Object[] {countId, null, 1, null, null, 0, 0, null, 0, 148 c.addRow(new Object[] {countId, null, 0, null, null, 0, 0, null, 0 [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/ |
ThreadPool.java | 104 return submit(job, null); 127 T result = null; 145 if (mListener != null) mListener.onFutureDone(this); 153 if (mWaitOnResource != null) { 158 if (mCancelListener != null) { 196 if (mIsCancelled && mCancelListener != null) { 205 if (rc != null) releaseResource(rc); 210 if (rc != null) { 226 return null; 234 mWaitOnResource = null; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
CategoryPanel.java | 57 if (mAdapter != null) { 65 if (mAdapter != null) { 73 if (mAdapter != null) { 80 if (mAdapter != null) { 87 if (mAdapter != null) { 109 if (savedInstanceState != null) { 117 if (mAdapter != null) { 122 } else if (mAdapter != null) { 129 if (mAddButton != null) { 147 if (mAddButton == null) { [all...] |
/packages/apps/Gallery2/src/com/android/photos/ |
SelectionManager.java | 52 if (mCachedShareableUris == null) return null; 75 private ArrayList<Uri> mCachedShareableUris = null; 82 mCachedShareableUris = null; 113 mShareIntent.setAction(null).setType(null); 117 mShareIntent.setAction(null).setType(null); 180 mCachedShareableUris = null; 182 mShareIntent.setAction(null).setType(null) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ |
LocationManager.java | 52 if (!mRecordLocation) return null; 57 if (l != null) return l; 60 return null; 75 if (mLocationManager == null) { 79 if (mLocationManager != null) { 97 if (mListener != null) mListener.showGpsOnScreenIndicator(false); 108 if (mLocationManager != null) { 118 if (mListener != null) mListener.hideGpsOnScreenIndicator(); 141 if (mListener != null && mRecordLocation && 168 if (mListener != null && mRecordLocation & [all...] |
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsMessageSender.java | 60 if (dests != null) { 66 mDests = null; 80 if ((mMessageText == null) || (mNumberOfDests == 0)) { 82 throw new MmsException("Null message body or dest."); 97 mMessageText, null, mTimestamp, 110 null, 127 * Otherwise, return null. 130 Cursor cursor = null; 135 "thread_id = " + threadId, null, "date DESC"); 137 if ((cursor == null) || !cursor.moveToFirst()) [all...] |
/packages/apps/Nfc/src/com/android/nfc/ndefpush/ |
NdefPushServer.java | 50 /** Protected by 'this', null when stopped, non-null when running */ 51 ServerThread mServerThread = null; 137 if (mServerSocket == null) { 151 if (serverSocket == null) return; 156 if (communicationSocket != null) { 171 if (mServerSocket != null) { 178 mServerSocket = null; 192 if (mServerSocket != null) { 198 mServerSocket = null; [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
CursorBackedSuggestionCursor.java | 36 /** The suggestions, or {@code null} if the suggestions query failed. */ 93 if (mCursor != null) { 114 if (mCursor == null) return 0; 201 if (action != null) return action; 217 if (data == null) { 221 if (data != null) { 223 if (id != null) { 247 if (mCursor == null) return -1; 261 * @return The string value, or {@code null}. 264 if (mCursor == null) return null [all...] |
/packages/apps/UnifiedEmail/src/com/android/bitmap/ |
ContiguousFIFOAggregator.java | 93 * @param callback the callback to notify when the key becomes the first expected key, or null. 96 if (key == null) { 97 throw new IllegalArgumentException("Do not use null keys."); 108 mTasks.put(hash, new Value(callback, null)); 126 if (key == null) { 127 throw new IllegalArgumentException("Do not use null keys."); 141 if (removedFirst && (second = mExpected.peek()) != null) { 166 if (value == null || task == null) { 167 if (task != null) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/service/ |
SearchParams.java | 62 mStartDate = null; 63 mEndDate = null; 69 mStartDate = null; 70 mEndDate = null; 88 if ((o == null) || !(o instanceof SearchParams)) { 148 if (mStartDate != null) { 151 if (mEndDate != null) { 167 if (dateWindow.get(0) != null) { 170 mStartDate = null; 172 if (dateWindow.get(1) != null) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
ComposeActivity.java | 175 private static SendOrSaveCallback sTestSendOrSaveCallback = null; 188 private static ConcurrentHashMap<Integer, Long> sRequestMessageIdMap = null; 236 private Handler mSendSaveTaskHandler = null; 284 private ContentValues mExtraValues = null; 302 launch(launcher, account, message, EDIT_DRAFT, null, null, null, null, 303 null /* extraValues */); 310 launch(launcher, account, null, COMPOSE, null, null, null, null, null /* extraValues */) 1370 addCcAddresses(Arrays.asList(extraStrings), null); local 1388 addCcAddresses(Arrays.asList(TextUtils.split(value, ",")), null); local 1487 addCcAddresses(Arrays.asList(cc.toArray(new String[cc.size()])), null); local [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
LockableFileWriter.java | 66 * @param fileName the file to write to, not null
67 * @throws NullPointerException if the file is null
71 this(fileName, false, null);
77 * @param fileName file to write to, not null
79 * @throws NullPointerException if the file is null
83 this(fileName, append, null);
89 * @param fileName the file to write to, not null
92 * @throws NullPointerException if the file is null
103 * @param file the file to write to, not null
104 * @throws NullPointerException if the file is null
[all...] |