Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EncounterBasedCommunication
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
encounters
EncounterBasedCommunication
Commits
d0647cf8
Commit
d0647cf8
authored
Jul 06, 2018
by
Lily Tsai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging...
parent
5ef04e05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
testapp/src/main/java/org/mpisws/testapp/simulator/SimulationServerBT.java
...java/org/mpisws/testapp/simulator/SimulationServerBT.java
+2
-2
testapp/src/main/res/layout/activity_main.xml
testapp/src/main/res/layout/activity_main.xml
+9
-9
No files found.
testapp/src/main/java/org/mpisws/testapp/simulator/SimulationServerBT.java
View file @
d0647cf8
...
...
@@ -107,7 +107,7 @@ public class SimulationServerBT {
// Every "epoch" or so try to post link messages to the prior "epoch" ss for each "device"
// Let's try and post to the prior 3 epochs
Looper
.
prepare
();
for
(
int
loop
=
0
;
loop
<
NUM_SIMULATED_EPOCHS
;
loop
++)
{
for
(
int
loop
=
1
;
loop
<=
NUM_SIMULATED_EPOCHS
;
loop
++)
{
new
Handler
().
postDelayed
(()
->
{
int
lowEpoch
=
currentEpoch
>
3
?
currentEpoch
-
3
:
0
;
List
<
Identifier
>
sses
=
sharedSecrets
.
subList
(
lowEpoch
*
NUM_SIMULATED_DEVICES
,
currentEpoch
*
NUM_SIMULATED_DEVICES
);
...
...
@@ -135,7 +135,7 @@ public class SimulationServerBT {
currentEpoch
++;
// heh hack
if
(
currentEpoch
==
NUM_SIMULATED_EPOCHS
)
currentEpoch
--;
},
CHANGE_EPOCH_TIME
);
},
loop
*
CHANGE_EPOCH_TIME
);
}
}
}
testapp/src/main/res/layout/activity_main.xml
View file @
d0647cf8
...
...
@@ -22,32 +22,32 @@
android:id=
"@+id/getGoogleToken"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Get Google Token"
/>
android:text=
"
UserAccount:
Get Google Token"
/>
<Button
android:id=
"@+id/signIn"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"EbC Sign In"
/>
android:text=
"
UserAccount:
EbC Sign In"
/>
<Button
android:id=
"@+id/signOut"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
ES
Sign Out"
/>
android:text=
"
UserAccount: EbC
Sign Out"
/>
<Button
android:id=
"@+id/deleteAccount"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
ES
deleteAccount"
/>
android:text=
"
UserAccount:
deleteAccount"
/>
<Button
android:id=
"@+id/testSendMessages"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
Send message with all constraint
"
/>
android:text=
"
Messaging: Send message to all encounters
"
/>
<Button
android:id=
"@+id/testReceiveMessages"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"Get unread messages"
/>
android:text=
"
Messaging:
Get unread messages"
/>
<Button
android:id=
"@+id/simulateEncounterFormationAndConfirmationClient"
android:layout_width=
"wrap_content"
...
...
@@ -63,17 +63,17 @@
android:id=
"@+id/testWithoutConfirmation"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
testBLEWithout
Confirmation"
/>
android:text=
"
EndToEnd: BLE without
Confirmation"
/>
<Button
android:id=
"@+id/testEndToEndES"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
testEndToEnd
ES"
/>
android:text=
"
EndToEnd: Confirmation using
ES"
/>
<Button
android:id=
"@+id/testEndToEndBLE"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"testEndToEnd
BLE"
/>
android:text=
"EndToEnd: Confirmation using
BLE"
/>
</LinearLayout>
</ScrollView>
</LinearLayout>
...
...
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