Skip to content

Commit ea9e52c

Browse files
committed
Update to DP6
Change-Id: Ie6611041e2c159d81409dc33d3913e7fc9770651
1 parent cabfedf commit ea9e52c

File tree

7 files changed

+73
-59
lines changed

7 files changed

+73
-59
lines changed

BUILD_NUMBER

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
OIR1.170720.017
1+
OIM1.171126.012
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (C) 2017 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_
18+
#define LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_
19+
20+
#include <sys/cdefs.h>
21+
22+
__BEGIN_DECLS
23+
24+
/// A single boot action key/value parameter.
25+
///
26+
/// These parameters can be set when programmatically rebooting the device,
27+
/// and are passed into boot_action_init().
28+
typedef struct ABootActionParameter {
29+
const char* key;
30+
const char* value;
31+
} ABootActionParameter;
32+
33+
__END_DECLS
34+
35+
#endif // LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_

armeabi-v7a/include/pio/peripheral_manager_client.h

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "gpio.h"
2323
#include "i2c_device.h"
24-
#include "i2s_device.h"
2524
#include "pwm.h"
2625
#include "spi_device.h"
2726
#include "uart_device.h"
@@ -127,36 +126,9 @@ int APeripheralManagerClient_openUartDevice(
127126
const char* name,
128127
AUartDevice** dev);
129128

130-
/// Returns the list of I2S buses.
131-
/// This does not take ownership into account.
132-
/// The list must be freed by the caller.
133-
/// @param client Pointer to the APeripheralManagerClient struct.
134-
/// @param num_i2s_buses Output pointer to the number of elements in the list.
135-
/// @return The list of I2S buses.
136-
char** APeripheralManagerClient_listI2sDevices(
137-
const APeripheralManagerClient* client, int* num_i2s_buses);
138-
139-
/// Opens an I2S device and takes ownership of it.
140-
/// @param client Pointer to the APeripheralManagerClient struct.
141-
/// @param name Name of the I2S device.
142-
/// @param encoding Device pcm encoding.
143-
/// @param channels Number of channels.
144-
/// @param rate Device rate in Hz.
145-
/// @param flags Specify device supporting input, output or both.
146-
/// @param dev Output pointer to the AI2sDevice struct. Empty on error.
147-
/// @return 0 on success, errno on error
148-
int APeripheralManagerClient_openI2sDevice(
149-
const APeripheralManagerClient* client,
150-
const char* name,
151-
AI2sEncoding encoding,
152-
int channels,
153-
int rate,
154-
int flags,
155-
AI2sDevice** dev);
156-
157129
/// Creates a new client.
158130
/// @return A pointer to the created client. nullptr on errors.
159-
APeripheralManagerClient* APeripheralManagerClient_new();
131+
APeripheralManagerClient* APeripheralManagerClient_new(void);
160132

161133
/// Destroys the peripheral manager client.
162134
/// @param client Pointer to the APeripheralManagerClient struct.

armeabi-v7a/lib/libandroidthings.so

-24.5 KB
Binary file not shown.

x86/include/boot_action/boot_action.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (C) 2017 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_
18+
#define LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_
19+
20+
#include <sys/cdefs.h>
21+
22+
__BEGIN_DECLS
23+
24+
/// A single boot action key/value parameter.
25+
///
26+
/// These parameters can be set when programmatically rebooting the device,
27+
/// and are passed into boot_action_init().
28+
typedef struct ABootActionParameter {
29+
const char* key;
30+
const char* value;
31+
} ABootActionParameter;
32+
33+
__END_DECLS
34+
35+
#endif // LIBANDROIDTHINGS_INCLUDE_BOOT_ACTION_BOOT_ACTION_H_

x86/include/pio/peripheral_manager_client.h

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
#include "gpio.h"
2323
#include "i2c_device.h"
24-
#include "i2s_device.h"
2524
#include "pwm.h"
2625
#include "spi_device.h"
2726
#include "uart_device.h"
@@ -127,36 +126,9 @@ int APeripheralManagerClient_openUartDevice(
127126
const char* name,
128127
AUartDevice** dev);
129128

130-
/// Returns the list of I2S buses.
131-
/// This does not take ownership into account.
132-
/// The list must be freed by the caller.
133-
/// @param client Pointer to the APeripheralManagerClient struct.
134-
/// @param num_i2s_buses Output pointer to the number of elements in the list.
135-
/// @return The list of I2S buses.
136-
char** APeripheralManagerClient_listI2sDevices(
137-
const APeripheralManagerClient* client, int* num_i2s_buses);
138-
139-
/// Opens an I2S device and takes ownership of it.
140-
/// @param client Pointer to the APeripheralManagerClient struct.
141-
/// @param name Name of the I2S device.
142-
/// @param encoding Device pcm encoding.
143-
/// @param channels Number of channels.
144-
/// @param rate Device rate in Hz.
145-
/// @param flags Specify device supporting input, output or both.
146-
/// @param dev Output pointer to the AI2sDevice struct. Empty on error.
147-
/// @return 0 on success, errno on error
148-
int APeripheralManagerClient_openI2sDevice(
149-
const APeripheralManagerClient* client,
150-
const char* name,
151-
AI2sEncoding encoding,
152-
int channels,
153-
int rate,
154-
int flags,
155-
AI2sDevice** dev);
156-
157129
/// Creates a new client.
158130
/// @return A pointer to the created client. nullptr on errors.
159-
APeripheralManagerClient* APeripheralManagerClient_new();
131+
APeripheralManagerClient* APeripheralManagerClient_new(void);
160132

161133
/// Destroys the peripheral manager client.
162134
/// @param client Pointer to the APeripheralManagerClient struct.

x86/lib/libandroidthings.so

-32 KB
Binary file not shown.

0 commit comments

Comments
 (0)