/development/samples/MySampleRss/src/com/example/codelab/rssexample/ |
D | MyRssReader.java | 65 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu() 66 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu() 67 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu() 68 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu() 69 menu.add(0, 4, "Update All Feeds", null); in onCreateOptionsMenu() 85 showAlert(null, "You clicked 'start'!", "ok", null, false, null); in onOptionsItemSelected() 88 showAlert(null, "You clicked stop!", "ok", null, false, null); in onOptionsItemSelected() 91 showAlert(null, "You clicked 'Add'!", "ok", null, false, null); in onOptionsItemSelected() 94 showAlert(null, "You clicked 'Delete'!", "ok", null, false, null); in onOptionsItemSelected() 97 showAlert(null, "You clicked 'Update'!", "ok", null, false, null); in onOptionsItemSelected() [all …]
|
D | MyRssReader2.java | 34 private ArrayList<RssItem> mFeeds = null; 35 ListView mRssList = null; 51 if(mRssList == null){ in onCreate() 57 if(adap == null){ in onCreate() 60 if(mFeeds == null){ in onCreate() 69 if(savedInstanceState != null && savedInstanceState.containsKey("lastIndexItem")) in onCreate() 99 menu.add(0, 0, "Start RSS Service", null); in onCreateOptionsMenu() 100 menu.add(0, 1, "Stop RSS Service", null); in onCreateOptionsMenu() 101 menu.add(0, 2, "Add New Feed", null); in onCreateOptionsMenu() 102 menu.add(0, 3, "Delete Feed", null); in onCreateOptionsMenu() [all …]
|
D | MyRssReader4.java | 53 null, in onCreate() 54 null, in onCreate() 68 if(savedInstanceState != null && savedInstanceState.containsKey("lastIndexItem")){ in onCreate() 92 menu.add(0, 0, R.string.menu_option_start, null); in onCreateOptionsMenu() 93 menu.add(0, 1, R.string.menu_option_stop, null); in onCreateOptionsMenu() 94 menu.add(0, 2, R.string.menu_option_add, null); in onCreateOptionsMenu() 95 menu.add(0, 3, R.string.menu_option_delete, null); in onCreateOptionsMenu() 96 menu.add(0, 4, R.string.menu_option_update, null); in onCreateOptionsMenu() 114 showAlert(null, "You clicked 'start'!", "ok", null, false, null); in onOptionsItemSelected() 117 showAlert(null, "You clicked stop!", "ok", null, false, null); in onOptionsItemSelected() [all …]
|
D | MyRssReader3.java | 58 if(savedInstanceState != null && savedInstanceState.containsKey("lastIndexItem")) in onCreate() 82 menu.add(0, 0, R.string.menu_option_start, null); in onCreateOptionsMenu() 83 menu.add(0, 1, R.string.menu_option_stop, null); in onCreateOptionsMenu() 84 menu.add(0, 2, R.string.menu_option_add, null); in onCreateOptionsMenu() 85 menu.add(0, 3, R.string.menu_option_delete, null); in onCreateOptionsMenu() 86 menu.add(0, 4, R.string.menu_option_update, null); in onCreateOptionsMenu() 104 showAlert(null, "You clicked 'start'!", "ok", null, false, null); in onOptionsItemSelected() 107 showAlert(null, "You clicked stop!", "ok", null, false, null); in onOptionsItemSelected() 123 showAlert(null, "You clicked 'Update'!", "ok", null, false, null); in onOptionsItemSelected() 126 showAlert(null, "I have no idea what you clicked!", "ok", null, false, null); in onOptionsItemSelected()
|
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/ |
D | MidiPortConnector.java | 46 if (mConnection != null) { in close() 50 mConnection = null; in close() 52 if (mSourceDevice != null) { in close() 54 mSourceDevice = null; in close() 56 if (mDestinationDevice != null) { in close() 58 mDestinationDevice = null; in close() 98 destinationDeviceInfo, destinationPortIndex, null, null); in connectToDevicePort() 119 if (destinationDevice == null) { in connectToDevicePort() 122 if (listener != null) { in connectToDevicePort() 123 listener.onPortsConnected(null); in connectToDevicePort() [all …]
|
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/ |
D | MidiPortConnector.java | 46 if (mConnection != null) { in close() 50 mConnection = null; in close() 52 if (mSourceDevice != null) { in close() 54 mSourceDevice = null; in close() 56 if (mDestinationDevice != null) { in close() 58 mDestinationDevice = null; in close() 98 destinationDeviceInfo, destinationPortIndex, null, null); in connectToDevicePort() 119 if (destinationDevice == null) { in connectToDevicePort() 122 if (listener != null) { in connectToDevicePort() 123 listener.onPortsConnected(null); in connectToDevicePort() [all …]
|
/development/samples/ApiDemos/src/com/example/android/mmslib/pdu/ |
D | PduParser.java | 59 private ByteArrayInputStream mPduDataStream = null; 64 private PduHeaders mHeaders = null; 69 private PduBody mBody = null; 74 private static byte[] mTypeParam = null; 79 private static byte[] mStartParam = null; 111 if (mPduDataStream == null) { in parse() 112 return null; in parse() 117 if (null == mHeaders) { in parse() 119 return null; in parse() 128 return null; in parse() [all …]
|
D | PduPart.java | 110 private Map<Integer, Object> mPartHeader = null; 115 private Uri mUri = null; 120 private byte[] mPartData = null; 137 if(data == null) { in setData() 151 if(mPartData == null) { in getData() 152 return null; in getData() 164 if(mPartData != null){ in getDataLength() 197 if((contentId == null) || (contentId.length == 0)) { in setContentId() 242 if(charset == null) { in getCharset() 256 if(contentLocation == null) { in setContentLocation() [all …]
|
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/ |
D | BluetoothChatService.java | 106 if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;} in start() 109 if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;} in start() 114 if (mSecureAcceptThread == null) { in start() 118 if (mInsecureAcceptThread == null) { in start() 134 if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;} in connect() 138 if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;} in connect() 156 if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;} in connected() 159 if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;} in connected() 162 if (mSecureAcceptThread != null) { in connected() 164 mSecureAcceptThread = null; in connected() [all …]
|
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/ |
D | BluetoothChatService.java | 111 if (mConnectThread != null) { in start() 113 mConnectThread = null; in start() 117 if (mConnectedThread != null) { in start() 119 mConnectedThread = null; in start() 123 if (mSecureAcceptThread == null) { in start() 127 if (mInsecureAcceptThread == null) { in start() 146 if (mConnectThread != null) { in connect() 148 mConnectThread = null; in connect() 153 if (mConnectedThread != null) { in connect() 155 mConnectedThread = null; in connect() [all …]
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/ |
D | Card.java | 61 private String mTag = null; 63 private String mTitle = null; 64 private String mDescription = null; 66 private View mCardView = null; 67 private View mOverlayView = null; 68 private TextView mTitleView = null; 69 private TextView mDescView = null; 70 private View mActionAreaView = null; 72 private Animator mOngoingAnimator = null; 96 private CardProgress mCardProgress = null; [all …]
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/ |
D | RawContact.java | 208 final String userName = !contact.isNull("u") ? contact.getString("u") : null; in valueOf() 212 if ((userName == null) && (serverContactId <= 0)) { in valueOf() 217 final String firstName = !contact.isNull("f") ? contact.getString("f") : null; in valueOf() 218 final String lastName = !contact.isNull("l") ? contact.getString("l") : null; in valueOf() 219 final String cellPhone = !contact.isNull("m") ? contact.getString("m") : null; in valueOf() 220 final String officePhone = !contact.isNull("o") ? contact.getString("o") : null; in valueOf() 221 final String homePhone = !contact.isNull("h") ? contact.getString("h") : null; in valueOf() 222 final String email = !contact.isNull("e") ? contact.getString("e") : null; in valueOf() 223 final String status = !contact.isNull("s") ? contact.getString("s") : null; in valueOf() 224 final String avatarUrl = !contact.isNull("a") ? contact.getString("a") : null; in valueOf() [all …]
|
/development/samples/training/threadsample/src/com/example/android/threadsample/ |
D | PhotoView.java | 124 if (mThisView != null) { in showView() 130 if (localView != null) in showView() 139 setImageDrawable(null); in clearImage() 167 if (localView != null) { in onAttachedToWindow() 181 setImageURL(null, false, null); in onDetachedFromWindow() 187 if (localDrawable != null) in onDetachedFromWindow() 188 localDrawable.setCallback(null); in onDetachedFromWindow() 191 if (mThisView != null) { in onDetachedFromWindow() 193 mThisView = null; in onDetachedFromWindow() 197 this.mDownloadThread = null; in onDetachedFromWindow() [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
D | MonkeyActivityEvent.java | 73 iam.startActivityAsUserWithFeature(null, getPackageName(), null, intent, null, null, in injectEvent() 74 null, 0, 0, null, null, ActivityManager.getCurrentUser()); in injectEvent() 97 if (pm == null) { in getPackageName() 98 return null; in getPackageName() 101 return packages != null ? packages[0] : null; in getPackageName() 104 return null; in getPackageName()
|
D | MonkeySourceRandomScript.java | 30 private MonkeySourceScript mSetupSource = null; 36 private MonkeySourceScript mCurrentSource = null; 57 if (setupFileName != null) { in MonkeySourceRandomScript() 83 this(null, scriptFileNames, throttle, randomizeThrottle, random, profileWaitTime, in MonkeySourceRandomScript() 96 if (mCurrentSource == null) { in getNextEvent() 110 if (mCurrentSource != null) { in getNextEvent() 112 if (nextEvent == null) { in getNextEvent() 113 mCurrentSource = null; in getNextEvent() 117 return null; in getNextEvent() 128 if (mSetupSource != null) { in setVerbose() [all …]
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | ImageWorker.java | 77 if (data == null) { in loadImage() 81 BitmapDrawable value = null; in loadImage() 83 if (mImageCache != null) { in loadImage() 87 if (value != null) { in loadImage() 90 if (listener != null) { in loadImage() 120 loadImage(data, imageView, null); in loadImage() 203 if (bitmapWorkerTask != null) { in cancelWork() 222 if (bitmapWorkerTask != null) { in cancelPotentialWork() 224 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork() 244 if (imageView != null) { in getBitmapWorkerTask() [all …]
|
D | ImageFetcher.java | 101 mHttpDiskCache = null; in initHttpDiskCache() 113 if (mHttpDiskCache != null && !mHttpDiskCache.isClosed()) { in clearCacheInternal() 122 mHttpDiskCache = null; in clearCacheInternal() 133 if (mHttpDiskCache != null) { in flushCacheInternal() 150 if (mHttpDiskCache != null) { in closeCacheInternal() 154 mHttpDiskCache = null; in closeCacheInternal() 175 if (networkInfo == null || !networkInfo.isConnectedOrConnecting()) { in checkConnection() 194 FileDescriptor fileDescriptor = null; in processBitmap() 195 FileInputStream fileInputStream = null; in processBitmap() 205 if (mHttpDiskCache != null) { in processBitmap() [all …]
|
/development/samples/NotePad/src/com/example/android/notepad/ |
D | NoteEditor.java | 143 if (savedInstanceState != null) { in onCreate() 176 mUri = getContentResolver().insert(intent.getData(), null); in onCreate() 183 if (mUri == null) { in onCreate() 208 getLoaderManager().initLoader(LOADER_ID, null, this); in onCreate() 302 updateNote(text, null); in onStop() 332 Intent intent = new Intent(null, mUri); in onCreateOptionsMenu() 335 new ComponentName(this, NoteEditor.class), null, intent, 0, null); in onCreateOptionsMenu() 347 null, // No selection criteria are used, so no where columns are needed. in onPrepareOptionsMenu() 348 null, // No where columns are used, so no where values are needed. in onPrepareOptionsMenu() 349 null // No sort order is needed. in onPrepareOptionsMenu() [all …]
|
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/ |
D | RemotePlayer.java | 62 if (mCallback != null) { 76 logStatus("onSessionStatusChanged", sessionId, sessionStatus, null, null); 77 if (mCallback != null) { 132 mClient.play(item.getUri(), "video/mp4", null, 0, null, new ItemActionCallback() { in play() local 144 if (mCallback != null) { in play() 163 if (!mClient.hasSession() || item.getRemoteItemId() == null) { in getStatus() 172 mClient.getStatus(item.getRemoteItemId(), null, new ItemActionCallback() { in getStatus() local 186 if (update && mCallback != null) { in getStatus() 194 if (update && mCallback != null) { in getStatus() 210 mClient.pause(null, new SessionActionCallback() { in pause() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
D | ProxyDrawable.java | 45 if (mProxy != null) { in draw() 52 return mProxy != null ? mProxy.getIntrinsicWidth() : -1; in getIntrinsicWidth() 57 return mProxy != null ? mProxy.getIntrinsicHeight() : -1; in getIntrinsicHeight() 62 return mProxy != null ? mProxy.getOpacity() : PixelFormat.TRANSPARENT; in getOpacity() 67 if (mProxy != null) { in setFilterBitmap() 74 if (mProxy != null) { in setDither() 81 if (mProxy != null) { in setColorFilter() 88 if (mProxy != null) { in setAlpha() 95 if (mProxy != null && !mMutated && super.mutate() == this) { in mutate()
|
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
D | NetworkFragment.java | 61 if (networkFragment == null) { in getInstance() 90 mCallback = null; in onDetach() 113 if (mDownloadTask != null) { in cancelDownload() 115 mDownloadTask = null; in cancelDownload() 146 if (mCallback != null) { in onPreExecute() 148 if (networkInfo == null || !networkInfo.isConnected() || in onPreExecute() 152 mCallback.updateFromDownload(null); in onPreExecute() 163 Result result = null; in doInBackground() 164 if (!isCancelled() && urls != null && urls.length > 0) { in doInBackground() 169 if (resultString != null) { in doInBackground() [all …]
|
/development/apps/Development/src/com/android/development/ |
D | AppHwPref.java | 64 if(pkgName == null) { in onCreate() 73 pInfo = null; in onCreate() 75 if(pInfo == null) { in onCreate() 82 if(appHwPref != null) { in onCreate() 94 if(appHwPref == null) { in displayFlag() 122 if(displayStr != null) { in displayTextView() 128 if((config == null) || (config.length < 1)) { in displayTextView() 134 String str = null; in displayTextView() 149 if(str != null) { in displayTextView() 167 if(appHwPref == null) { in getTouchScreenStr() [all …]
|
D | CacheAbuser.java | 72 FileOutputStream fos = null; in doInBackground() 85 if (fos != null) { in doInBackground() 93 return null; in doInBackground() 106 if (mInternalAbuseTask == null) { in onCreate() 117 if (mInternalAbuseTask == null) { in onCreate() 128 if (mExternalAbuseTask == null) { in onCreate() 139 if (mExternalAbuseTask == null) { in onCreate() 170 if (mInternalAbuseTask != null) { in stopAbuse() 172 mInternalAbuseTask = null; in stopAbuse() 174 if (mExternalAbuseTask != null) { in stopAbuse() [all …]
|
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/core/ |
D | VoicemailProviderHelpers.java | 114 return mContentResolver.update(uri, values, null, null); in update() 120 setVoicemailContent(voicemailUri, null, inputStream, mimeType); in setVoicemailContent() 126 setVoicemailContent(voicemailUri, inputBytes, null, mimeType); in setVoicemailContent() 131 if (inputBytes != null && inputStream != null) { in setVoicemailContent() 137 OutputStream outputStream = null; in setVoicemailContent() 140 if (inputBytes != null) { in setVoicemailContent() 142 } else if (inputStream != null) { in setVoicemailContent() 152 int updatedCount = mContentResolver.update(voicemailUri, values, null, null); in setVoicemailContent() 161 Cursor cursor = null; in findVoicemailBySourceData() 165 null, null); in findVoicemailBySourceData() [all …]
|
/development/samples/XmlAdapters/src/com/example/android/xmladapters/ |
D | ImageDownloader.java | 98 download(url, imageView, null); in download() 113 if (bitmap == null) { in download() 135 if (url == null) { in forceDownload() 136 imageView.setImageDrawable(null); in forceDownload() 171 if (bitmapDownloaderTask != null) { in cancelPotentialDownload() 173 if ((bitmapUrl == null) || (!bitmapUrl.equals(url))) { in cancelPotentialDownload() 189 if (imageView != null) { in getBitmapDownloaderTask() 196 return null; in getBitmapDownloaderTask() 207 if (bitmap != null) { in getBitmapFromCache() 218 if (bitmapReference != null) { in getBitmapFromCache() [all …]
|