Home
last modified time | relevance | path

Searched refs:isEmpty (Results 1 – 25 of 106) sorted by relevance

12345

/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DRawContact.java126 if (!TextUtils.isEmpty(mFullName)) { in getBestName()
128 } else if (TextUtils.isEmpty(mFirstName)) { in getBestName()
144 if (!TextUtils.isEmpty(mFirstName)) { in toJSONObject()
147 if (!TextUtils.isEmpty(mLastName)) { in toJSONObject()
150 if (!TextUtils.isEmpty(mCellPhone)) { in toJSONObject()
153 if (!TextUtils.isEmpty(mOfficePhone)) { in toJSONObject()
156 if (!TextUtils.isEmpty(mHomePhone)) { in toJSONObject()
159 if (!TextUtils.isEmpty(mEmail)) { in toJSONObject()
/development/samples/TtsEngine/src/com/example/android/ttsengine/
DCheckVoiceData.java48 if (checkLanguages.isEmpty()) { in onCreate()
69 if (!checkLanguages.isEmpty() && available.isEmpty()) { in onCreate()
72 } else if (!unavailable.isEmpty()) { in onCreate()
105 if (!TextUtils.isEmpty(lang)) { in getCheckVoiceDataFor()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticatorActivity.java113 if (!TextUtils.isEmpty(mUsername)) mUsernameEdit.setText(mUsername); in onCreate()
153 if (TextUtils.isEmpty(mUsername) || TextUtils.isEmpty(mPassword)) { in handleLogin()
262 if (TextUtils.isEmpty(mUsername)) { in getMessage()
268 if (TextUtils.isEmpty(mPassword)) { in getMessage()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactOperations.java135 if (!TextUtils.isEmpty(fullName)) { in addName()
139 if (!TextUtils.isEmpty(firstName)) { in addName()
143 if (!TextUtils.isEmpty(lastName)) { in addName()
162 if (!TextUtils.isEmpty(email)) { in addEmail()
180 if (!TextUtils.isEmpty(phone)) { in addPhone()
288 if (TextUtils.isEmpty(fullName)) { in updateName()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnClient.java81 .filter(s -> !s.isEmpty()) in onCreate()
121 final boolean hasIncompleteProxyConfigs = proxyHost.isEmpty() != proxyPort.isEmpty(); in checkProxyConfigs()
129 final boolean hasCorrectPackageNames = packageNames.isEmpty() || in checkPackages()
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DCustomViewAccessibilityActivity.java99 if (!TextUtils.isEmpty(text)) { in onInitializeAccessibilityNodeInfo()
111 if (!TextUtils.isEmpty(text)) { in onPopulateAccessibilityEvent()
167 if (!TextUtils.isEmpty(text)) { in tryInstallAccessibilityDelegate()
179 if (!TextUtils.isEmpty(text)) { in tryInstallAccessibilityDelegate()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DEventScheduler.java158 long lowestTime = mEventBuffer.isEmpty() ? Long.MAX_VALUE in add()
194 if (!mEventBuffer.isEmpty()) { in getNextEvent()
219 if (!mEventBuffer.isEmpty()) { in waitNextEvent()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DEventScheduler.java158 long lowestTime = mEventBuffer.isEmpty() ? Long.MAX_VALUE in add()
194 if (!mEventBuffer.isEmpty()) { in getNextEvent()
219 if (!mEventBuffer.isEmpty()) { in waitNextEvent()
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java194 if (size > 0 && !mAvailableInputBuffers.isEmpty()) { in writeSample()
249 if (!mAvailableInputBuffers.isEmpty()) { in writeSample()
285 if (!mAvailableOutputBuffers.isEmpty()) { in peekSample()
311 if (!mAvailableOutputBuffers.isEmpty()) { in popSample()
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java194 if (size > 0 && !mAvailableInputBuffers.isEmpty()) { in writeSample()
249 if (!mAvailableInputBuffers.isEmpty()) { in writeSample()
285 if (!mAvailableOutputBuffers.isEmpty()) { in peekSample()
311 if (!mAvailableOutputBuffers.isEmpty()) { in popSample()
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/
DMediaCodecWrapper.java194 if (size > 0 && !mAvailableInputBuffers.isEmpty()) { in writeSample()
249 if (!mAvailableInputBuffers.isEmpty()) { in writeSample()
285 if (!mAvailableOutputBuffers.isEmpty()) { in peekSample()
311 if (!mAvailableOutputBuffers.isEmpty()) { in popSample()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicService.java327 if (mPlayingQueue == null || mPlayingQueue.isEmpty()) { in onPlay()
335 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlay()
344 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onSkipToQueueItem()
373 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlayFromMediaId()
458 if (TextUtils.isEmpty(query)) { in onPlayFromSearch()
470 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onPlayFromSearch()
658 if (mPlayingQueue == null || mPlayingQueue.isEmpty()) { in getAvailableActions()
693 if (mPlayingQueue != null && !mPlayingQueue.isEmpty()) { in onCompletion()
/development/tools/idegen/src/com/android/idegen/
DMakeFileParser.java97 if (!trimmed.isEmpty() && trimmed.charAt(0) == '#') { in \x21trimmed.isEmpty()
102 if (!trimmed.isEmpty() && trimmed.charAt(trimmed.length() - 1) == '\\') { in trimmed.length()
162 if (value.isEmpty()) { in value.isEmpty()
221 if (rawValue.isEmpty()) { in rawValue.isEmpty()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactsListFragment.java135 if (TextUtils.isEmpty(query)) { in setSearchQuery()
353 String newFilter = !TextUtils.isEmpty(newText) ? newText : null; in onCreateOptionsMenu()
390 if (!TextUtils.isEmpty(mSearchTerm)) { in onCreateOptionsMenu()
424 if (!TextUtils.isEmpty(mSearchTerm)) { in onSaveInstanceState()
499 if (mIsTwoPaneLayout && !TextUtils.isEmpty(mSearchTerm) && mSearchQueryChanged) { in onLoadFinished()
683 if (!TextUtils.isEmpty(mSearchTerm)) { in indexOfSearchQuery()
737 if (TextUtils.isEmpty(mSearchTerm)) { in bindView()
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java73 if (!TextUtils.isEmpty(title)) { in init()
184 } else if (!TextUtils.isEmpty(mSubtypeEnablerTitle)) { in updateSubtypeEnabler()
188 if (!TextUtils.isEmpty(summary)) { in updateSubtypeEnabler()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DAddRssItem.java40 if(TextUtils.isEmpty(title) || TextUtils.isEmpty(url)){
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DItemAddFragment.java85 if (TextUtils.isEmpty(key)) { in addItem()
90 if (TextUtils.isEmpty(value)) { in addItem()
/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/
DMainActivity.java127 if (!TextUtils.isEmpty(delay)) { in scheduleJob()
131 if (!TextUtils.isEmpty(deadline)) { in scheduleJob()
147 if (TextUtils.isEmpty(workDuration)) { in scheduleJob()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DSimpleWebServer.java128 while (!TextUtils.isEmpty(line = reader.readLine())) { in handle()
213 if (TextUtils.isEmpty(fileName)) { in detectMimeType()
/development/samples/browseable/WearVerifyRemoteApp/Application/src/com.example.android.wearable.wear.wearverifyremoteapp/
DMainMobileActivity.java279 } else if (mAllConnectedNodes.isEmpty()) { in verifyNodeAndUpdateUI()
284 } else if (mWearNodesWithApp.isEmpty()) { in verifyNodeAndUpdateUI()
324 if (!nodesWithoutApp.isEmpty()) { in openPlayStoreOnWearDevicesWithoutApp()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DSessionManager.java64 return mPlaylist.isEmpty() ? null : mPlaylist.get(0); in getCurrentItem()
88 if (mPlaylist.isEmpty()) { in updateStatus()
405 if (!mPlaylist.isEmpty()) { in toString()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsMessagingDemo.java98 if (TextUtils.isEmpty(recipientTextEdit.getText())) { in onCreate()
104 if (TextUtils.isEmpty(contentTextEdit.getText())) { in onCreate()
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DResponderService.java121 String line = TextUtils.isEmpty(text) ? mLastResponse : text + "\n" + mLastResponse; in processIncoming()
125 if (!TextUtils.isEmpty(text)) { in processIncoming()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeListAdapter.java146 public boolean isEmpty() { in isEmpty() method in RecipeListAdapter
147 return mItems.isEmpty(); in isEmpty()
/development/samples/browseable/SpeedTracker/Application/src/com.example.android.wearable.speedtracker/
DPhoneMainActivity.java109 if (entries != null && !entries.isEmpty()) { in showTrack()
125 if (coordinates == null || coordinates.isEmpty()) { in showTrack()

12345