/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/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv1Solution/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv1/src/com/android/demo/notepad1/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/tutorials/NotepadCodeLab/Notepadv2/src/com/android/demo/notepad2/ |
D | NotesDbAdapter.java | 63 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper() 125 return mDb.insert(DATABASE_TABLE, null, initialValues); in createNote() 136 return mDb.delete(DATABASE_TABLE, KEY_ROWID + "=" + rowId, null) > 0; in deleteNote() 147 KEY_BODY}, null, null, null, null, null); in fetchAllNotes() 162 KEY_TITLE, KEY_BODY}, KEY_ROWID + "=" + rowId, null, in fetchNote() 163 null, null, null, null); in fetchNote() 164 if (mCursor != null) { in fetchNote() 186 return mDb.update(DATABASE_TABLE, args, KEY_ROWID + "=" + rowId, null) > 0; in updateNote()
|
/development/samples/browseable/BluetoothChat/src/com.example.android.bluetoothchat/ |
D | BluetoothChatService.java | 110 if (mConnectThread != null) { in start() 112 mConnectThread = null; in start() 116 if (mConnectedThread != null) { in start() 118 mConnectedThread = null; in start() 124 if (mSecureAcceptThread == null) { in start() 128 if (mInsecureAcceptThread == null) { in start() 145 if (mConnectThread != null) { in connect() 147 mConnectThread = null; in connect() 152 if (mConnectedThread != null) { in connect() 154 mConnectedThread = null; in connect() [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/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/NotePad/src/com/example/android/notepad/ |
D | NoteEditor.java | 169 mUri = getContentResolver().insert(intent.getData(), null); in onCreate() 176 if (mUri == null) { in onCreate() 211 null, // No "where" clause selection criteria. in onCreate() 212 null, // No "where" clause selection values. in onCreate() 213 null // Use the default sort order (modification date, descending) in onCreate() 235 if (savedInstanceState != null) { in onCreate() 256 if (mCursor != null) { in onResume() 294 if (mOriginalContent == null) { in onResume() 345 if (mCursor != null) { in onPause() 369 updateNote(text, null); in onPause() [all …]
|
/development/samples/Support7Demos/src/com/example/android/supportv7/media/ |
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 147 if (mCallback != null) { in play() 166 if (!mClient.hasSession() || item.getRemoteItemId() == null) { in getStatus() 175 mClient.getStatus(item.getRemoteItemId(), null, new ItemActionCallback() { in getStatus() local 189 if (update && mCallback != null) { in getStatus() 197 if (update && mCallback != null) { in getStatus() 213 mClient.pause(null, new SessionActionCallback() { in pause() [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/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/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
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 …]
|
D | ImageWorker.java | 76 if (data == null) { in loadImage() 80 BitmapDrawable value = null; in loadImage() 82 if (mImageCache != null) { in loadImage() 86 if (value != null) { in loadImage() 184 if (bitmapWorkerTask != null) { in cancelWork() 203 if (bitmapWorkerTask != null) { in cancelPotentialWork() 205 if (bitmapData == null || !bitmapData.equals(data)) { in cancelPotentialWork() 225 if (imageView != null) { in getBitmapWorkerTask() 232 return null; in getBitmapWorkerTask() 258 Bitmap bitmap = null; in doInBackground() [all …]
|
/development/cmds/monkey/src/com/android/commands/monkey/ |
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/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 …]
|
/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/Support4Demos/src/com/example/android/supportv4/media/ |
D | MediaController.java | 95 if (getWindowToken() != null) { in setMediaPlayer() 96 if (mController != null) { in setMediaPlayer() 99 if (controller != null) { in setMediaPlayer() 110 if (mController != null) { in onAttachedToWindow() 118 if (mController != null) { in onDetachedFromWindow() 125 if (mPauseButton != null) { in initControllerView() 131 if (mFfwdButton != null) { in initControllerView() 137 if (mRewButton != null) { in initControllerView() 144 if (mNextButton != null && !mListenersSet) { in initControllerView() 148 if (mPrevButton != null && !mListenersSet) { in initControllerView() [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 …]
|