Home
last modified time | relevance | path

Searched refs:null (Results 1 – 25 of 140) sorted by relevance

123456

/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/
DBluetoothUtils.java41 private static List<String> sKnownRemoteLabels = null;
42 private static List<String> sOfficialRemoteLabels = null;
43 private static List<String> sBtDeviceServiceUpdatableRemoteLabels = null;
56 if (device == null) { in isRemoteClass()
66 if (context == null) { in setRemoteLabels()
87 if (device == null) { in isConnected()
94 if (device == null) { in isBonded()
101 if (device == null) { in getName()
102 return null; in getName()
104 return device.getAlias() != null ? device.getAlias() : device.getName(); in getName()
[all …]
DBluetoothDeviceService.java160 if (pm == null) { in startPairingRemoteActivity()
163 Intent candidateIntent = null; in startPairingRemoteActivity()
167 if (info.activityInfo == null || info.activityInfo.applicationInfo == null) { in startPairingRemoteActivity()
182 if (candidateIntent != null) { in startPairingRemoteActivity()
191 if (intent == null) { in getDeviceHelper()
192 return null; in getDeviceHelper()
199 if (btAdapter != null) { in getDevices()
201 if (devices != null) { in getDevices()
210 BluetoothDevice curDevice = null; in findDevice()
221 if (device == null || !device.removeBond()) { in forgetDevice()
[all …]
DNotificationCenter.java132 if (mNotificationManager.getNotificationChannel(channelId) != null) { in ensureNotificationChannel()
161 if (device == null) { in sendDfuNotificationImpl()
167 if (stopwatch != null && in sendDfuNotificationImpl()
172 if (stopwatch == null) { in sendDfuNotificationImpl()
181 if (dfuNotifications.get(device) != null) { in sendDfuNotificationImpl()
196 Notification.Action updateAction = new Notification.Action.Builder(/* icon= */ null, in sendDfuNotificationImpl()
200 Notification.Action dismissAction = new Notification.Action.Builder(/* icon= */ null, in sendDfuNotificationImpl()
201 mContext.getString(R.string.settings_notif_update_dismiss), null) in sendDfuNotificationImpl()
220 if (dfuNotifications.get(device) != null) { in dismissUpdateNotificationImpl()
230 if (lowBatteryNotifications.get(device) != null) { in refreshLowBatteryNotificationImpl()
[all …]
/device/google/atv/FrameworkPackageStubs/src/com/android/browser/provider/
DBrowserProvider2.java376 super(context, DATABASE_NAME, null, DATABASE_VERSION); in DatabaseHelper()
479 if (mOpenHelper == null) { in getDatabaseHelper()
510 return null; in getType()
514 if (account == null) return true; in isNullAccount()
524 if (accountType != null && accountName != null) { in getSelectionWithAccounts()
557 if (sortOrder == null) { in query()
630 if (selectionArgs != null) { in query()
633 query = qb.buildQuery(projection, where, null, null, sortOrder, null); in query()
646 where, null, null, null, null); in query()
649 if (selectionArgs != null) { in query()
[all …]
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/remote/
DTransportManager.java68 new Transport.Result(null, Transport.Result.SUCCESS);
70 new Transport.Result(null, Transport.Result.FAILURE);
72 new Transport.Result(null, Transport.Result.FAILURE_GATT_DISCONNECTED);
74 new Transport.Result(null, Transport.Result.FAILURE_LOCKED);
76 new Transport.Result(null, Transport.Result.FAILURE_TIMED_OUT);
112 private Packet mPacketToBeProcessed = null;
137 mHandler.removeCallbacksAndMessages(null); in shutdownImpl()
140 mTransport = null; in shutdownImpl()
150 mPacketToBeProcessed = null; in shutdownImpl()
183 if (mPacketToBeProcessed != null) { in processQueueImpl()
[all …]
DBleConnection.java208 if (gatt != null) { in connect()
224 while ((upcomingRequest = requestQueue.poll()) == null) { in maybeSendNextCommand()
242 if (characteristic == null) { in writeCharacteristic()
261 if (characteristic == null) { in readCharacteristic()
280 if (descriptor == null) { in writeDescriptor()
389 if (lastDescriptorWriteCallback != null) { in onDescriptorWrite()
391 lastDescriptorWriteCallback = null; in onDescriptorWrite()
406 if (lastCharacteristicWriteCallback != null) { in onCharacteristicWrite()
408 lastCharacteristicWriteCallback = null; in onCharacteristicWrite()
423 if (lastCharacteristicReadCallback != null) { in onCharacteristicRead()
[all …]
DDefaultProxy.java72 if (batteryLevelCharacteristic == null) { in refreshBatteryLevel()
82 characteristic.getValue() == null || in refreshBatteryLevel()
108 if (batteryLevelCallback != null) { in getLastKnownBatteryLevel()
135 if (!isBleSupported || versionCharacteristic == null) { in refreshVersion()
155 versionCharacteristic = null; in refreshVersion()
168 if (s == null || !(s.startsWith("V") || s.startsWith("v"))) return Version.BAD_VERSION; in stringToVersion()
188 return null; in requestDfu()
193 return null; in getDfuState()
207 if (deviceInfoService != null) { in onGattReady()
211 if (versionCharacteristic != null) { in onGattReady()
[all …]
DDfuProvider.java60 if (mContext != null) { in onEvent()
69 if (params == null || params.length == 0 || params[0] == null) { in doInBackground()
182 mObserver = null; in destroy()
202 if (mDigest == null) { in md5()
203 return null; in md5()
208 return null; in md5()
216 return null; in md5()
227 return null; in md5()
233 return null; in md5()
246 if (fname == null) in isDfuFileName()
[all …]
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/settings/
DLocalBluetoothDeviceProvider.java36 if (provider != null) { in getBatteryLevel()
45 if (provider != null) { in mapBatteryLevel()
54 if (provider != null) { in getVersion()
63 if (provider != null) { in hasUpgrade()
72 if (provider != null) { in isBatteryLow()
81 if (provider != null) { in getDfuState()
84 return null; in getDfuState()
90 if (provider != null) { in startDfu()
98 if (provider != null) { in connectDevice()
106 if (provider != null) { in disconnectDevice()
[all …]
DBluetoothDevicePreferenceFragment.java106 if (mDevice != null) { in update()
113 if (mDeviceInfoPreference != null) { in update()
126 if (pref == null) { in updateRemoteUpdate()
138 null, in updateRemoteUpdate() local
157 pref.setSummary(null); in updateRemoteUpdate()
165 if (mDevice == null || BluetoothUtils.isRemote(preferenceContext, mDevice)) { in updateReconnect()
169 if (getPairingServiceBinder() != null && BluetoothUtils.isBonded(mDevice)) { in updateReconnect()
170 if (reconnectPref == null) { in updateReconnect()
177 if (pairingService != null) { in updateReconnect()
188 } else if (reconnectPref != null) { in updateReconnect()
[all …]
DConnectedDevicesPreferenceFragment.java111 if (provider != null) {
114 return null;
137 if (category == null) { in findOrCreateCategory()
188 pref.setSummary(null); in updateBtDevicePreference()
206 if (admin == null) { in createConnectedBtPreference()
222 pref.setSummary(null); in createPairedBtPreference()
227 return getActivity() instanceof Provider ? (Provider) getActivity() : null; in getProvider()
238 if (stateProvider == null) { in updateBtDevices()
294 if (context == null) { in updatePairedDevices()
308 if (context == null) { in updateConnectedDevices()
[all …]
DBluetoothDeviceInfoPreference.java53 if (mDevice == null) { in onBindViewHolder()
59 if (serialNumberContainer != null && serialNumberView != null) { in onBindViewHolder()
74 if (mFirmwareContainer != null && mFirmwareView != null && mProvider != null) { in update()
84 if (mBatteryContainer != null && mBatteryView != null && mProvider != null) { in update()
DResponseFragment.java68 if (tmp != null) { in getChoices()
93 return args.getInt(ARG_SUMMARY) != 0 ? getString(args.getInt(ARG_SUMMARY)) : null; in getSummaryImpl()
99 null; in getDrawableImpl()
107 null, in onCreateGuidance()
120 (Listener) getTargetFragment() : null; in getListener()
121 if (listener == null) { in getListener()
122 listener = getActivity() instanceof Listener ? (Listener) getActivity() : null; in getListener()
149 if (listener == null) { in onGuidedActionEditedAndProceed()
157 final String newName = action.getTitle() != null ? action.getTitle().toString() : ""; in onGuidedActionEditedAndProceed()
197 if (listener == null) { in onGuidedActionClicked()
DConnectedDevicesSliceProvider.java125 if (mBtDeviceServiceBinder != null) {
128 mBtDeviceServiceBinder = null;
136 null);
143 getContext().getContentResolver().notifyChange(SlicesUtil.GENERAL_SLICE_URI, null); in onDeviceUpdated()
145 SlicesUtil.getDeviceUri(device.getAddress()), null); in onDeviceUpdated() local
153 if (device != null) { in updateVersionAndNotify()
155 SlicesUtil.getDeviceUri(addr), null); in updateVersionAndNotify() local
166 if (mBtDeviceServiceBinder != null) { in getBluetoothDevices()
246 return null; in onBindSlice()
269 if (admin == null) { in createGeneralSlice()
[all …]
/device/google/atv/libraries/BluetoothServices/src/com/google/android/tv/btservices/pairing/
DBluetoothPairer.java123 mPairingProfileWrapper = null; in BluetoothPairer()
143 return null; in getPairingProfileWrapper()
173 mHandler.removeCallbacksAndMessages(null); in dispose()
175 if (mPairingProfileWrapper != null) { in dispose()
195 return null; in getBroadcastListeningState()
229 if (mDevice == null || !mDevice.equals(device)) { in onConnectionStateChanged()
279 mDevice = null; in onBondFailed()
285 if (mDevice == null) { in serviceDiscovery()
294 if (mDevice == null) { in addDevice()
299 if (mPairingProfileWrapper == null) { in addDevice()
[all …]
/device/google/atv/TvSampleLeanbackLauncher/src/main/java/com/example/sampleleanbacklauncher/apps/
DAppFragment.java93 mLaunchItemsManager = null;
128 getLoaderManager().initLoader(ITEM_LOADER_ID, null, new ItemLoaderCallbacks()); in onCreateView()
132 getLoaderManager().initLoader(NOTIFS_COUNT_LOADER_ID, null, in onCreateView()
172 if (!isAdded() || mAdapter == null) { in updateList()
178 if (newItems == null) { in updateList()
209 if (mLaunchItemsManager != null) { in onItemClicked()
301 if (id != null) { in getItemId()
348 if (mConnection == null) { in onStartLoading()
360 mLaunchItemsManager = null; in onStartLoading()
395 if (mConnection != null) { in onReset()
[all …]
DLaunchItemsDbHelper.java106 null, null, null, null, null, null)) { in readLastOpens() argument
116 map.put(componentName, null); in readLastOpens()
166 null, null, null, null, null, null)) { in readOrderPriorities() argument
/device/google/atv/TvSampleLeanbackLauncher/src/androidTest/java/com/example/sampleleanbacklauncher/apps/
DLaunchItemTest.java52 when(context.getPackageManager()).thenReturn(null); in createTestLaunchItem()
61 null, null, null, 0); in testGetIntent()
70 final LaunchItem item = createTestLaunchItem("", "", null, null, "A label", 0); in testCompareTo()
71 final LaunchItem priorityItem = createTestLaunchItem("", "", null, null, "Z label", 1); in testCompareTo()
72 final LaunchItem alphaItem = createTestLaunchItem("", "", null, null, "Z label", 0); in testCompareTo()
/device/google/cuttlefish/tools/
Dflash-blk-dev.sh52 echo "${init_devs}" | grep "${blk_dev}" >/dev/null
83 type pv > /dev/null 2>&1
96 …part_type=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | grep ": present" | sed 's/ *\([^:]*\):.*/\…
99 sudo e2fsck -y -f /dev/${blk_dev}1 >/dev/null 2>&1
100 sudo resize2fs /dev/${blk_dev}1 >/dev/null 2>&1
103 FIRST_SECTOR=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | tail -1 | tr -s ' ' | cut -d" " -f3`
104 sudo sgdisk -d${parts} /dev/${blk_dev} >/dev/null 2>&1
105 …RST_SECTOR}:- -A:${parts}:set:2 -t:${parts}:8305 -c:${parts}:rootfs /dev/${blk_dev} >/dev/null 2>&1
106 sudo e2fsck -fy /dev/${blk_dev}${parts} >/dev/null 2>&1
107 sudo resize2fs /dev/${blk_dev}${parts} >/dev/null 2>&1
/device/google/atv/MdnsOffloadCmdService/src/com/android/tv/mdnsoffloadcmd/
DMdnsOffloadCmdService.java60 return null; in onBind()
102 if (mMdnsOffloadManagerService == null) { in registerProtocolResponse()
116 if (mMdnsOffloadManagerService == null) { in registerPassthrough()
130 if (mMdnsOffloadManagerService == null) { in removeProtocolResponse()
144 if (mMdnsOffloadManagerService == null) { in removePassthrough()
169 if (rawHexPacket != null && iface != null) { in onReceive()
188 if (iface != null && qname != null) { in onReceive()
198 if (iface != null && qname != null) { in onReceive()
234 mMdnsOffloadManagerService = null;
/device/generic/goldfish/MultiDisplayProvider/src/com/android/emulator/multidisplay/
DMultiDisplayService.java93 virtualDisplay = null; in clear()
94 surface = null; in clear()
165 if(mMessenger == null) in onBind()
178 if (args == null || args.length == 0) { in dump()
192 if (mMultiDisplay != null) { in dump()
205 if (array != null) { in dumpArray()
245 if (mMultiDisplay == null) { in runCmdList()
316 if (mMultiDisplay[displayId].virtualDisplay != null) { in deleteVirtualDisplay()
319 if (mMultiDisplay[displayId].surface != null) { in deleteVirtualDisplay()
329 null /* projection */, in createVirtualDisplay()
[all …]
/device/google/sunfish/
Dinit.qcom.modem_links.sh83 case `ls modem.mdt 2>/dev/null` in
86 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
95 case `ls adsp.mdt 2>/dev/null` in
98 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
105 case `ls wcnss.mdt 2>/dev/null` in
108 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
115 case `ls mba.mdt 2>/dev/null` in
118 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
/device/google/coral/
Dinit.qcom.modem_links.sh83 case `ls modem.mdt 2>/dev/null` in
86 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
95 case `ls adsp.mdt 2>/dev/null` in
98 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
105 case `ls wcnss.mdt 2>/dev/null` in
108 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
115 case `ls mba.mdt 2>/dev/null` in
118 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
/device/google/redbull/
Dinit.qcom.modem_links.sh83 case `ls modem.mdt 2>/dev/null` in
86 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
95 case `ls adsp.mdt 2>/dev/null` in
98 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
105 case `ls wcnss.mdt 2>/dev/null` in
108 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
115 case `ls mba.mdt 2>/dev/null` in
118 ln -s /firmware/image/$imgfile /system/etc/firmware/$imgfile 2>/dev/null
/device/amlogic/yukawa/services/micmuteprovider/src/com/google/android/tv/hotword/
DHotwordMicToggleService.java88 if (mPollHandler == null) { in poll()
103 getContentResolver().notifyChange(HotwordMicToggleProvider.HOTWORDMIC_URI, null); in checkMicToggleState()
108 HotwordMicToggleProvider.HOTWORDMIC_URI, null, null, null, null); in isMicMuted()
109 if (data != null && data.moveToFirst()) { in isMicMuted()

123456