Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
2244bb14
Kaydet (Commit)
2244bb14
authored
Şub 13, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add comments, logging, empty lines
Change-Id: Ife81ec74b36f71782997219e36ac926ea429c297
üst
b3729421
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
SelectorActivity.java
...e/src/org/libreoffice/impressremote/SelectorActivity.java
+2
-0
BluetoothClient.java
...reoffice/impressremote/communication/BluetoothClient.java
+6
-0
Server.java
...c/org/libreoffice/impressremote/communication/Server.java
+3
-0
No files found.
android/sdremote/src/org/libreoffice/impressremote/SelectorActivity.java
Dosyayı görüntüle @
2244bb14
...
...
@@ -183,6 +183,8 @@ public class SelectorActivity extends SherlockActivity {
}
void
doBindService
()
{
// This is what creates the first (only?) CommunicationService instance
// and calls its run() method (in another thread).
Intent
aIntent
=
new
Intent
(
this
,
CommunicationService
.
class
);
startService
(
aIntent
);
bindService
(
aIntent
,
mConnection
,
Context
.
BIND_IMPORTANT
);
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothClient.java
Dosyayı görüntüle @
2244bb14
...
...
@@ -36,6 +36,9 @@ public class BluetoothClient extends Client {
Receiver
aReceiver
,
boolean
aBluetoothWasEnabled
)
throws
IOException
{
super
(
aServer
,
aCommunicationService
,
aReceiver
);
Log
.
i
(
Globals
.
TAG
,
"BluetoothClient("
+
aServer
+
")"
);
mAdapter
=
BluetoothAdapter
.
getDefaultAdapter
();
mBluetoothWasEnabled
=
aBluetoothWasEnabled
;
if
(!
mBluetoothWasEnabled
)
{
...
...
@@ -45,18 +48,21 @@ public class BluetoothClient extends Client {
BluetoothDevice
aDevice
=
mAdapter
.
getRemoteDevice
(
aServer
.
getAddress
());
mAdapter
.
cancelDiscovery
();
// This is the "standard UUID for the Serial Port Profile".
// I.e. the 16-bit SerialPort UUID 0x1101 inserted into the
// Bluetooth BASE_UUID. See
// https://www.bluetooth.org/Technical/AssignedNumbers/service_discovery.htm
mSocket
=
aDevice
.
createRfcommSocketToServiceRecord
(
UUID
.
fromString
(
"00001101-0000-1000-8000-00805F9B34FB"
));
mSocket
.
connect
();
Log
.
i
(
Globals
.
TAG
,
"BluetoothClient: connected"
);
mInputStream
=
mSocket
.
getInputStream
();
mReader
=
new
BufferedReader
(
new
InputStreamReader
(
mInputStream
,
CHARSET
));
mOutputStream
=
mSocket
.
getOutputStream
();
String
aTemp
=
mReader
.
readLine
();
...
...
android/sdremote/src/org/libreoffice/impressremote/communication/Server.java
Dosyayı görüntüle @
2244bb14
...
...
@@ -53,6 +53,9 @@ public class Server {
return
mTimeDiscovered
;
}
public
String
toString
()
{
return
getClass
().
getName
()
+
'@'
+
Integer
.
toHexString
(
hashCode
())
+
":{"
+
mAddress
+
","
+
mName
+
"}"
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment