Age | Commit message (Collapse) | Author |
|
|
|
- Also adding TestTelecomCall class, which is a reflection wrapper that
can create instances of android.telecom.Call. These calls are particularly
problematic as they are final, so Mockito cannot mock them.
Bug: 27458894
Change-Id: Ibd3786dc27eb4280eb32b8fb0baa18d42738a98c
(cherry picked from commit 5df8de7b7c9ce0dee435d4a461dd9bbe6731e5d7)
|
|
- Add new "ExternalCallNotifier" which tracks external calls that Telecom
informs Incall about.
- Refactored some common code from StatusBarNotifier that is used in
ExternalCallNotifier into NotificationUtil so it can be used in both
places.
- Modified CallList to track and store external calls seperately from
regular ones.
- Added support for triggering a call pull in the
NotificationBroadcastReceiver.
Bug: 27458894
Change-Id: I505c8b5f7aad273ebdaaeae2431564d10b23770b
(cherry picked from commit d8eb77f116ba21a4f40fd59d608b2e8bbdf2e09b)
|
|
+ By playing through AudioManager.STREAM_VOICE_CALL, routing audio to
bluetooth is handled properly for us.
+ This change removes the code that was preparing to manually play
the call waiting tone through bluetooth.
+ Small fix ups for javadoc
Bug: 26932998
Change-Id: Ib5f872c72cdfa44ab0bc2ff5d7e41645aba813ff
|
|
+ This API simplifies tests, specifically their tearDown methods.
Rather than needing to call ackMilestone numerous times to clean up
at the end of the test, this method can be called to ensure that the
thread running the production code isn't blocked on the tests.
Change-Id: I60730c52491b315aee571f4ae158f62d34b0dbc2
|
|
This change makes the Call Waiting tone actually play during the
Call Waiting use case.
+ Plugging InCallTonePlayer into the DialerRingtoneManager in the
StatusBarNotifier
+ Test fixes
+ Added tests for when Dialer ringing is disabled
+ Added tests for DialerRingtoneManager#playCallWaitingTone
- Removed unneeded @NeededForTesting annotations from InCallTonePlayer
since they won't be stipped out by proguard.
Change-Id: I49a83d2a7fe6edf5f9ec88db973a5f37e307f23a
|
|
+ Renamed the DialerRingtoneManager, but forgot to rename the test file.
Change-Id: I3de6223e023787657d2573ba3f620fc9bc013181
|
|
+ This class will be used by the DialerRingtoneManager to play the
call waiting tone. It exists to encapsulate the logic to play a tone
in a background thread.
+ The TonePlayer includes some thread safety measures, but is not
meant to be shared between multiple threads
Bug=26936401
Change-Id: I630959177fcd8a4fc8ba7d3153f036746ad8a4cf
|
|
+ Use a TestableExecutor in the production code to allow tests to
sync up and block so the state of the system can be tested. In the
tests the executor can wait until the production code hits a
milestone to ensure that the system is in a proper state for testing.
+ The current implementation only attempts to synchronize between one
production thread and one test thread. Extend the TestableExecutor
interface to perform additional synchronization.
Change-Id: Ie6fc64392e402330ab66c6f2cd0ec22200ebbdea
|
|
+ This change ensures that the Dialer doesn't try to use the
ContactsPreferences object (which uses information in unavailable
storage) while in File based encryption locked mode. Without these
checks, the Dialer crashes on receiving an incoming call while FBE
locked.
+ Added Factory method to create ContactsPreferences for tests/while
FBE locked/while FBE unlocked
+ Added tests for CallCardPresenter and StatusBarNotifier FBE related
code
Bug=26822105
Change-Id: I5df93526e70b7350885c7261982945c32b7e86a0
|
|
+ This method will be used in StatusBarNotifier to determine when
call waiting tones should be played instead of the standard ringtone
Change-Id: I4ad55f3870de5e63d03f4a5e8534680fa24556bd
|
|
+ Created class that is responsible for determining if a ringtone should
be played.
+ This class will also have the code to play call waiting tones
Change-Id: Ie8fb633c8a233cc6b54beeb09b3fd6b62c9cb76c
|
|
b/25613098 sometimes corrupt the bundle, resulting in a
IllegalArgumentException while validating.
Workaround with abandoning all the information in it.
The bypassed code only tries to extract data from the bundle, which can
already be null.
These are not critical for the dialer to function.
Bug:26343012
Bug:25613098
Change-Id: I16b05ecb0e5317f7170d80eb8426b5cdce20f6c2
# Conflicts:
# src/com/android/incallui/Call.java
|
|
android.util.ArrayMap"
This reverts commit b1d3cff91f5fc15c7f75c9bef8928101d7bb33d5.
Change-Id: Ie3b063f24ff27d3b79b40dd3f1d069d2023f5ef2
|
|
b/25613098 sometimes corrupt the bundle, resulting in a
IllegalArgumentException while validating.
Workaround with abandoning all the information in it.
The bypassed code only tries to extract data from the bundle, which can
already be null.
These are not critical for the dialer to function.
Bug:25613098
Change-Id: I16b05ecb0e5317f7170d80eb8426b5cdce20f6c2
|
|
Attempted to index into -1 position of opening hours array when business
is not open today but open tomorrow. That is because entries exist in
the array for tomorrow, but not today.
Bug: 25830349
Change-Id: Ib3def69e3d2813bf9cb4739a954b7b9f3724b56a
|
|
In order to not overflow the business hours display, we only want to
display two intervals at most. Other logic will be used for determining
what to display if there are more than 2 intervals, it is currently closed
between intervals, and it is closed after all open hours.
Bug: 25488385
Change-Id: I9a3ee2967dfd0acc9a9cdc653b27e45c358255e8
|
|
Sometimes businesses will close in the middle of the day and reopen. We
want to correctly represent the "open now"/"closed now" text for these
breaks. Update tests accordingly.
Bug: 25488385
Change-Id: I7ea96b1c037770261389297cb405a5e93d8171e4
|
|
Originally the close time was set to the same date as the open time, but
sometimes a place is open past midnight, which means that it's open
until the next day. Update this so that Open Now correctly represents
the state even when the place is open past midnight.
Bug: 25345785
Change-Id: I417ecb046bb2d5f708279f2b3808af0afd7662c7
|
|
To disambiguate, include the city/locality with the address in the form
"[street address], [city/locality]" in the contact interactions. Also
add tests to ensure the construction of the location info is correct.
Bug: 23351559
Change-Id: Ib0b2ce8a80a8494d5b006a6a74ad94447befc0ef
|
|
Display hours of operation information if it is available. If hours of
operation are available, also determine whether it is currently open or
closed. Display in the InCallUI when making a business call.
Also add tests to make sure that the business context object is
constructed correctly.
Bug: 23351559
Change-Id: Ic2846e54e15ade37ccf0b916651cc3388da3cc23
|
|
* Update all tests with @SmallTest, @MediumTest or @LargeTest
annotation to ensure coverage by continuous test infrastructure
Change-Id: If362edd2afbef0b3484ad74f53e7d6339156742e
|
|
Bug: 24341350
Change-Id: Ie47faafcb834083b4a6877e713d871d8283886f7
|
|
Unregister the accelerometer listener when the screen is off
to reduce power consumption.
Slight refactor of component constructors to facilitate testing.
Add test.
Bug: 23498050
Change-Id: If1971a39e8a418253f6611116c855e3c6cf81b93
|
|
Bug: 20532435
Change-Id: Iae50b2ce15232a6010eb04895193b04c423ecc00
|
|
MockCallListWrapper provides an instance of a mock call list
and provides functionality to easily add/remove calls from
the mock call list.
Change-Id: I4f7651284d35bdac61574fd804afa33dbf43d6b0
|
|
Change-Id: If77e0767e9dbc65a9235dc1841f4d7298e4d39d5
|
|
Add a bunch of end-to-end tests for InCallPresenter
Refactor InCallPresenter to be more dependency injection
friendly.
Add some test-only methods to make testing easier
Change-Id: I86b6eeff91d35bc3b5cb3de9262d8850673919b7
|
|
Change-Id: I3a8f03dfca5db1b7012e48e2b5dd7bd6b9dc4f3d
|